|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.text.AttributedString
public class AttributedString
ÅØ½ºÆ®¿Í ±× ÅØ½ºÆ®¿¡ °ü·ÃµÈ ¼Ó¼º Á¤º¸¸¦ º¸°ü À¯ÁöÇÕ´Ï´Ù. ÅØ½ºÆ®¸¦ Àо´Â »ç¿ëÀÚ°¡ AttributedCharacterIterator ÀÎÅÍÆäÀ̽º °æÀ¯·Î ¼Ó¼º ÷ºÎ ÅØ½ºÆ®¿¡ ¾×¼¼½º ÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì, ÀÌ Å¬·¡½º¸¦ ½ÇÁ¦ÀÇ µ¥ÀÌÅÍ ½ºÅ丮Áö·Î¼ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
AttributedCharacterIterator
,
Annotation
»ý¼ºÀÚ °³¿ä | |
---|---|
AttributedString (AttributedCharacterIterator text)
ÁöÁ¤µÈ AttributedCharacterIterator°¡ Ç¥ÇöÇÏ´Â ¼Ó¼º ÷ºÎ ÅØ½ºÆ®¸¦ °¡Áö´Â AttributedString ÀνºÅϽº¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
AttributedString (AttributedCharacterIterator text,
int beginIndex,
int endIndex)
ÁöÁ¤µÈ AttributedCharacterIterator°¡ Ç¥ÇöÇÏ´Â ¼Ó¼º ÷ºÎ ÅØ½ºÆ®ÀÇ ºÎºÐ ¹üÀ§¸¦ °¡Áö´Â AttributedString ÀνºÅϽº¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
AttributedString (AttributedCharacterIterator text,
int beginIndex,
int endIndex,
AttributedCharacterIterator.Attribute [] attributes)
ÁöÁ¤µÈ AttributedCharacterIterator°¡ Ç¥ÇöÇÏ´Â ¼Ó¼º ÷ºÎ ÅØ½ºÆ®ÀÇ ºÎºÐ ¹üÀ§¸¦ °¡Áö´Â AttributedString ÀνºÅϽº¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
AttributedString (String text)
ÁöÁ¤µÈ ÅØ½ºÆ®¸¦ °¡Áö´Â AttributedString ÀνºÅϽº¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
AttributedString (String text,
Map <? extends AttributedCharacterIterator.Attribute,
? > attributes)
ÁöÁ¤µÈ ÅØ½ºÆ®¿Í ¼Ó¼ºÀ» °¡Áö´Â AttributedString ÀνºÅϽº¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
void |
addAttribute (AttributedCharacterIterator.Attribute attribute,
Object value)
¼Ó¼ºÀ» ij¸¯ÅÍ ¶óÀÎ Àüü¿¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addAttribute (AttributedCharacterIterator.Attribute attribute,
Object value,
int beginIndex,
int endIndex)
¼Ó¼ºÀ» ij¸¯ÅÍ ¶óÀÎÀÇ ºÎºÐ ¹üÀ§¿¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addAttributes (Map <? extends AttributedCharacterIterator.Attribute,
? > attributes,
int beginIndex,
int endIndex)
ÀÏ·ÃÀÇ ¼Ó¼ºÀ» ij¸¯ÅÍ ¶óÀÎÀÇ ºÎºÐ ¹üÀ§¿¡ Ãß°¡ÇÕ´Ï´Ù. |
AttributedCharacterIterator |
getIterator ()
ÀÌ Ä³¸¯ÅÍ ¶óÀÎÀÇ ³»¿ë Àüü¿¡ ¾×¼¼½º ÇÒ ¼ö ÀÖ´Â AttributedCharacterIterator ÀνºÅϽº¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
AttributedCharacterIterator |
getIterator (AttributedCharacterIterator.Attribute [] attributes)
ÀÌ Ä³¸¯ÅÍ ¶óÀÎÀÇ ¼±ÅÃµÈ ³»¿ë¿¡ ¾×¼¼½º ÇÒ ¼ö ÀÖ´Â AttributedCharacterIterator ÀνºÅϽº¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
AttributedCharacterIterator |
getIterator (AttributedCharacterIterator.Attribute [] attributes,
int beginIndex,
int endIndex)
ÀÌ Ä³¸¯ÅÍ ¶óÀÎÀÇ ¼±ÅÃµÈ ³»¿ë¿¡ ¾×¼¼½º ÇÒ ¼ö ÀÖ´Â AttributedCharacterIterator ÀνºÅϽº¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public AttributedString(String text)
text
- ÀÌ ¼Ó¼º ÷ºÎ ij¸¯ÅÍ ¶óÀÎÀÇ ÅØ½ºÆ®public AttributedString(String text, Map <? extends AttributedCharacterIterator.Attribute, ? > attributes)
text
- ÀÌ ¼Ó¼º ÷ºÎ ij¸¯ÅÍ ¶óÀÎÀÇ ÅØ½ºÆ®attributes
- ij¸¯ÅÍ ¶óÀÎ Àüü¿¡ Àû¿ëÇÏ´Â ¼Ó¼º
IllegalArgumentException
- ÅØ½ºÆ®ÀåÀÌ 0 À¸·Î ÇÑÆí ¼Ó¼º ÆÄ¶ó¹ÌÅͰ¡ ºñ¾îÀÖ´Â MapÀÌ ¾Æ´Ñ °æ¿ì (±æÀÌ 0
¹üÀ§¿¡´Â ¼Ó¼ºÀ» Àû¿ëÇÒ ¼ö ¾ø´Ù)public AttributedString(AttributedCharacterIterator text)
text
- ÀÌ ¼Ó¼º ÷ºÎ ij¸¯ÅÍ ¶óÀÎÀÇ ÅØ½ºÆ®public AttributedString(AttributedCharacterIterator text, int beginIndex, int endIndex)
text
- ÀÌ ¼Ó¼º ÷ºÎ ij¸¯ÅÍ ¶óÀÎÀÇ ÅØ½ºÆ®beginIndex
- ¹üÀ§ÀÇ ¼±µÎ ¹®ÀÚÀÇ À妽ºendIndex
- ¹üÀ§ÀÇ ¸»¹Ì ¹®ÀÚÀÇ ´ÙÀ½ÀÇ ¹®ÀÚÀÇ À妽º
IllegalArgumentException
- beginIndex¿Í
endIndex ·Î ÁöÁ¤µÈ ºÎºÐ ¹üÀ§°¡ ÅØ½ºÆ®ÀÇ ¹üÀ§¿Ü¿¡ ÀÖ´Â °æ¿ìAnnotation
public AttributedString(AttributedCharacterIterator text, int beginIndex, int endIndex, AttributedCharacterIterator.Attribute [] attributes)
text
- ÀÌ ¼Ó¼º ÷ºÎ ij¸¯ÅÍ ¶óÀÎÀÇ ÅØ½ºÆ®beginIndex
- ¹üÀ§ÀÇ ¼±µÎ ¹®ÀÚÀÇ À妽ºendIndex
- ¹üÀ§ÀÇ ¸»¹Ì ¹®ÀÚÀÇ ´ÙÀ½ÀÇ ¹®ÀÚÀÇ À妽ºattributes
- ÅØ½ºÆ®·ÎºÎÅÍ ÃßÃâÇÏ´Â ¼Ó¼º. nullÀÌ ÁöÁ¤µÇ¾úÀ» °æ¿ì, ÀÌ¿ë °¡´ÉÇÑ ¸ðµç ¼Ó¼ºÀÌ »ç¿ëµÈ´Ù
IllegalArgumentException
- beginIndex¿Í
endIndex ·Î ÁöÁ¤µÈ ºÎºÐ ¹üÀ§°¡ ÅØ½ºÆ®ÀÇ ¹üÀ§¿Ü¿¡ ÀÖ´Â °æ¿ìAnnotation
¸Þ¼µåÀÇ »ó¼¼ |
---|
public void addAttribute(AttributedCharacterIterator.Attribute attribute, Object value)
attribute
- ¼Ó¼ºÀÇ Å°value
- ¼Ó¼ºÀÇ °ª. nullµµ
ÁöÁ¤ °¡´É
IllegalArgumentException
- AttributedString
±æÀ̰¡ 0ÀÎ °æ¿ì (±æÀÌ 0
¹üÀ§¿¡´Â ¼Ó¼ºÀ» Àû¿ëÇÒ ¼ö ¾ø´Ù)public void addAttribute(AttributedCharacterIterator.Attribute attribute, Object value, int beginIndex, int endIndex)
attribute
- ¼Ó¼ºÀÇ Å°value
- ¼Ó¼ºÀÇ °ª. nullµµ
ÁöÁ¤ °¡´ÉbeginIndex
- ¹üÀ§ÀÇ ¼±µÎ ¹®ÀÚÀÇ À妽ºendIndex
- ¹üÀ§ÀÇ ¸»¹Ì ¹®ÀÚÀÇ ´ÙÀ½ÀÇ ¹®ÀÚÀÇ À妽º
IllegalArgumentException
- beginIndex°¡ 0 º¸´Ù ÀÛÀº °æ¿ì, endIndex°¡ ij¸¯ÅÍ ¶óÀÎ ±æÀ̺¸´Ù Å« °æ¿ì, ȤÀº beginIndex¿Í
endIndex ·Î Á¤ÀǵǴ ij¸¯ÅÍ ¶óÀÎÀÇ ºÎºÐ ¹üÀ§°¡ ºñ¿ì´Â °æ¿ìpublic void addAttributes(Map <? extends AttributedCharacterIterator.Attribute, ? > attributes, int beginIndex, int endIndex)
attributes
- ij¸¯ÅÍ ¶óÀο¡ Ãß°¡ÇÏ´Â ¼Ó¼ºbeginIndex
- ¹üÀ§ÀÇ ¼±µÎ ¹®ÀÚÀÇ À妽ºendIndex
- ¹üÀ§ÀÇ ¸»¹Ì ¹®ÀÚÀÇ ´ÙÀ½ÀÇ ¹®ÀÚÀÇ À妽º
IllegalArgumentException
- beginIndex°¡ 0 º¸´Ù ÀÛÀº °æ¿ì, endIndex°¡ ij¸¯ÅÍ ¶óÀÎ ±æÀ̺¸´Ù Å« °æ¿ì, ȤÀº beginIndex¿Í
endIndex ·Î Á¤ÀǵǴ ij¸¯ÅÍ ¶óÀÎÀÇ ºÎºÐ ¹üÀ§°¡ ºñ¾îÀִµ¥ ¼Ó¼º ÆÄ¶ó¹ÌÅÍ´Â ºñ¾îÀÖ´Â MapÀÌ ¾Æ´Ñ °æ¿ìpublic AttributedCharacterIterator getIterator()
public AttributedCharacterIterator getIterator(AttributedCharacterIterator.Attribute [] attributes)
attributes
- Ŭ¶óÀÌ¾ðÆ®°¡ Èï¹Ì¸¦ °¡Áö°í ÀÖ´Â ¼Ó¼ºÀÇ ¸®½ºÆ®
public AttributedCharacterIterator getIterator(AttributedCharacterIterator.Attribute [] attributes, int beginIndex, int endIndex)
attributes
- Ŭ¶óÀÌ¾ðÆ®°¡ Èï¹Ì¸¦ °¡Áö°í ÀÖ´Â ¼Ó¼ºÀÇ ¸®½ºÆ®beginIndex
- ¼±µÎ ¹®ÀÚÀÇ À妽ºendIndex
- ¸»¹Ì ¹®ÀÚÀÇ ´ÙÀ½ÀÇ ¹®ÀÚÀÇ À妽º
IllegalArgumentException
- beginIndex°¡ 0 º¸´Ù ÀÛÀº °æ¿ì, endIndex°¡ ij¸¯ÅÍ ¶óÀÎ ±æÀ̺¸´Ù Å« °æ¿ì, ȤÀº beginIndex°¡ endIndex º¸´Ù Å« °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.