|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
javax.swing.tree.DefaultTreeCellRenderer
public class DefaultTreeCellRenderer
Æ®¸®ÀÇ ¿£Æ®¸®¸¦ Ç¥½ÃÇÕ´Ï´Ù. DefaultTreeCellRenderer
´Â ºÒÅõ¸íÇÏÁö ¾Ê±â ¶§¹®¿¡
¼ºê Ŭ·¡½º¿¡¼ ÆäÀÎÆ® ÇÏÁö ¾Ê´Â ÇÑ, ÀÌ Å¬·¡½º¸¦ º¯°æÇÏÁö ¸»¾Æ ÁÖ¼¼¿ä. ÀÌ Å¬·¡½º¸¦ »ç¿ëÇÑ ³ëµå Ç¥½ÃÀÇ Ä¿½ºÅ͸¶ÀÌÁîÀÇ »ç¿ë¿¹´Â ¡¸The Java Tutorial¡¹ÀÇ ¡¸How to Use Trees¡¹¸¦ ÂüÁ¶ÇϽʽÿÀ.
±¸Çö»óÀÇ ÁÖÀÇ: ÀÌ Å¬·¡½º´Â ÆÛÆ÷¸Õ½º Çâ»óÀ» À§ÇØ, invalidate
, validate
, revalidate
, repaint
¹× firePropertyChange
¸¸À» ¿À¹ö¶óÀ̵å(override) ÇÕ´Ï´Ù. ¿À¹ö¶óÀ̵å(override) µÇÁö ¾Ê´Â °æ¿ì, È£Ãâ ºóµµÀÇ ³ôÀº ÀÌ·¯ÇÑ ¸Þ¼µå´Â µðÆúÆ®ÀÇ Æ®¸® ¼¿ ·»´õ¸µ¿¡ ºÒÇÊ¿äÇÑ ÄÚµå ÆÐ½º¸¦ ½ÇÇàÇÕ´Ï´Ù. µ¶ÀÚÀûÀÎ ·»´õ¸µ ³í¸®¸¦ ÀÛ¼ºÇÏ´Â °æ¿ì´Â ÀÌ·¯ÇÑ ¸Þ¼µåÀÇ ¿À¹ö¶óÀ̵å(override)¿¡¼ÀÇ ÀÌÁ¡À̳ª °áÁ¡¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í
ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ Áö¿øÀº
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÀü
1.4 ÀÌÈÄ, ¸ðµç JavaBeans™
Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº
java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder
¸¦
ÂüÁ¶ÇϽʽÿÀ.
Áßø(Nested) Ŭ·¡½º °³¿ä |
---|
Ŭ·¡½º javax.swing. JLabel ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
JLabel.AccessibleJLabel |
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
JComponent.AccessibleJComponent |
Ŭ·¡½º java.awt. Container ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
Container.AccessibleAWTContainer |
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
Component.AccessibleAWTComponent,
Component.BltBufferStrategy,
Component.FlipBufferStrategy |
ÇÊµå °³¿ä | |
---|---|
protected Color |
backgroundNonSelectionColor
³ëµå°¡ ¼±ÅõǾî ÀÖÁö ¾ÊÀ» ¶§¿¡ ¹é±×¶ó¿îµå¿¡ »ç¿ëÇÏ´Â »öÀÔ´Ï´Ù. |
protected Color |
backgroundSelectionColor
³ëµå°¡ ¼±Åõǰí ÀÖÀ» ¶§ ¹é±×¶ó¿îµå¿¡ »ç¿ëÇÏ´Â »öÀÔ´Ï´Ù. |
protected Color |
borderSelectionColor
³ëµå¿¡ Æ÷Ä¿½º°¡ ÀÖ´Â °æ¿ì¿¡ Æ÷Ä¿½º ÀεðÄÉÀÌÅÍ(indicator)¿¡°Ô »ç¿ëÇÏ´Â »öÀÔ´Ï´Ù. |
protected Icon |
closedIcon
Àü°³µÇ¾î ÀÖÁö ¾ÊÀº ÀÙ ÀÌ¿ÜÀÇ ³ëµå¸¦ Ç¥½ÃÇϴµ¥ »ç¿ëÇÏ´ÂÀڽľÆÀÌÄÜÀÔ´Ï´Ù. |
protected boolean |
hasFocus
Æ÷Ä¿½º°¡ ÀÖ´Â °æ¿ì´Â true ÀÔ´Ï´Ù. |
protected Icon |
leafIcon
ÀÙ³ëµå¸¦ Ç¥½ÃÇϴµ¥ »ç¿ëÇÏ´ÂÀڽľÆÀÌÄÜÀÔ´Ï´Ù. |
protected Icon |
openIcon
Àü°³µÇ°í ÀÖ´Â ÀÙ ÀÌ¿ÜÀÇ ³ëµå¸¦ Ç¥½ÃÇϴµ¥ »ç¿ëÇÏ´ÂÀڽľÆÀÌÄÜÀÔ´Ï´Ù. |
protected boolean |
selected
ÇöÀç ¼±Åõǰí ÀÖ´Â °ªÀÔ´Ï´Ù. |
protected Color |
textNonSelectionColor
¼±ÅõǾî ÀÖÁö ¾ÊÀº ³ëµåÀÇ foreground¿¡ »ç¿ëÇÏ´Â »öÀÔ´Ï´Ù. |
protected Color |
textSelectionColor
¼±Åõǰí ÀÖ´Â ³ëµåÀÇ foreground¿¡ »ç¿ëÇÏ´Â »öÀÔ´Ï´Ù. |
Ŭ·¡½º javax.swing. JLabel ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
labelFor |
Ŭ·¡½º javax.swing. JComponent ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Ŭ·¡½º java.awt. Component ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
ÀÎÅÍÆäÀ̽º javax.swing. SwingConstants ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
BOTTOM,
CENTER,
EAST,
HORIZONTAL,
LEADING,
LEFT,
NEXT,
NORTH,
NORTH_EAST,
NORTH_WEST,
PREVIOUS,
RIGHT,
SOUTH,
SOUTH_EAST,
SOUTH_WEST,
TOP,
TRAILING,
VERTICAL,
WEST |
ÀÎÅÍÆäÀ̽º java.awt.image. ImageObserver ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
ABORT,
ALLBITS,
ERROR,
FRAMEBITS,
HEIGHT,
PROPERTIES,
SOMEBITS,
WIDTH |
»ý¼ºÀÚ °³¿ä | |
---|---|
DefaultTreeCellRenderer ()
DefaultTreeCellRenderer »õ·Î¿î ÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
void |
firePropertyChange (String propertyName,
boolean oldValue,
boolean newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
byte oldValue,
byte newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
char oldValue,
char newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
double oldValue,
double newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
float oldValue,
float newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
int oldValue,
int newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
long oldValue,
long newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
protected void |
firePropertyChange (String propertyName,
Object oldValue,
Object newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
firePropertyChange (String propertyName,
short oldValue,
short newValue)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
Color |
getBackgroundNonSelectionColor ()
¼±ÅõǾî ÀÖÁö ¾ÊÀº ³ëµå¿ëÀ¸·Î »ç¿ëÇÏ´Â ¹é±×¶ó¿îµåÀÇ »öÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Color |
getBackgroundSelectionColor ()
³ëµå°¡ ¼±Åõǰí ÀÖÀ» ¶§ ¹é±×¶ó¿îµå¿¡ »ç¿ëÇÏ´Â »öÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Color |
getBorderSelectionColor ()
º¸´õ¸¦ ·»´õ¸µ ÇÏ´Â »öÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Icon |
getClosedIcon ()
Àü°³µÇ¾î ÀÖÁö ¾ÊÀº ÀÙ ÀÌ¿ÜÀÇ ³ëµå¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëÇÏ´ÂÀÚ½Ä ¾ÆÀÌÄÜÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Icon |
getDefaultClosedIcon ()
Àü°³µÇ°í ÀÖ´Â ÀÙ ÀÌ¿ÜÀÇ ³ëµå¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëÇÏ´Â ÇöÀçÀÇ ÀÙÀÇ µðÆúÆ®ÀÚ½Ä ¾ÆÀÌÄÜÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Icon |
getDefaultLeafIcon ()
Àü°³µÇ°í ÀÖ´Â ÀÙ ÀÌ¿ÜÀÇ ³ëµå¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëÇÏ´Â ÇöÀçÀÇ ÀÙÀÇ µðÆúÆ®ÀÚ½Ä ¾ÆÀÌÄÜÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Icon |
getDefaultOpenIcon ()
Àü°³µÇ°í ÀÖ´Â ÀÙ ÀÌ¿ÜÀÇ ³ëµå¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëÇÏ´Â ÇöÀçÀÇ ÀÙÀÇ µðÆúÆ®ÀÚ½Ä ¾ÆÀÌÄÜÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Font |
getFont ()
ÀÌ ÄÄÆÛ³ÍÆ®ÀÇ ÆùÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Icon |
getLeafIcon ()
ÀÙ³ëµå¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëÇÏ´ÂÀÚ½Ä ¾ÆÀÌÄÜÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Icon |
getOpenIcon ()
Àü°³µÇ°í ÀÖ´Â ÀÙ ÀÌ¿ÜÀÇ ³ëµå¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëÇÏ´ÂÀÚ½Ä ¾ÆÀÌÄÜÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Dimension |
getPreferredSize ()
JComponent.getPreferredSize ¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ´Ù¼Ò ³ÐÀº ÀûÀýÇÑ »çÀÌÁîÀÇ °ªÀ» µ¹·ÁÁÖµµ·Ï
ÇÕ´Ï´Ù. |
Color |
getTextNonSelectionColor ()
³ëµå°¡ ¼±ÅõǾî ÀÖÁö ¾ÊÀ» ¶§¿¡ ÅØ½ºÆ®¸¦ ·»´õ¸µ ÇÏ´Â »öÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Color |
getTextSelectionColor ()
³ëµå°¡ ¼±Åõǰí ÀÖÀ» ¶§ ÅØ½ºÆ®¸¦ ·»´õ¸µ ÇÏ´Â »öÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Component |
getTreeCellRendererComponent (JTree tree,
Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
ÄÄÆÛ³ÍÆ®·Î °Ç³×¹Þ´Â ³»¿ë¿¡ ±Ù°ÅÇØ ·»´õ¸µÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
invalidate ()
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
paint (Graphics g)
°ªÀ» ÆäÀÎÆ® ÇÕ´Ï´Ù. |
void |
repaint ()
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
repaint (long tm,
int x,
int y,
int width,
int height)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
repaint (Rectangle r)
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
revalidate ()
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
void |
setBackground (Color color)
ColorUIResource ¸¦ null¿¡ ¸ÅÇÎ Çϵµ·Ï »ó¼ÓÇÕ´Ï´Ù. |
void |
setBackgroundNonSelectionColor (Color newColor)
¼±ÅõǾî ÀÖÁö ¾ÊÀº ³ëµå¿ëÀ¸·Î »ç¿ëÇÏ´Â ¹é±×¶ó¿îµåÀÇ »öÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setBackgroundSelectionColor (Color newColor)
³ëµå°¡ ¼±Åõǰí ÀÖÀ» ¶§ ¹é±×¶ó¿îµå¿¡ »ç¿ëÇÏ´Â »öÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setBorderSelectionColor (Color newColor)
º¸´õ¿¡ »ç¿ëÇÏ´Â »öÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setClosedIcon (Icon newIcon)
Àü°³µÇ¾î ÀÖÁö ¾ÊÀº ÀÙ ÀÌ¿ÜÀÇ ³ëµå¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëÇÏ´ÂÀÚ½Ä ¾ÆÀÌÄÜÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setFont (Font font)
FontUIResource ¸¦ null¿¡ ¸ÅÇÎ Çϵµ·Ï »ó¼ÓÇÕ´Ï´Ù. |
void |
setLeafIcon (Icon newIcon)
ÀÙ³ëµå¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëÇÏ´ÂÀÚ½Ä ¾ÆÀÌÄÜÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setOpenIcon (Icon newIcon)
Àü°³µÇ°í ÀÖ´Â ÀÙ ÀÌ¿ÜÀÇ ³ëµå¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëÇÏ´ÂÀÚ½Ä ¾ÆÀÌÄÜÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setTextNonSelectionColor (Color newColor)
³ëµå°¡ ¼±ÅõǾî ÀÖÁö ¾ÊÀ» ¶§¿¡ ÅØ½ºÆ®¸¦ ·»´õ¸µ ÇÏ´Â »öÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setTextSelectionColor (Color newColor)
³ëµå°¡ ¼±Åõǰí ÀÖÀ» ¶§ ÅØ½ºÆ®¸¦ ·»´õ¸µ ÇÏ´Â »öÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
validate ()
ÆÛÆ÷¸Õ½º»óÀÇ ÀÌÀ¯·Î½á ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ÇʵåÀÇ »ó¼¼ |
---|
protected boolean selected
protected boolean hasFocus
protected transient Icon closedIcon
protected transient Icon leafIcon
protected transient Icon openIcon
protected Color textSelectionColor
protected Color textNonSelectionColor
protected Color backgroundSelectionColor
protected Color backgroundNonSelectionColor
protected Color borderSelectionColor
»ý¼ºÀÚ »ó¼¼ |
---|
public DefaultTreeCellRenderer()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public Icon getDefaultOpenIcon()
public Icon getDefaultClosedIcon()
public Icon getDefaultLeafIcon()
public void setOpenIcon(Icon newIcon)
public Icon getOpenIcon()
public void setClosedIcon(Icon newIcon)
public Icon getClosedIcon()
public void setLeafIcon(Icon newIcon)
public Icon getLeafIcon()
public void setTextSelectionColor(Color newColor)
public Color getTextSelectionColor()
public void setTextNonSelectionColor(Color newColor)
public Color getTextNonSelectionColor()
public void setBackgroundSelectionColor(Color newColor)
public Color getBackgroundSelectionColor()
public void setBackgroundNonSelectionColor(Color newColor)
public Color getBackgroundNonSelectionColor()
public void setBorderSelectionColor(Color newColor)
public Color getBorderSelectionColor()
public void setFont(Font font)
FontUIResource
¸¦ null¿¡ ¸ÅÇÎ Çϵµ·Ï »ó¼ÓÇÕ´Ï´Ù. font
ÀÌ null ¶Ç´Â FontUIResource
ÀÎ °æ¿ì, JTree
ÆùÆ®¸¦ ºñÃÄ º¸À̵µ·Ï
ÇÕ´Ï´Ù. ¶Ç, font
ÀÌ null ÀÌ¿Ü ¶Ç´Â FontUIResource
ÀÌ¿ÜÀÇ °æ¿ì, ±× ÆùÆ®´Â font
ÀÌ µË´Ï´Ù.
JComponent
³»ÀÇ setFont
font
- ÀÌ ÄÄÆÛ³ÍÆ®·Î ÁöÁ¤ÇÏ´Â Font
Component.getFont()
public Font getFont()
MenuContainer
³»ÀÇ getFont
Component
³»ÀÇ getFont
Component.setFont(java.awt.Font)
public void setBackground(Color color)
ColorUIResource
¸¦ null¿¡ ¸ÅÇÎ Çϵµ·Ï »ó¼ÓÇÕ´Ï´Ù. color
°¡ null ¶Ç´Â ColorUIResource
ÀÎ °æ¿ì, JTree
¹é±×¶ó¿îµå Ä÷¯¸¦ ºñÃÄ º¸À̵µ·Ï
ÇÕ´Ï´Ù. ¶Ç, color
°¡ null ÀÌ¿Ü ¶Ç´Â ColorUIResource
ÀÌ¿ÜÀÇ °æ¿ì, ±× ¹é±×¶ó¿îµå´Â color
°¡ µË´Ï´Ù.
JComponent
³»ÀÇ setBackground
color
- ¿ä±¸ÇÏ´Â ¹é±×¶ó¿îµå Color
Component.getBackground()
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
toString
¸¦ value
¿¡ È£ÃâÇÏ´Â convertValueToText
·Î
°ªÀ» ¸Þ¼¼Áö·Î¼ ¼Û½ÅÇØ ¼³Á¤µË´Ï´Ù. foregroundÀÇ »öÀº ¼±Åà »óÅ¿¡ ±Ù°ÅÇØ ¼³Á¤µÇ¾îÀڽľÆÀÌÄÜÀº ÀÙ¿¡ ±Ù°ÅÇØ ¼³Á¤µÇ¾î Àü°³µË´Ï´Ù.
TreeCellRenderer
³»ÀÇ getTreeCellRendererComponent
Component
public void paint(Graphics g)
JComponent
³»ÀÇ paint
g
- ÆäÀÎÆ® ´ë»óÀÇ Graphics
ÄÁÅØ½ºÆ®
JComponent.paintComponent(java.awt.Graphics)
,
JComponent.paintBorder(java.awt.Graphics)
,
JComponent.paintChildren(java.awt.Graphics)
,
JComponent.getComponentGraphics(java.awt.Graphics)
,
JComponent.repaint(long, int, int, int, int)
public Dimension getPreferredSize()
JComponent.getPreferredSize
¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ´Ù¼Ò ³ÐÀº ÀûÀýÇÑ »çÀÌÁîÀÇ °ªÀ» µ¹·ÁÁÖµµ·Ï
ÇÕ´Ï´Ù.
JComponent
³»ÀÇ getPreferredSize
preferredSize
ÇÁ·ÎÆÛƼÀÇ °ªJComponent.setPreferredSize(java.awt.Dimension)
,
ComponentUI
public void validate()
Container
³»ÀÇ validate
Container.add(java.awt.Component)
,
Component.invalidate()
,
JComponent.revalidate()
public void invalidate()
Container
³»ÀÇ invalidate
Container.validate()
,
Container.layout()
,
LayoutManager
public void revalidate()
JComponent
³»ÀÇ revalidate
Component.invalidate()
,
Container.validate()
,
JComponent.isValidateRoot()
,
RepaintManager.addInvalidComponent(javax.swing.JComponent)
public void repaint(long tm, int x, int y, int width, int height)
JComponent
³»ÀÇ repaint
tm
- ÀÌ ÆÄ¶ó¹ÌÅÍ´Â »ç¿ëµÇÁö ¾Ê½À´Ï´Ùx
- ´õƼ ¸®Á¯ÀÇ x ÁÂÇ¥y
- ´õƼ ¸®Á¯ÀÇ y ÁÂÇ¥width
- ´õƼ ¸®Á¯ÀÇ Æøheight
- ´õƼ ¸®Á¯ÀÇ ³ôÀÌComponent.isShowing()
,
RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int)
public void repaint(Rectangle r)
JComponent
³»ÀÇ repaint
r
- ´õƼ ¸®Á¯À» Æ÷ÇÔÇÑ Rectangle
Component.isShowing()
,
RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int)
public void repaint()
Component
³»ÀÇ repaint
Component.update(Graphics)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
Component
³»ÀÇ firePropertyChange
propertyName
- °ªÀÌ º¯°æµÈ ÇÁ·ÎÆÛƼoldValue
- ÇÁ·ÎÆÛƼÀÇ ÀÌÀüÀÇ °ªnewValue
- ÇÁ·ÎÆÛƼÀÇ »õ·Î¿î °ªpublic void firePropertyChange(String propertyName, byte oldValue, byte newValue)
Component
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (byte)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (byte)Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, char oldValue, char newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (char)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (char)Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, short oldValue, short newValue)
Component
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (short)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (short)Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, int oldValue, int newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- °ªÀÌ º¯°æµÈ ÇÁ·ÎÆÛƼoldValue
- ÇÁ·ÎÆÛƼÀÇ ÀÌÀüÀÇ °ªnewValue
- ÇÁ·ÎÆÛƼÀÇ »õ·Î¿î °ªpublic void firePropertyChange(String propertyName, long oldValue, long newValue)
Component
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (long)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (long)Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, float oldValue, float newValue)
Component
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (float)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (float)Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, double oldValue, double newValue)
Component
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (double)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (double)Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- °ªÀÌ º¯°æµÈ ÇÁ·ÎÆÛƼoldValue
- ÇÁ·ÎÆÛƼÀÇ ÀÌÀüÀÇ °ªnewValue
- ÇÁ·ÎÆÛƼÀÇ »õ·Î¿î °ª
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.