|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JLabel | +--javax.swing.tree.DefaultTreeCellRenderer
Æ®¸®ÀÇ ¿£Æ®¸®¸¦ Ç¥½ÃÇÕ´Ï´Ù. ÀÌ Å¬·¡½º¸¦ »ç¿ëÇÑ ³ëµå Ç¥½ÃÀÇ Ä¿½ºÅ͸¶ÀÌÁîÀÇ »ç¿ë¿¹´Â ¡¸The Java Tutorial¡¹ÀÇ¡¸How to Use Trees¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
±¸Çö»óÀÇ ÁÖÀÇ:
ÀÌ Å¬·¡½º´Â ÆÛÆ÷¸Õ½º Çâ»óÀ» À§ÇØ,validate
,revalidate
,repaint
, ¹× firePropertyChange
¸¸À» ¿À¹ö¶óÀ̵å(override) ÇÕ´Ï´Ù. ¿À¹ö¶óÀ̵å(override) µÇÁö ¾Ê´Â °æ¿ì, È£Ãâ ºóµµÀÇ ³ôÀº ÀÌ·¯ÇÑ ¸Þ¼Òµå°¡, µðÆúÆ® Æ®¸®ÀÇ ¼¿ ·»´õ¸µ¿¡¼´Â ºÒ¿äÀÇ ÄÚµå ÆÐ½º¸¦ ½ÇÇàÇÕ´Ï´Ù. µ¶ÀÚÀûÀÎ ·»´õ¸µÀ» ±âÀÔÇÏ´Â °æ¿ì´Â ÀÌ·¯ÇÑ ¸Þ¼ÒµåÀÇ ¿À¹ö¶óÀ̵å(override)¿¡ ´ëÇÑ ÀÌÁ¡À̳ª °áÁ¡¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ÀÇ ¸±¸®½º¿Í´Â ȣȯ¼ºÀ» °¡ÁöÁö ¾Ê½À´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ ¼Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. 1.4 ¿¡¼´Â ¸ðµç JavaBeansTM ÀÇ Àå±â ¿î¿ë ¼Æ÷Æ®°¡, java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ¾ú½À´Ï´Ù. XMLEncoder
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä |
Ŭ·¡½º javax.swing. JLabel À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
JLabel.AccessibleJLabel |
Ŭ·¡½º javax.swing. JComponent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
JComponent.AccessibleJComponent |
Ŭ·¡½º java.awt. Container À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
Container.AccessibleAWTContainer |
Ŭ·¡½º java.awt. Component À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
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 |
paint (Graphics g)
°ªÀ» paint ÇÕ´Ï´Ù. |
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) µË´Ï´Ù. |
Ŭ·¡½º javax.swing. JLabel ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
checkHorizontalKey , checkVerticalKey , getAccessibleContext , getDisabledIcon , getDisplayedMnemonic , getDisplayedMnemonicIndex , getHorizontalAlignment , getHorizontalTextPosition , getIcon , getIconTextGap , getLabelFor , getText , getUI , getUIClassID , getVerticalAlignment , getVerticalTextPosition , imageUpdate , paramString , setDisabledIcon , setDisplayedMnemonic , setDisplayedMnemonic , setDisplayedMnemonicIndex , setHorizontalAlignment , setHorizontalTextPosition , setIcon , setIconTextGap , setLabelFor , setText , setUI , setVerticalAlignment , setVerticalTextPosition , updateUI |
Ŭ·¡½º java.awt. Container ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
add , add , add , add , add , addContainerListener , addImpl , applyComponentOrientation , areFocusTraversalKeysSet , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getContainerListeners , getFocusTraversalKeys , getFocusTraversalPolicy , getLayout , insets , invalidate , isAncestorOf , isFocusCycleRoot , isFocusCycleRoot , isFocusTraversalPolicySet , layout , list , list , locate , minimumSize , paintComponents , preferredSize , printComponents , processContainerEvent , processEvent , remove , remove , removeAll , removeContainerListener , setFocusCycleRoot , setFocusTraversalKeys , setFocusTraversalPolicy , setLayout , transferFocusBackward , transferFocusDownCycle , validateTree |
Ŭ·¡½º 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
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
- paint ´ë»óÀÇ 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.validate()
,
Component.invalidate()
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)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (Object)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (Object)PropertyChangeSupport
public void firePropertyChange(String propertyName, byte oldValue, byte newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (byte)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (byte)JComponent.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)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, short oldValue, short newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (short)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (short)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, int oldValue, int newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (int)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (int)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, long oldValue, long newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (long)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (long)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, float oldValue, float newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (float)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (float)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, double oldValue, double newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (double)newValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æ ÈÄÀÇ °ª (double)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
JComponent
³»ÀÇ firePropertyChange
propertyName
- º¯°æµÈ ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íoldValue
- ÇÁ·ÎÆÛƼÀÇ º¯°æÀüÀÇ °ª (boolean)JComponent.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.