JavaTM 2 Platform
Standard Ed. 5.0

ÀÎÅÍÆäÀ̽º
javax.swing.text.Style »ç¿ë

Style¸¦ »ç¿ëÇÏ°í ÀÖ´Â ÆÐÅ°Áö
javax.swing ¸ðµç Ç÷§Æû¿¡¼­ °¡´ÉÇÑ ÇÑ ¶È°°ÀÌ ±â´ÉÇÏ´Â ¡¸°æ·®¡¹(Java °øÅë ¾ð¾î) ÄÄÆÛ³ÍÆ®¼¼Æ®¸¦ Á¦°øÇÕ´Ï´Ù.  
javax.swing.text ÆíÁý °¡´É/ÆíÁý ºÒ°¡´É ÅؽºÆ® ÄÄÆÛ³ÍÆ®¸¦ ó¸®Çϴ Ŭ·¡½º¿Í ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÕ´Ï´Ù.  
javax.swing.text.html HTML ÅؽºÆ® ÆíÁý±â¸¦ ÀÛ¼ºÇϱâ À§ÇÑ HTMLEditorKit Ŭ·¡½º¿Í Áö¿ø Ŭ·¡½º¸¦ Á¦°øÇÕ´Ï´Ù.  
 

javax.swing ¿¡¼­ÀÇ Style »ç¿ë
 

Style¸¦ µ¹·ÁÁÖ´Â javax.swing ¸Þ¼­µå
 Style JTextPane. addStyle (String  nm, Style  parent)
          ³í¸® ¼­½Ä °èÃþ¿¡ »õ·Î¿î ¼­½ÄÀ» Ãß°¡ÇÕ´Ï´Ù.
 Style JTextPane. getLogicalStyle ()
          ÇöÀçÀÇ caret À§Ä¡¿¡¼­ ³ªÅ¸³»Áö´Â ´Ü¶ô¿¡ ÇÒ´çÇÒ ¼ö ÀÖ´Â ³í¸® ¼­½ÄÀÌ ÀÖ´Â °æ¿ì´Â ±×°ÍÀ» ¸®ÅÏÇÕ´Ï´Ù.
 Style JTextPane. getStyle (String  nm)
          ±×¶§±îÁö Ãß°¡ ³¡³­ nullÀÌ ¾Æ´Ñ À̸§ ÷ºÎ ¼­½ÄÀ» ¸®ÅÏÇÕ´Ï´Ù.
 

Style ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â javax.swing ¸Þ¼­µå
 Style JTextPane. addStyle (String  nm, Style  parent)
          ³í¸® ¼­½Ä °èÃþ¿¡ »õ·Î¿î ¼­½ÄÀ» Ãß°¡ÇÕ´Ï´Ù.
 void JTextPane. setLogicalStyle (Style  s)
          ´Ü¶ô¿¡ »ç¿ëÇÏ´Â ³í¸® ¼­½ÄÀ» ÇöÀçÀÇ caret À§Ä¡·Î ¼³Á¤ÇÕ´Ï´Ù.
 

javax.swing.text ¿¡¼­ÀÇ Style »ç¿ë
 

Style¸¦ ±¸ÇöÇÏ°í ÀÖ´Â javax.swing.text Ŭ·¡½º
 class StyleContext.NamedStyle
          º¸Åë, ¹®ÀÚ ¹× ´Ü¶ôÀÇ ¼­½ÄÀ» ³ªÅ¸³»±â À§Çؼ­ »ç¿ëµÇ´Â ¼Ó¼ºÀÇ Ä÷º¼ÇÀÔ´Ï´Ù.
 

Style¸¦ µ¹·ÁÁÖ´Â javax.swing.text ¸Þ¼­µå
 Style StyleContext. addStyle (String  nm, Style  parent)
          ¼­½Ä °èÃþ¿¡ »õ·Î¿î ¼­½ÄÀ» Ãß°¡ÇÕ´Ï´Ù.
 Style StyledDocument. addStyle (String  nm, Style  parent)
          ³í¸® ¼­½Ä °èÃþ¿¡ »õ·Î¿î ¼­½ÄÀ» Ãß°¡ÇÕ´Ï´Ù.
 Style DefaultStyledDocument. addStyle (String  nm, Style  parent)
          ³í¸® ¼­½Ä °èÃþ¿¡ »õ·Î¿î ¼­½ÄÀ» Ãß°¡ÇÕ´Ï´Ù.
 Style StyledDocument. getLogicalStyle (int p)
          ´Ü¶ô³»ÀÇ ÁöÁ¤µÈ À§Ä¡ÀÇ ³í¸® ¼­½ÄÀ» ÃëµæÇÕ´Ï´Ù.
 Style DefaultStyledDocument. getLogicalStyle (int p)
          ÁöÁ¤µÈ À§Ä¡¿¡ ÀÇÇØ ³ªÅ¸³»Áø ´Ü¶ô¿¡ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ³í¸® ¼­½ÄÀ» ²¨³À´Ï´Ù.
 Style StyleContext. getStyle (String  nm)
          ¹®¼­¿¡ ÀÌÀü¿¡ Ãß°¡µÈ À̸§ ÷ºÎÀÇ ¼­½ÄÀ» ²¨³À´Ï´Ù.
 Style StyledDocument. getStyle (String  nm)
          ÀÌÀü¿¡ Ãß°¡µÈ À̸§ ÷ºÎ ¼­½ÄÀ» ²¨³À´Ï´Ù.
 Style DefaultStyledDocument. getStyle (String  nm)
          ÀÌÀü¿¡ Ãß°¡µÈ À̸§ ÷ºÎ ¼­½ÄÀ» ²¨³À´Ï´Ù.
 

Style ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â javax.swing.text ¸Þ¼­µå
 Style StyleContext. addStyle (String  nm, Style  parent)
          ¼­½Ä °èÃþ¿¡ »õ·Î¿î ¼­½ÄÀ» Ãß°¡ÇÕ´Ï´Ù.
 Style StyledDocument. addStyle (String  nm, Style  parent)
          ³í¸® ¼­½Ä °èÃþ¿¡ »õ·Î¿î ¼­½ÄÀ» Ãß°¡ÇÕ´Ï´Ù.
 Style DefaultStyledDocument. addStyle (String  nm, Style  parent)
          ³í¸® ¼­½Ä °èÃþ¿¡ »õ·Î¿î ¼­½ÄÀ» Ãß°¡ÇÕ´Ï´Ù.
 void StyledDocument. setLogicalStyle (int pos, Style  s)
          ÁöÁ¤µÈ À§Ä¡ÀÇ ´Ü¶ô¿¡ »ç¿ëÇÏ´Â ³í¸® ¼­½ÄÀ» ¼³Á¤ÇÕ´Ï´Ù.
 void DefaultStyledDocument. setLogicalStyle (int pos, Style  s)
          ÁöÁ¤µÈ À§Ä¡ÀÇ ´Ü¶ô¿¡ »ç¿ëÇÏ´Â ³í¸® ¼­½ÄÀ» ¼³Á¤ÇÕ´Ï´Ù.
protected  void DefaultStyledDocument. styleChanged (Style  style)
          ÀÌ ¹®¼­ÀÇ ¼­½ÄÀÌ º¯°æµÇ¾úÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù.
 

Style ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â javax.swing.text constructor¡¡ ¡¡
StyleContext.NamedStyle (String  name, Style  parent)
          »õ·Î¿î À̸§ ÷ºÎ ¼­½ÄÀ» ÀÛ¼ºÇÕ´Ï´Ù.
StyleContext.NamedStyle (Style  parent)
          »õ·Î¿î À̸§ ÷ºÎ ¼­½ÄÀ» ÀÛ¼ºÇÕ´Ï´Ù.
 

javax.swing.text.html ¿¡¼­ÀÇ Style »ç¿ë
 

Style¸¦ µ¹·ÁÁÖ´Â javax.swing.text.html ¸Þ¼­µå
 Style StyleSheet. getRule (HTML.Tag  t, Element  e)
          ÁöÁ¤µÈ ŸÀÔÀÇ HTML ű׸¦ ·»´õ¸µÇϱâ À§ÇÑ ½ºÅ¸ÀÏÀ» ²¨³À´Ï´Ù.
 Style StyleSheet. getRule (String  selector)
          Ä³¸¯ÅÍ ¶óÀÎ Çü½Ä¿¡¼­ ÁöÁ¤µÈ ¼¿·ºÅÍ¿¡ °¡Àå ÀÏÄ¡ÇÏ´Â ±ÔÄ¢À» ²¨³À´Ï´Ù.
 


JavaTM 2 Platform
Standard Ed. 5.0

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