JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.text
Ŭ·¡½º AbstractDocument.AbstractElement

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.text.AbstractDocument.AbstractElement
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable, AttributeSet, Element, MutableAttributeSet, TreeNode
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
AbstractDocument.BranchElement, AbstractDocument.LeafElement
Æ÷ÇԵǾî Àִ Ŭ·¡½º:
AbstractDocument

public abstract class AbstractDocument.AbstractElement
extends Object
implements Element, MutableAttributeSet, Serializable, TreeNode

¿ä¼ÒÀÇ Ãß»ó ºÎºÐÀ» ±¸ÇöÇÕ´Ï´Ù. µðÆúÆ®¿¡¼­´Â ¿ä¼ÒÀÇ ÇöÀçÀÇ ¼Ó¼º ¼¼Æ®¿¡ ´ëÇØ ºÒº¯ ºÎºÐÀ» ³ªÅ¸³»´Â Çʵ带 º¸°ü À¯ÁöÇÏ´Â °ÍÀ¸·Î ¿ä¼Ò´Â ¼Ó¼ºÀ» Áö¿ø ÇÏ°í ÀÖ½À´Ï´Ù. ¿ä¼Ò ÀÚ½ÅÀº MutableAttributeSet¸¦ ±¸ÇöÇÕ´Ï´Ù. MutableAttributeSet¸¦ »ç¿ëÇϸé, »õ·Î¿î ºÒº¯ ¼¼Æ®¸¦ ²¨³» ¼¼Æ®¸¦ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù. ºÒº¯ ¼¼Æ®´Â ¹®¼­¿¡ °ü·ÃµÈ AttributeContext¿¡ ÀÇÇØ Á¦°øµË´Ï´Ù.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ Áö¿øÀº ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. JDK ¹öÀü 1.4 ÀÌÈÄ, ¸ðµç JavaBeans Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº java.beans ÆÐÅ°Áö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder¸¦ ÂüÁ¶ÇϽʽÿÀ.


Áßø(Nested) Ŭ·¡½º °³¿ä
 
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
 
ÇÊµå °³¿ä
 
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
NameAttribute, ResolveAttribute
 
»ý¼ºÀÚ °³¿ä
AbstractDocument.AbstractElement (Element  parent, AttributeSet  a)
          »õ·Î¿î AbstractElement¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 void addAttribute (Object  name, Object  value)
          ¿ä¼Ò¿¡ ¼Ó¼ºÀ» Ãß°¡ÇÕ´Ï´Ù.
 void addAttributes (AttributeSet  attr)
          ¼Ó¼º ¼¼Æ®¸¦ ¿ä¼Ò¿¡ Ãß°¡ÇÕ´Ï´Ù.
abstract  Enumeration children ()
          ¸®½Ã¹öÀÇ ÀÚ½ÄÀ» Enumeration·Î ¸®ÅÏÇÕ´Ï´Ù.
 boolean containsAttribute (Object  name, Object  value)
          ¼Ó¼ºÀÇ À̸§°ú °ªÀÌ Á¤ÀÇ°¡ ³¡³­ »óÅÂÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 boolean containsAttributes (AttributeSet  attrs)
          ¿ä¼Ò¿¡ ¸ðµç ¼Ó¼ºÀÌ Æ÷ÇԵǾî ÀÖ´ÂÁö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 AttributeSet copyAttributes ()
          ¼Ó¼º ¼¼Æ®¸¦ Ä«ÇÇÇÕ´Ï´Ù.
 void dump (PrintStream  psOut, int indentAmount)
          ¿ä¼Ò °èÃþÀÇ µð¹ö±× Ç¥ÇöÀ» ´ýÇÁ ÇÕ´Ï´Ù.
abstract  boolean getAllowsChildren ()
          ¸®½Ã¹ö°¡ ÀÚ½ÄÀ» Çã°¡ÇÏ´Â °æ¿ì´Â true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Object getAttribute (Object  attrName)
          ¼Ó¼ºÀÇ °ªÀ» ÃëµæÇÕ´Ï´Ù.
 int getAttributeCount ()
          Á¤Àǵǰí ÀÖ´Â ¼Ó¼ºÀÇ °³¼ö¸¦ ÃëµæÇÕ´Ï´Ù.
 Enumeration <? > getAttributeNames ()
          ¸ðµç ¼Ó¼ºÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù.
 AttributeSet getAttributes ()
          ¿ä¼ÒÀÇ ¼Ó¼ºÀ» ÃëµæÇÕ´Ï´Ù.
 TreeNode getChildAt (int childIndex)
          À妽º childIndex¿¡ ÀÖ´ÂÀÚ½Ä TreeNode¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getChildCount ()
          TreeNode ¸®½Ã¹ö°¡ Æ÷ÇÔÇÏ´ÂÀÚ½Ä ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Document getDocument ()
          ±â¹ÝÀÌ µÇ´Â ¸ðµ¨À» ÃëµæÇÕ´Ï´Ù.
abstract  Element getElement (int index)
          ¾ÆÀÌ ¿ä¼Ò¸¦ ÃëµæÇÕ´Ï´Ù.
abstract  int getElementCount ()
          ¿ä¼ÒÀÇ ÀÚ½Ä ÀÇ ¼ö¸¦ ÃëµæÇÕ´Ï´Ù.
abstract  int getElementIndex (int offset)
          ÁöÁ¤µÈ ¸ðµ¨ ¿ÀÇÁ¼Â(offset)¿¡ °¡Àå °¡±î¿îÀÚ½Ä ¿ä¼Ò À妽º¸¦ ÃëµæÇÕ´Ï´Ù.
abstract  int getEndOffset ()
          ¿ä¼ÒÀÇ ¸ðµ¨³»¿¡¼­ÀÇ Á¾·á ¿ÀÇÁ¼Â(offset)¸¦ ÃëµæÇÕ´Ï´Ù.
 int getIndex (TreeNode  node)
          ¸®½Ã¹öÀÇÀÚ½Ä Áß¿¡¼­ node À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String getName ()
          ¿ä¼ÒÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù.
 TreeNode getParent ()
          ¸®½Ã¹öÀÇ Ä£ TreeNode¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Element getParentElement ()
          ¿ä¼ÒÀÇ ºÎ¸ð¸¦ ÃëµæÇÕ´Ï´Ù.
 AttributeSet getResolveParent ()
          Çؼ® ó¸®ÃøÀÇ ºÎ¸ð¸¦ ÃëµæÇÕ´Ï´Ù.
abstract  int getStartOffset ()
          ¿ä¼ÒÀÇ ¸ðµ¨³»¿¡¼­ÀÇ °³½Ã ¿ÀÇÁ¼Â(offset)¸¦ ÃëµæÇÕ´Ï´Ù.
 boolean isDefined (Object  attrName)
          ÁöÁ¤µÈ ¼Ó¼ºÀÌ Á¤ÀÇ°¡ ³¡³­ »óÅÂÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 boolean isEqual (AttributeSet  attr)
          2°³ÀÇ ¼Ó¼º ¼¼Æ®°¡ µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
abstract  boolean isLeaf ()
          ¿ä¼Ò°¡ ÀÙÀΰ¡ ¾î¶²°¡¸¦ Á¶»çÇÕ´Ï´Ù.
 void removeAttribute (Object  name)
          ¼¼Æ®·ÎºÎÅÍ ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù.
 void removeAttributes (AttributeSet  attrs)
          ¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeAttributes (Enumeration <? > names)
          ¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void setResolveParent (AttributeSet  parent)
          Çؼ® ó¸®ÃøÀÇ ºÎ¸ð¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

AbstractDocument.AbstractElement

public AbstractDocument.AbstractElement(Element  parent,
                                        AttributeSet  a)
»õ·Î¿î AbstractElement¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
parent - Ä£¿ä¼Ò
a - ¿ä¼ÒÀÇ ¼Ó¼º
¸Þ¼­µåÀÇ »ó¼¼

dump

public void dump(PrintStream  psOut,
                 int indentAmount)
¿ä¼Ò °èÃþÀÇ µð¹ö±× Ç¥ÇöÀ» ´ýÇÁ ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
psOut - Ãâ·Â ½ºÆ®¸²
indentAmount - Àε§Æ® ·¹º§ >= 0

getAttributeCount

public int getAttributeCount()
Á¤Àǵǰí ÀÖ´Â ¼Ó¼ºÀÇ °³¼ö¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º AttributeSet ³»ÀÇ getAttributeCount
¹Ýȯ°ª:
¼Ó¼ºÀÇ ¼ö >= 0
°ü·Ã Ç׸ñ:
AttributeSet.getAttributeCount()

isDefined

public boolean isDefined(Object  attrName)
ÁöÁ¤µÈ ¼Ó¼ºÀÌ Á¤ÀÇ°¡ ³¡³­ »óÅÂÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º AttributeSet ³»ÀÇ isDefined
ÆĶó¹ÌÅÍ:
attrName - null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
¹Ýȯ°ª:
¼Ó¼ºÀÌ Á¤Àǵǰí ÀÖ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
AttributeSet.isDefined(java.lang.Object)

isEqual

public boolean isEqual(AttributeSet  attr)
2°³ÀÇ ¼Ó¼º ¼¼Æ®°¡ µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º AttributeSet ³»ÀÇ isEqual
ÆĶó¹ÌÅÍ:
attr - ºñ±³ÀÇ ´ë»óÀÌ µÇ´Â ¼Ó¼º ¼¼Æ®
¹Ýȯ°ª:
µ¿ÀÏÇÑ °æ¿ì´Â true
°ü·Ã Ç׸ñ:
AttributeSet.isEqual(javax.swing.text.AttributeSet)

copyAttributes

public AttributeSet  copyAttributes()
¼Ó¼º ¼¼Æ®¸¦ Ä«ÇÇÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º AttributeSet ³»ÀÇ copyAttributes
¹Ýȯ°ª:
Ä«ÇÇ
°ü·Ã Ç׸ñ:
AttributeSet.copyAttributes()

getAttribute

public Object  getAttribute(Object  attrName)
¼Ó¼ºÀÇ °ªÀ» ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º AttributeSet ³»ÀÇ getAttribute
ÆĶó¹ÌÅÍ:
attrName - null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
¹Ýȯ°ª:
¼Ó¼º°ª
°ü·Ã Ç׸ñ:
AttributeSet.getAttribute(java.lang.Object)

getAttributeNames

public Enumeration <? > getAttributeNames()
¸ðµç ¼Ó¼ºÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º AttributeSet ³»ÀÇ getAttributeNames
¹Ýȯ°ª:
¼Ó¼º¸íÀÇ ¿­°Å
°ü·Ã Ç׸ñ:
AttributeSet.getAttributeNames()

containsAttribute

public boolean containsAttribute(Object  name,
                                 Object  value)
¼Ó¼ºÀÇ À̸§°ú °ªÀÌ Á¤ÀÇ°¡ ³¡³­ »óÅÂÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º AttributeSet ³»ÀÇ containsAttribute
ÆĶó¹ÌÅÍ:
name - null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
value - ¼Ó¼º°ª
¹Ýȯ°ª:
À̸§°ú °ªÀÌ Á¤Àǵǰí ÀÖ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
AttributeSet.containsAttribute(java.lang.Object, java.lang.Object)

containsAttributes

public boolean containsAttributes(AttributeSet  attrs)
¿ä¼Ò¿¡ ¸ðµç ¼Ó¼ºÀÌ Æ÷ÇԵǾî ÀÖ´ÂÁö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º AttributeSet ³»ÀÇ containsAttributes
ÆĶó¹ÌÅÍ:
attrs - üũ ´ë»óÀÇ ¼Ó¼º
¹Ýȯ°ª:
¿ä¼Ò¿¡ ¸ðµç ¼Ó¼ºÀÌ Æ÷ÇԵǾî ÀÖ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
AttributeSet.containsAttributes(javax.swing.text.AttributeSet)

getResolveParent

public AttributeSet  getResolveParent()
Çؼ® ó¸®ÃøÀÇ ºÎ¸ð¸¦ ÃëµæÇÕ´Ï´Ù. ¿À¹ö¶óÀ̵å(override) µÇÁö ¾Ê´Â °æ¿ì, Çؼ® ó¸®ÃøÀÇ ºÎ¸ð´Â µðÆúÆ®·Î Ä£¿ä¼Ò°¡ µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º AttributeSet ³»ÀÇ getResolveParent
¹Ýȯ°ª:
ºÎ¸ð·ÎºÎÅÍÀÇ ¼Ó¼º. ¾ø´Â °æ¿ì´Â null
°ü·Ã Ç׸ñ:
AttributeSet.getResolveParent()

addAttribute

public void addAttribute(Object  name,
                         Object  value)
¿ä¼Ò¿¡ ¼Ó¼ºÀ» Ãß°¡ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MutableAttributeSet ³»ÀÇ addAttribute
ÆĶó¹ÌÅÍ:
name - null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
value - ¼Ó¼º°ª
°ü·Ã Ç׸ñ:
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)

addAttributes

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

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MutableAttributeSet ³»ÀÇ addAttributes
ÆĶó¹ÌÅÍ:
attr - Ãß°¡ÇÏ´Â ¼Ó¼º
°ü·Ã Ç׸ñ:
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)

removeAttribute

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

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MutableAttributeSet ³»ÀÇ removeAttribute
ÆĶó¹ÌÅÍ:
name - null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
°ü·Ã Ç׸ñ:
MutableAttributeSet.removeAttribute(java.lang.Object)

removeAttributes

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

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MutableAttributeSet ³»ÀÇ removeAttributes
ÆĶó¹ÌÅÍ:
names - ¼Ó¼º¸í
°ü·Ã Ç׸ñ:
MutableAttributeSet.removeAttributes(java.util.Enumeration)

removeAttributes

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

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MutableAttributeSet ³»ÀÇ removeAttributes
ÆĶó¹ÌÅÍ:
attrs - ¼Ó¼º
°ü·Ã Ç׸ñ:
MutableAttributeSet.removeAttributes(java.util.Enumeration)

setResolveParent

public void setResolveParent(AttributeSet  parent)
Çؼ® ó¸®ÃøÀÇ ºÎ¸ð¸¦ ¼³Á¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MutableAttributeSet ³»ÀÇ setResolveParent
ÆĶó¹ÌÅÍ:
parent - ºÎ¸ð. ¾ø´Â °æ¿ì´Â null
°ü·Ã Ç׸ñ:
MutableAttributeSet.setResolveParent(javax.swing.text.AttributeSet)

getDocument

public Document  getDocument()
±â¹ÝÀÌ µÇ´Â ¸ðµ¨À» ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ getDocument
¹Ýȯ°ª:
¸ðµ¨

getParentElement

public Element  getParentElement()
¿ä¼ÒÀÇ ºÎ¸ð¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ getParentElement
¹Ýȯ°ª:
ºÎ¸ð

getAttributes

public AttributeSet  getAttributes()
¿ä¼ÒÀÇ ¼Ó¼ºÀ» ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ getAttributes
¹Ýȯ°ª:
¼Ó¼º ¼¼Æ®

getName

public String  getName()
¿ä¼ÒÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ getName
¹Ýȯ°ª:
À̸§. ¾ø´Â °æ¿ì´Â null

getStartOffset

public abstract int getStartOffset()
¿ä¼ÒÀÇ ¸ðµ¨³»¿¡¼­ÀÇ °³½Ã ¿ÀÇÁ¼Â(offset)¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ getStartOffset
¹Ýȯ°ª:
¿ÀÇÁ¼Â(offset) >= 0
°ü·Ã Ç׸ñ:
Document, AbstractDocument

getEndOffset

public abstract int getEndOffset()
¿ä¼ÒÀÇ ¸ðµ¨³»¿¡¼­ÀÇ Á¾·á ¿ÀÇÁ¼Â(offset)¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ getEndOffset
¹Ýȯ°ª:
¿ÀÇÁ¼Â(offset) >= 0
°ü·Ã Ç׸ñ:
Document, AbstractDocument

getElement

public abstract Element  getElement(int index)
¾ÆÀÌ ¿ä¼Ò¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ getElement
ÆĶó¹ÌÅÍ:
index - ÀÚÀÇ À妽º >= 0 && < getElementCount()
¹Ýȯ°ª:
ÀÚ ¿ä¼Ò

getElementCount

public abstract int getElementCount()
¿ä¼ÒÀÇ ÀÚ½Ä ÀÇ ¼ö¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ getElementCount
¹Ýȯ°ª:
ÀÚÀÇ ¼ö >= 0

getElementIndex

public abstract int getElementIndex(int offset)
ÁöÁ¤µÈ ¸ðµ¨ ¿ÀÇÁ¼Â(offset)¿¡ °¡Àå °¡±î¿îÀÚ½Ä ¿ä¼Ò À妽º¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ getElementIndex
ÆĶó¹ÌÅÍ:
offset - ¿ÀÇÁ¼Â(offset) >= 0
¹Ýȯ°ª:
¿ä¼ÒÀÇ À妽º >= 0

isLeaf

public abstract boolean isLeaf()
¿ä¼Ò°¡ ÀÙÀΰ¡ ¾î¶²°¡¸¦ Á¶»çÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Element ³»ÀÇ isLeaf
Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeNode ³»ÀÇ isLeaf
¹Ýȯ°ª:
ÀÙÀÎ °æ¿ì´Â true

getChildAt

public TreeNode  getChildAt(int childIndex)
À妽º childIndex¿¡ ÀÖ´ÂÀÚ½Ä TreeNode¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeNode ³»ÀÇ getChildAt

getChildCount

public int getChildCount()
TreeNode ¸®½Ã¹ö°¡ Æ÷ÇÔÇÏ´ÂÀÚ½Ä ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeNode ³»ÀÇ getChildCount
¹Ýȯ°ª:
TreeNode ¸®½Ã¹ö°¡ Æ÷ÇÔÇÏ´ÂÀÚ½Ä ÀÇ ¼ö

getParent

public TreeNode  getParent()
¸®½Ã¹öÀÇ Ä£ TreeNode¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeNode ³»ÀÇ getParent
¹Ýȯ°ª:
¸®½Ã¹öÀÇ Ä£ TreeNode

getIndex

public int getIndex(TreeNode  node)
¸®½Ã¹öÀÇÀÚ½Ä Áß¿¡¼­ node À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¸®½Ã¹ö°¡ node¸¦ Æ÷ÇÔÇÏÁö ¾Ê´Â °æ¿ì´Â -1 ÀÌ ¸®Åϵ˴ϴ٠.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeNode ³»ÀÇ getIndex
ÆĶó¹ÌÅÍ:
node - ´ë»óÀÇ À§Ä¡
¹Ýȯ°ª:
¸®½Ã¹öÀÇÀÚ½Ä ÀÇ node À妽º. ¾ø´Â °æ¿ì´Â -1

getAllowsChildren

public abstract boolean getAllowsChildren()
¸®½Ã¹ö°¡ ÀÚ½ÄÀ» Çã°¡ÇÏ´Â °æ¿ì´Â true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeNode ³»ÀÇ getAllowsChildren
¹Ýȯ°ª:
¸®½Ã¹ö°¡ ÀÚ½ÄÀ» Çã°¡ÇÏ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

children

public abstract Enumeration  children()
¸®½Ã¹öÀÇ ÀÚ½ÄÀ» Enumeration·Î ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TreeNode ³»ÀÇ children
¹Ýȯ°ª:
¸®½Ã¹öÀÇÀÚ½Ä (Enumeration)

JavaTM 2 Platform
Standard Ed. 5.0

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