JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.text
ÀÎÅÍÆäÀ̽º AbstractDocument.AttributeContext

¾Ë·ÁÁø ±¸Çö Ŭ·¡½º ¸ñ·Ï:
StyleContext, StyleSheet
Æ÷ÇԵǾî Àִ Ŭ·¡½º:
AbstractDocument

public static interface AbstractDocument.AttributeContext

ÀÌ ÀÎÅÍÆäÀ̽º´Â Ç÷¯±× ÀÎ °¡´ÉÇÑ ¼Ó¼º ¾ÐÃà ¼ö¹ýÀ» MutableAttributeSet ±¸ÇöÀ¸·Î »ç¿ë °¡´ÉÇÏ°Ô Çϱâ À§Çؼ­ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. AttributeSet¸¦ ºÒº¯¿¡ À¯ÁöÇÒ °¡´É¼ºÀ» À¯ÁöÇϸ鼭, ÀÌÀüÀÇ AttributeSet ÀνºÅϽº¸¦ ´Ù¸¥ ÀνºÅϽº¿Í ±³È¯ÇÏ·Á¸é, ¼Ó¼º ¼¼Æ®ÀÇ º¯À̸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ±¸ÇöÀº StyleContext Ŭ·¡½º¿¡ ÀÇÇØ Á¦°øµË´Ï´Ù.ÀÌ Å¬·¡½º°¡ Á¦°øÇÏ´Â Element ±¸ÇöÀº ÀÌ ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇØ MutableAttributeSet ±¸ÇöÀ» Á¦°øÇØ, ´Ù¸¥ AttributeSet ¾ÐÃà ¼ö¹ýÀ» »ç¿ë °¡´ÉÇÏ°Ô ÇÕ´Ï´Ù. ÇÊ¿äÇÑ ¾ÐÃà ¼ö¹ýÀÇ ±¸ÇöÀ» ½Ç½ÃÇÏ´Â °´Ã¼¸¦ µ¹·ÁÁÖµµ·Ï ÇÏ·Á¸é, ¸Þ¼­µå getAttributeContext¸¦ ±¸ÇöÇÕ´Ï´Ù.

°ü·Ã Ç׸ñ:
StyleContext

¸Þ¼­µå °³¿ä
 AttributeSet addAttribute (AttributeSet  old, Object  name, Object  value)
          ÁöÁ¤µÈ ¼¼Æ®¿¡ ¼Ó¼ºÀ» Ãß°¡ÇØ, ±× »õ·Î¿î ¼¼Æ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 AttributeSet addAttributes (AttributeSet  old, AttributeSet  attr)
          ¼Ó¼º ¼¼Æ®¸¦ ¿ä¼Ò¿¡ Ãß°¡ÇÕ´Ï´Ù.
 AttributeSet getEmptySet ()
          ºñ¾îÀÖ´Â AttributeSet¸¦ ²¨³À´Ï´Ù.
 void reclaim (AttributeSet  a)
          ¼Ó¼º ¼¼Æ®¸¦ Àç»ýÇÕ´Ï´Ù.
 AttributeSet removeAttribute (AttributeSet  old, Object  name)
          ¼¼Æ®·ÎºÎÅÍ ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù.
 AttributeSet removeAttributes (AttributeSet  old, AttributeSet  attrs)
          ¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.
 AttributeSet removeAttributes (AttributeSet  old, Enumeration <? > names)
          ¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.
 

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

addAttribute

AttributeSet  addAttribute(AttributeSet  old,
                          Object  name,
                          Object  value)
ÁöÁ¤µÈ ¼¼Æ®¿¡ ¼Ó¼ºÀ» Ãß°¡ÇØ, ±× »õ·Î¿î ¼¼Æ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
old - ±¸¼Ó¼º ¼¼Æ®
name - null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
value - ¼Ó¼º°ª
¹Ýȯ°ª:
°»½Å ¼Ó¼º ¼¼Æ®
°ü·Ã Ç׸ñ:
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)

addAttributes

AttributeSet  addAttributes(AttributeSet  old,
                           AttributeSet  attr)
¼Ó¼º ¼¼Æ®¸¦ ¿ä¼Ò¿¡ Ãß°¡ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
old - ±¸¼Ó¼º ¼¼Æ®
attr - Ãß°¡ÇÏ´Â ¼Ó¼º
¹Ýȯ°ª:
°»½Å ¼Ó¼º ¼¼Æ®
°ü·Ã Ç׸ñ:
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)

removeAttribute

AttributeSet  removeAttribute(AttributeSet  old,
                             Object  name)
¼¼Æ®·ÎºÎÅÍ ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
old - ±¸¼Ó¼º ¼¼Æ®
name - null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
¹Ýȯ°ª:
°»½Å ¼Ó¼º ¼¼Æ®
°ü·Ã Ç׸ñ:
MutableAttributeSet.removeAttribute(java.lang.Object)

removeAttributes

AttributeSet  removeAttributes(AttributeSet  old,
                              Enumeration <? > names)
¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
old - ±¸¼Ó¼º ¼¼Æ®
names - ¼Ó¼º¸í
¹Ýȯ°ª:
°»½Å ¼Ó¼º ¼¼Æ®
°ü·Ã Ç׸ñ:
MutableAttributeSet.removeAttributes(java.util.Enumeration)

removeAttributes

AttributeSet  removeAttributes(AttributeSet  old,
                              AttributeSet  attrs)
¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
old - ±¸¼Ó¼º ¼¼Æ®
attrs - ¼Ó¼º
¹Ýȯ°ª:
°»½Å ¼Ó¼º ¼¼Æ®
°ü·Ã Ç׸ñ:
MutableAttributeSet.removeAttributes(java.util.Enumeration)

getEmptySet

AttributeSet  getEmptySet()
ºñ¾îÀÖ´Â AttributeSet¸¦ ²¨³À´Ï´Ù.

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

reclaim

void reclaim(AttributeSet  a)
¼Ó¼º ¼¼Æ®¸¦ Àç»ýÇÕ´Ï´Ù. ÀÌ°ÍÀº MutableAttributeSet°¡ ƯÁ¤ÀÇ ºÒº¯ÀÎ ¼¼Æ®¸¦ ÀÌÁ¦ ÇÊ¿ä·Î ÇÏÁö ¾Ê´Â °ÍÀ» ¸¶Å©Çϱâ À§ÇÑ ¹æ¹ýÀÔ´Ï´Ù. ¾àÂüÁ¶°¡ ¾ø´Â 1.1 ¿¡¼­¸¸ ÇÊ¿äÇÕ´Ï´Ù. 1.1 ±¸ÇöÀº ÀÌ°ÍÀ» ÆÄÀ̳ª¶óÀÌÁî¸Þ¼­µå ¾È¿¡¼­ È£ÃâÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
a - Àç»ýÇÏ´Â ¼Ó¼º ¼¼Æ®

JavaTM 2 Platform
Standard Ed. 5.0

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