JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.text
Ŭ·¡½º StyledEditorKit

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.text.EditorKit 
      »óÀ§¸¦ È®Àå javax.swing.text.DefaultEditorKit 
          »óÀ§¸¦ È®Àå javax.swing.text.StyledEditorKit
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable, Cloneable
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
HTMLEditorKit, RTFEditorKit

public class StyledEditorKit
extends DefaultEditorKit

ƯÁ¤ÀÇ Å¸ÀÔÀÇ ÅؽºÆ® ¹®¼­¿¡ ´ëÇؼ­ ÀûÀýÇÑ ¿¡µðÅͷμ­ ±â´ÉÇϱâ À§Çؼ­ ÅؽºÆ® ÄÄÆÛ³ÍÆ®¿¡ ÇÊ¿äÇÑ ¼¼Æ®ÀÔ´Ï´Ù. ÀÌ ±¸ÇöÀº ÅؽºÆ®¸¦ ¼­½Ä ÷ºÎ ÅؽºÆ®·Î¼­ ó¸®ÇØ, ¼­½Ä ÷ºÎ ÅؽºÆ®¸¦ ÆíÁýÇϱâ À§ÇÑ ¾×¼ÇÀÇ ÃÖ¼Ò ¼¼Æ®¸¦ Á¦°øÇÏ´Â µðÆúÆ®ÀÇ ±¸ÇöÀ» Á¦°øÇÕ´Ï´Ù.


Áßø(Nested) Ŭ·¡½º °³¿ä
static class StyledEditorKit.AlignmentAction
          ´Ü¶ôÀÇ ¹èÄ¡ ¹æ¹ýÀ» ¼³Á¤ÇÏ´Â ¾×¼ÇÀÔ´Ï´Ù.
static class StyledEditorKit.BoldAction
          º¼µå ¼Ó¼ºÀ» ¹Ù²Ù´Â ¾×¼ÇÀÔ´Ï´Ù.
static class StyledEditorKit.FontFamilyAction
          °ü·ÃµÈ JEditorPane ÆùÆ® Æйи®¸¦ ¼³Á¤ÇÏ´Â ¾×¼ÇÀÔ´Ï´Ù.
static class StyledEditorKit.FontSizeAction
          °ü·ÃµÈ JEditorPane font size¸¦ ¼³Á¤ÇÏ´Â ¾×¼ÇÀÔ´Ï´Ù.
static class StyledEditorKit.ForegroundAction
          foreground Ä÷¯¸¦ ¼³Á¤ÇÏ´Â ¾×¼ÇÀÔ´Ï´Ù.
static class StyledEditorKit.ItalicAction
          ÀÌÅŸ¯ ¼Ó¼ºÀ» ¹Ù²Ù´Â ¾×¼ÇÀÔ´Ï´Ù.
static class StyledEditorKit.StyledTextAction
          ÀνºÅç µÈ StyledEditorKit (¶Ç´Â ¼­ºê Ŭ·¡½º)¿¡ ÀÇÇØ JEditorPane ·Î Æ®¸®°Å µÈ´Ù°í º¸¿©Áö´Â ¾×¼ÇÀÔ´Ï´Ù.
static class StyledEditorKit.UnderlineAction
          ¹ØÁÙ ¼Ó¼ºÀ» ¹Ù²Ù´Â ¾×¼ÇÀÔ´Ï´Ù.
 
Ŭ·¡½º javax.swing.text. DefaultEditorKit ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction
 
ÇÊµå °³¿ä
 
Ŭ·¡½º javax.swing.text. DefaultEditorKit ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deletePrevCharAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction
 
»ý¼ºÀÚ °³¿ä
StyledEditorKit ()
          ¼­½Ä ÷ºÎ ¹®¼­·Î »ç¿ëÇÏ´Â »õ·Î¿î EditorKit¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 Object clone ()
          ÆíÁý ŶÀÇ º¹»çº»À» ÀÛ¼ºÇÕ´Ï´Ù.
 Document createDefaultDocument ()
          ÀÌ Å¸ÀÔÀÇ ¿¡µðÅÍ¿¡ ÀûÀýÇÏ°í ÀÖ´Â ¹ÌÃʱâÈ­ ÅؽºÆ® ½ºÅ丮Áö ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.
protected  void createInputAttributes (Element  element, MutableAttributeSet  set)
          element AttributeSet ³»ÀÇ Å°¿Í °ªÀÇ Æä¾î¸¦ set¿¡ Ä«ÇÇÇÕ´Ï´Ù.
 void deinstall (JEditorPane  c)
          Å¶ÀÌ JEditorPane ·ÎºÎÅÍ »èÁ¦µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù.
 Action [] getActions ()
          ¿¡µðÅÍÀÇ Ä¿¸àµå ¸®½ºÆ®¸¦ ²¨³À´Ï´Ù.
 Element getCharacterAttributeRun ()
          caret¿¡ ´ëÀÀÇÏ´Â ÇöÀçÀÇ ¹®ÀÚ ¼Ó¼ºÀ» ³ªÅ¸³»´Â ¿ä¼Ò¸¦ ²¨³À´Ï´Ù.
 MutableAttributeSet getInputAttributes ()
          ±¸È¹ÀÇ ÀÔ·Â ¼Ó¼ºÀ» ¸®ÅÏÇÕ´Ï´Ù.
 ViewFactory getViewFactory ()
          ÀÌ Å¶À¸·Î ÀÛ¼ºµÇ´Â ¸ðµ¨ÀÇ ºä¸¦ ÀÛ¼ºÇϴµ¥ ÀûÇÕÇÑ ÆÑÅ丮¸¦ ²¨³À´Ï´Ù.
 void install (JEditorPane  c)
          Å¶ÀÌ JEditorPane¿¡ ÀνºÅç µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù.
 
Ŭ·¡½º javax.swing.text. DefaultEditorKit ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
createCaret, getContentType, read, read, write, write
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

StyledEditorKit

public StyledEditorKit()
¼­½Ä ÷ºÎ ¹®¼­·Î »ç¿ëÇÏ´Â »õ·Î¿î EditorKit¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

¸Þ¼­µåÀÇ »ó¼¼

getInputAttributes

public MutableAttributeSet  getInputAttributes()
±¸È¹ÀÇ ÀÔ·Â ¼Ó¼ºÀ» ¸®ÅÏÇÕ´Ï´Ù. caret°¡ À̵¿ÇØ, ¼±ÅÃÀÌ ¾ø´Â °æ¿ì, ÀÔ·Â ¼Ó¼ºÀº ÇöÀçÀÇ caret À§Ä¡ÀÇ ¹®ÀÚ ¼Ó¼ºÀ» ¹Ý¿µÇϱâ À§Çؼ­ ÀÚµ¿ÀûÀ¸·Î º¯°æµË´Ï´Ù. ¼­½Ä ÷ºÎ ÆíÁý ¾×¼ÇÀº ÀÔ·Â ¼Ó¼ºÀ» »ç¿ëÇØ ¾×¼ÇÀ» ½ÇÇàÇÕ´Ï´Ù.

¹Ýȯ°ª:
¼Ó¼º ¼¼Æ®

getCharacterAttributeRun

public Element  getCharacterAttributeRun()
caret¿¡ ´ëÀÀÇÏ´Â ÇöÀçÀÇ ¹®ÀÚ ¼Ó¼ºÀ» ³ªÅ¸³»´Â ¿ä¼Ò¸¦ ²¨³À´Ï´Ù.

¹Ýȯ°ª:
¿ä¼Ò

getActions

public Action [] getActions()
¿¡µðÅÍÀÇ Ä¿¸àµå ¸®½ºÆ®¸¦ ²¨³À´Ï´Ù. ÀÌ°ÍÀº ¼­½Ä 󸮸¦ À§Çؼ­ ·ÎÄ÷ΠÁ¤ÀÇµÈ Ä¿¸àµåÀÇ Ä÷º¼Ç¿¡ ÀÇÇØ Ãß°¡µÈ ½´ÆÛ Å¬·¡½º¿¡ ÀÇÇØ Áö¿ø µÇ´Â Ä¿¸àµåÀÇ ¸®½ºÆ®ÀÔ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º DefaultEditorKit ³»ÀÇ getActions
¹Ýȯ°ª:
Ä¿¸àµå ¸®½ºÆ®

createDefaultDocument

public Document  createDefaultDocument()
ÀÌ Å¸ÀÔÀÇ ¿¡µðÅÍ¿¡ ÀûÀýÇÏ°í ÀÖ´Â ¹ÌÃʱâÈ­ ÅؽºÆ® ½ºÅ丮Áö ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º DefaultEditorKit ³»ÀÇ createDefaultDocument
¹Ýȯ°ª:
¸ðµ¨

install

public void install(JEditorPane  c)
ŶÀÌ JEditorPane¿¡ ÀνºÅç µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º EditorKit ³»ÀÇ install
ÆĶó¹ÌÅÍ:
c - JEditorPane

deinstall

public void deinstall(JEditorPane  c)
ŶÀÌ JEditorPane ·ÎºÎÅÍ »èÁ¦µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â Ãß°¡µÈ ¸®½º³ÊÀÇ µî·ÏÀ» ÇØÁ¦Çϱâ À§Çؼ­ »ç¿ëµË´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º EditorKit ³»ÀÇ deinstall
ÆĶó¹ÌÅÍ:
c - JEditorPane

getViewFactory

public ViewFactory  getViewFactory()
ÀÌ Å¶À¸·Î ÀÛ¼ºµÇ´Â ¸ðµ¨ÀÇ ºä¸¦ ÀÛ¼ºÇϴµ¥ ÀûÇÕÇÑ ÆÑÅ丮¸¦ ²¨³À´Ï´Ù. ÀÌ°ÍÀº ¾Æ·¡ÀÇ Å¸ÀÔÀÇ ¿ä¼Ò¿¡ ´ëÇØ View ±¸ÇöÀ» µ¹·ÁÁÖ±â À§Çؼ­ ±¸ÇöµË´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º DefaultEditorKit ³»ÀÇ getViewFactory
¹Ýȯ°ª:
ÆÑÅ丮

clone

public Object  clone()
ÆíÁý ŶÀÇ º¹»çº»À» ÀÛ¼ºÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º EditorKit ³»ÀÇ clone
¹Ýȯ°ª:
Ä«ÇÇ
°ü·Ã Ç׸ñ:
Cloneable

createInputAttributes

protected void createInputAttributes(Element  element,
                                     MutableAttributeSet  set)
element AttributeSet ³»ÀÇ Å°¿Í °ªÀÇ Æä¾î¸¦ set¿¡ Ä«ÇÇÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ÄÄÆÛ³ÍÆ®,ÀڽľÆÀÌÄÜ, ¿ä¼Ò¸íÀÇ °¢ ¼Ó¼ºÀº Ä«ÇÇÇÏÁö ¾Ê½À´Ï´Ù. ¼­ºê Ŭ·¡½º¿¡¼­´Â ¾î´À ¼Ó¼ºÀ» º¹»çÇØ ¾î´À ¼Ó¼ºÀ» Ä«ÇÇÇÏÁö ¾Ê´Â°¡¸¦ º¯°æÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ´Ù¸¸, ÃÖÃÊ·Î set ³»ÀÇ ¸ðµç ¼Ó¼ºÀ» ¹Ýµå½Ã »èÁ¦ÇØ ÁÖ¼¼¿ä.

ÀÌ ¸Þ¼­µå´Â caret°¡ ´Ù¸¥ À§Ä¡·Î À̵¿ÇÒ ¶§¸¶´Ù È£ÃâÇÕ´Ï´Ù.


JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.