|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.TreeUI | +--javax.swing.plaf.basic.BasicTreeUI
°èÃþÀûÀÎ µ¥ÀÌÅÍ ±¸Á¶ÀÇ ±âº» Look & Feel ¿¡ ÀÇÇÑ ±¸ÇöÀÔ´Ï´Ù.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
class |
BasicTreeUI.CellEditorHandler
¼¿ ÆíÁý À̺¥Æ®ÀÇ Ãëµæ°ú °Å±â¿¡ ÀÀÇØ Æ®¸®ÀÇ °»½ÅÀ» ½Ç½ÃÇϴ ûÃëÀÚÀÔ´Ï´Ù. |
class |
BasicTreeUI.ComponentHandler
ÇÊ¿äÇϸé, ½ºÅ©·Ñ½Ã¿¡ ÀûÀýÇÑ »çÀÌÁ °»½ÅÇÕ´Ï´Ù. |
class |
BasicTreeUI.FocusHandler
Æ÷Ä¿½º¸¦ ÀÒ¾úÀ» ¶§, ȤÀº ÃëµæÇßÀ» ¶§¿¡, ¼±µµ ¼±ÅÃÇàÀ» paint ´Ù½Ã ÇÕ´Ï´Ù. |
class |
BasicTreeUI.KeyHandler
º¹¼öÀÇ Å°°¡ ¹Ð¸®´Â À̺¥Æ®¸¦ ÃëµæÇØ, ÀûÀýÈ÷ À̺¥Æ®¸¦ »ý¼ºÇϱâ À§Çؼ »ç¿ëµË´Ï´Ù. |
class |
BasicTreeUI.MouseHandler
¸¶¿ì½º À̺¥Æ®¿¡ ±Ù°ÅÇØ ¼±ÅÃÀ» °»½ÅÇÏ´Â TreeMouseListener ÀÔ´Ï´Ù. |
class |
BasicTreeUI.MouseInputHandler
MouseInputHandler ´Â ±¸ÃàµÇ´Â ¸ñÀûÁö¿¡¼ ¶¼¾î ³õÀ» ¶§±îÁö ¸ðµç ¸¶¿ì½º À̺¥Æ® (¸¶¿ì½º ¸ð¼Ç À̺¥Æ®¸¦ Æ÷ÇÔÇÑ´Ù)¸¦ °Ç³×Áִ ó¸®¸¦ ÇÕ´Ï´Ù. |
class |
BasicTreeUI.NodeDimensionsHandler
³ëµåÀÇ »çÀÌÁ ÃëµæÇϴ Ŭ·¡½ºÀÔ´Ï´Ù. |
class |
BasicTreeUI.PropertyChangeHandler
Æ®¸®ÀÇ ÇÁ·ÎÆÛƼ º¯°æ ûÃëÀÚÀÔ´Ï´Ù. |
class |
BasicTreeUI.SelectionModelPropertyChangeHandler
TreeSelectionModel ÀÇ Ã»ÃëÀÚÀÔ´Ï´Ù. |
class |
BasicTreeUI.TreeCancelEditingAction
¾×¼ÇÀÌ ½ÇÇàµÇ¾úÀ» ¶§¿¡ cancelEditing À» È£ÃâÇÏ´Â ActionListener ÀÔ´Ï´Ù. |
class |
BasicTreeUI.TreeExpansionHandler
³ëµåÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ ÀÀÇØ TreeState ¸¦ °»½ÅÇÕ´Ï´Ù. |
class |
BasicTreeUI.TreeHomeAction
TreeHomeAction ´Â Á¾·á ¶Ç´Â Ȩ ¾×¼ÇÀ» ó¸®Çϱâ À§Çؼ »ç¿ëµË´Ï´Ù. |
class |
BasicTreeUI.TreeIncrementAction
TreeIncrementAction ´Â »óÇÏÀÇ ¾×¼ÇÀ» ó¸®Çϱâ À§Çؼ »ç¿ëµË´Ï´Ù. |
class |
BasicTreeUI.TreeModelHandler
¸ðµç TreeModel À̺¥Æ®¸¦ TreeState ¿¡ Àü¼Û ÇÕ´Ï´Ù. |
class |
BasicTreeUI.TreePageAction
TreePageAction ´Â ÆäÀÌÁö ¾÷°ú ÆäÀÌÁö ´Ù¿îÀÇ À̺¥Æ®¸¦ ó¸®ÇÕ´Ï´Ù. |
class |
BasicTreeUI.TreeSelectionHandler
¼±Åà ¸ðµ¨ÀÇ º¯°æÀ» ´ë±âÇØ, º¯°æÀÌ ÀÖ¾úÀ» °æ¿ì¿¡ Ç¥½Ã¸¦ °»½ÅÇÕ´Ï´Ù. |
class |
BasicTreeUI.TreeToggleAction
ÃÖÃÊ·Î ¼±ÅÃµÈ ÇàÀ¸·Î, Àü°³ »óŰ¡ ±³Ã¼µË´Ï´Ù. |
class |
BasicTreeUI.TreeTraverseAction
TreeTraverseAction ´Â ¿ÞÂÊ ¶Ç´Â ¿À¸¥ÂÊ Å°¸¦ À§Çؼ(¶§¹®¿¡) »ç¿ëµÇ´Â ¾×¼ÇÀÔ´Ï´Ù. |
ÇʵåÀÇ °³¿ä | |
protected TreeCellEditor |
cellEditor
Æ®¸®ÀÇ ¿¡µðÅÍÀÔ´Ï´Ù. |
protected Icon |
collapsedIcon
|
protected boolean |
createdCellEditor
ÇöÀç Æ®¸®¿¡ ÀÖ´Â ¿¡µðÅͰ¡ ÀÌ ÀνºÅϽº¿¡ ÀÇÇØ ÀÛ¼ºµÇ¾úÀ» °æ¿ì¿¡ true ·Î ¼³Á¤µË´Ï´Ù. |
protected boolean |
createdRenderer
ÇöÀç Æ®¸®¿¡ ÀÖ´Â ·»´õ¸µÀÌ ÀÌ ÀνºÅϽº¿¡ ÀÇÇØ ÀÛ¼ºµÇ¾úÀ» °æ¿ì¿¡ true ·Î ¼³Á¤µË´Ï´Ù. |
protected TreeCellRenderer |
currentCellRenderer
½ÇÁ¦ÀÇ ¼¿ÀÇ Ç¥Çö¸¦ ½Ç½ÃÇϱâ À§Çؼ(¶§¹®¿¡) »ç¿ëµÇ°í ÀÖ´Â ·»´õ¸µÀÔ´Ï´Ù. |
protected int |
depthOffset
x À§Ä¡¸¦ Á¤È®ÇÏ°Ô °è»êÇϱâ À§ÇÑ ±íÀÌÀÇ ¿ÀÇÁ¼Â(offset)ÀÇ ¾çÀÔ´Ï´Ù. |
protected Hashtable |
drawingCache
¼öÁ÷¼±ÀÇ Ç¥Çö¸¦ ÃÖ¼ÒÈÇϱâ À§Çؼ »ç¿ëµË´Ï´Ù. |
protected Component |
editingComponent
À̰ÍÀº ÆíÁý½Ã¿¡, ½ÇÁ¦ÀÇ ÆíÁýÀ» ½Ç½ÃÇÏ´Â Component °¡ µË´Ï´Ù. |
protected TreePath |
editingPath
ÆíÁýÁßÀÇ ÆÐ½ºÀÔ´Ï´Ù. |
protected int |
editingRow
ÆíÁýÁßÀÇ ÇàÀÔ´Ï´Ù. |
protected boolean |
editorHasDifferentSize
¿¡µðÅÍÀÇ »çÀÌÁî°¡ ·»´õ¸µ°ú ´Ù¸¥ °æ¿ì¿¡ true ·Î ¼³Á¤µË´Ï´Ù. |
protected Icon |
expandedIcon
|
protected boolean |
largeModel
largeModel ÀÇ ÃÖÀûȸ¦ ÇàÇϰí ÀÖ´Â °æ¿ì´Â true ÀÔ´Ï´Ù. |
protected int |
lastSelectedRow
¸¶Áö¸·¿¡ ¼±ÅÃµÈ ÇàÀÇ À妽ºÀÔ´Ï´Ù. |
protected int |
leftChildIndent
¿ÞÂÊ ¸¶Áø°ú ¼öÁ÷ÀÇ ÆÄ¼±ÀÌ Ç¥Çö µÇ´Â À§Ä¡µ¿¾ÈÀÇ °Å¸®ÀÔ´Ï´Ù. |
protected AbstractLayoutCache.NodeDimensions |
nodeDimensions
TreeState ¿¡ ´ëÇØ ³ëµå¿¡ ÇÊ¿äÇÑ »çÀÌÁ ÅëÁöÇÕ´Ï´Ù. |
protected Dimension |
preferredMinSize
ÀûÀýÇÑ ÃÖ¼Ò »çÀÌÁîÀÔ´Ï´Ù. |
protected Dimension |
preferredSize
¸ðµç ³ëµå¸¦ ¿ÏÀüÇÏ°Ô Ç¥½ÃÇϱâ À§Çؼ ÇÊ¿äÇÑ »çÀÌÁîÀÔ´Ï´Ù. |
protected CellRendererPane |
rendererPane
TreeCellRenderer ¸¦ paint Çϱâ À§Çؼ »ç¿ëµË´Ï´Ù. |
protected int |
rightChildIndent
¼¿ÀÇ ³»¿ëÀÌ Ç¥Çö µÇ´Â À§Ä¡¸¦ ³ªÅ¸³»±â À§Çؼ(¶§¹®¿¡) leftChildIndent ¿¡ °¡»êµÇ´Â °Å¸®ÀÔ´Ï´Ù. |
protected boolean |
stopEditingInCompleteEditing
ÆíÁý½Ã¿¡, shouldSelectCell()°¡ true ¸¦ µ¹·ÁÁÖ¾úÀ» °æ¿ì¿¡ false ·Î ¼³Á¤µË´Ï´Ù. |
protected int |
totalChildIndent
Àε§Æ® µÇ´Â ÃѰŸ®ÀÔ´Ï´Ù. |
protected JTree |
tree
Ç¥ÇöóÀÇ ÄÄÆÛ³ÍÆ®ÀÔ´Ï´Ù. |
protected TreeModel |
treeModel
¹«¾ùÀ» Ç¥½ÃÇÏ´ÂÁö¸¦ ³ªÅ¸³»±â À§Çؼ(¶§¹®¿¡) »ç¿ëµË´Ï´Ù. |
protected TreeSelectionModel |
treeSelectionModel
¼±ÅÃÀ» À¯ÁöÇÏ´Â ¸ðµ¨ÀÔ´Ï´Ù. |
protected AbstractLayoutCache |
treeState
»çÀÌÁî º¯°æ ¹× Àü°³ »óŸ¦ ó¸®ÇÏ´Â ¿ÀºêÁ§Æ®ÀÔ´Ï´Ù. |
protected boolean |
validCachedPreferredSize
preferredSize °¡ À¯È¿ÇѰ¡ ¾î¶²°¡¸¦ ³ªÅ¸³À´Ï´Ù. |
»ý¼ºÀÚÀÇ °³¿ä | |
BasicTreeUI ()
|
¸Þ¼ÒµåÀÇ °³¿ä | |
void |
cancelEditing (JTree tree)
ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» Ãë¼ÒÇÕ´Ï´Ù. |
protected void |
checkForClickInExpandControl (TreePath path,
int mouseX,
int mouseY)
mouseX ¹× mouseY °¡ row ÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â area¿¡ ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼Òµå´Â ÇàÀÇ Àü°³ »óŸ¦ ¹Ù²ß´Ï´Ù. |
protected void |
completeEditing ()
ÆíÁý ¼¼¼ÇÀ» ÁßÁöÇϱâ À§Çؼ ¸Þ¼¼Áö·Î¼ º¸³»Áý´Ï´Ù. |
protected void |
completeEditing (boolean messageStop,
boolean messageCancel,
boolean messageTree)
ÆíÁý ¼¼¼ÇÀ» ÁßÁöÇÕ´Ï´Ù. |
protected void |
completeUIInstall ()
¸ðµç µðÆúÆ® ¹× ûÃëÀÚ°¡ ÀνºÅç µÈ µÚ¿¡ installUI ·ÎºÎÅÍ ºÒ·Á °©´Ï´Ù. |
protected void |
completeUIUninstall ()
|
protected void |
configureLayoutCache ()
Look & Feel ¸¦ Á¦°øÇϰí ÀÖ´Â Æ®¸®¿¡ ±Ù°ÅÇØ TreeState ÀÇ ÀνºÅϽº¸¦ ¸®¼ÂÆ® ÇÕ´Ï´Ù. |
protected CellEditorListener |
createCellEditorListener ()
ÇöÀçÀÇ ¿¡µðÅͷκÎÅÍÀÇ À̺¥Æ®¸¦ ó¸®Çϴ ûÃëÀÚ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected CellRendererPane |
createCellRendererPane ()
·»´õ¸µ ÄÄÆÛ³ÍÆ®°¡ ¹èÄ¡µÇ°í ÀÖ´Â ·»´õ¸µ ±¸È¹À» µ¹·ÁÁÝ´Ï´Ù. |
protected ComponentListener |
createComponentListener ()
»õ·Î¿î ComponentHandler ¸¦ ÀÛ¼ºÇØ, ±×°ÍÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected TreeCellEditor |
createDefaultCellEditor ()
µðÆúÆ®ÀÇ ¼¿ ¿¡µðÅ͸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected TreeCellRenderer |
createDefaultCellRenderer ()
°¢ ³ëµå¸¦ Ç¥Çö Çϱâ À§Çؼ »ç¿ëµÇ´Â µðÆúÆ®ÀÇ ¼¿ ·»´õ¸µÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected FocusListener |
createFocusListener ()
Æ÷Ä¿½º¸¦ ÀÒ¾úÀ» ¶§, ¹× ÃëµæÇßÀ» ¶§¿¡ Ç¥½Ã¸¦ °»½ÅÇϴ ûÃëÀÚ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected KeyListener |
createKeyListener ()
Æ®¸®·ÎºÎÅÍ Å° À̺¥Æ®¸¦ ÃëµæÇϴ ûÃëÀÚ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected AbstractLayoutCache |
createLayoutCache ()
³ëµåÀÇ »çÀÌÁî¿Í Àü°³ »óŸ¦ °ü¸®ÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected MouseListener |
createMouseListener ()
¸¶¿ì½º À̺¥Æ®¿¡ ±Ù°ÅÇØ ¼±ÅÃÀ» °»½ÅÇϴ ûÃëÀÚ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected AbstractLayoutCache.NodeDimensions |
createNodeDimensions ()
Æ®¸®ÀÇ ÁöÁ¤µÈ ³ëµåÀÇ »çÀÌÁ ³ªÅ¸³¾ ¼ö°¡ ÀÖ´Â NodeDimensions ÀÇ ÀνºÅϽº¸¦ »ý¼ºÇÕ´Ï´Ù. |
protected PropertyChangeListener |
createPropertyChangeListener ()
Æ®¸®ÀÇ º¯°æ¿¡ ±Ù°ÅÇØ UI ¸¦ °»½ÅÇϴ ûÃëÀÚ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected PropertyChangeListener |
createSelectionModelPropertyChangeListener ()
¼±Åà ¸ðµ¨·ÎºÎÅÍ ÇÁ·ÎÆÛƼ º¯°æ À̺¥Æ®¸¦ ÃëµæÇϴ ûÃëÀÚ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected TreeExpansionListener |
createTreeExpansionListener ()
³ëµåÀÇ Àü°³ »óŰ¡ º¯°æµÇ¾úÀ» ¶§¿¡ Æ®¸® »óŸ¦ °»½ÅÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇØ, ±×°ÍÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected TreeModelListener |
createTreeModelListener ()
¸ðµ¨ÀÌ º¯°æµÇ¾úÀ» ¶§¿¡ Æ®¸®¸¦ °»½ÅÇÒ ¼ö Àִ ûÃëÀÚ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected TreeSelectionListener |
createTreeSelectionListener ()
¼±Åà º¯°æ ¸Þ¼Òµå¿¡ ±Ù°ÅÇØ Ç¥½Ã¸¦ °»½ÅÇϴ ûÃëÀÚ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
static ComponentUI |
createUI (JComponent x)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI delegateÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected void |
drawCentered (Component c,
Graphics graphics,
Icon icon,
int x,
int y)
|
protected void |
drawDashedHorizontalLine (Graphics g,
int y,
int x1,
int x2)
|
protected void |
drawDashedVerticalLine (Graphics g,
int x,
int y1,
int y2)
|
protected void |
ensureRowsAreVisible (int beginRow,
int endRow)
beginRow ¿Í endRow ¿¡ ÀÇÇØ ½Äº°µÇ´Â ¸ðµç ÇàÀÌ °¡½Ã°¡ µË´Ï´Ù. |
protected TreeCellEditor |
getCellEditor ()
|
protected TreeCellRenderer |
getCellRenderer ()
currentCellRenderer ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getClosestPathForLocation (JTree tree,
int x,
int y)
x, y ¿¡ °¡Àå °¡±î¿î ³ëµå¿¡ÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Icon |
getCollapsedIcon ()
|
TreePath |
getEditingPath (JTree tree)
ÆíÁýÁßÀÇ ¿ä¼Ò¿¡ ´ëÇÑ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Icon |
getExpandedIcon ()
|
protected Color |
getHashColor ()
|
protected int |
getHorizontalLegBuffer ()
³ëµå°£ÀÇ ´Ù¸®ÀÇ ¼öÆò ¿ä¼Ò´Â µðÆúÆ®¿¡¼´Â ¾ÆÀÌ ³ëµåÀÇ ÁÂÃøÀÇ ¿À¸¥ÂÊ¿¡¼ ½ÃÀ۵˴ϴÙ. |
protected TreePath |
getLastChildPath (TreePath parent)
parent ÀÇ ¸¶Áö¸· ¾ÆÀÌ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getLeftChildIndent ()
|
Dimension |
getMaximumSize (JComponent c)
ÀÌ ÄÄÆÛ³ÍÆ®ÀÇ ÃÖ´ë »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getMinimumSize (JComponent c)
ÀÌ ÄÄÆÛ³ÍÆ®ÀÇ ÃÖ¼Ò »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
protected TreeModel |
getModel ()
|
Rectangle |
getPathBounds (JTree tree,
TreePath path)
ÆÐ½ºÀÇ ¸¶Áö¸· Ç׸ñÀÌ Ç¥Çö µÇ´Â label ºÎºÐÀ» µÑ·¯½Î´Â Rectangle ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getPathForRow (JTree tree,
int row)
°Ç³×¹ÞÀº row ÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getPreferredMinSize ()
ÀûÀýÇÑ ÃÖ¼Ò »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getPreferredSize (JComponent c)
Æ®¸®¸¦ ¿Ã¹Ù¸£°Ô Ç¥½ÃÇϱâ À§Çؼ ÀûÀýÇÑ »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getPreferredSize (JComponent c,
boolean checkConsistancy)
c ·Î Æ®¸®¸¦ ³ªÅ¸³»±â À§ÇÑ ÀûÀýÇÑ »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
int |
getRightChildIndent ()
|
int |
getRowCount (JTree tree)
Ç¥½ÃµÇ°í ÀÖ´Â Çà¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getRowForPath (JTree tree,
TreePath path)
path ·Î ½Äº°µÇ´Â ¸¶Áö¸· Ç׸ñÀÌ °¡½ÃÀÎ ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getRowHeight ()
|
protected TreeSelectionModel |
getSelectionModel ()
|
protected boolean |
getShowsRootHandles ()
|
protected int |
getVerticalLegBuffer ()
³ëµå°£ÀÇ ´Ù¸®ÀÇ ¼öÁ÷ ¿ä¼Ò´Â µðÆúÆ®¿¡¼´Â Ä£³ëµåÀÇ ÇÏ´ÜÀ¸·ÎºÎÅÍ ½ÃÀ۵˴ϴÙ. |
protected void |
handleExpandControlClick (TreePath path,
int mouseX,
int mouseY)
À¯Àú°¡ ƯÁ¤ÀÇ ÇàÀ» Ŭ¸¯ÇßÀ» ¶§¿¡ ¸Þ¼¼Áö·Î¼ º¸³»Á® toggleExpandState ¸¦ È£ÃâÇÕ´Ï´Ù. |
protected void |
installComponents ()
·»´õ¸µ ±¸È¹ÀÎ, Æ®¸®ÀÇ ¼ºê ÄÄÆÛ³ÍÆ®¸¦ ÀνºÅç ÇÕ´Ï´Ù. |
protected void |
installDefaults ()
|
protected void |
installKeyboardActions ()
|
protected void |
installListeners ()
|
void |
installUI (JComponent c)
Look & Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ±¸¼ºÇÕ´Ï´Ù. |
protected boolean |
isEditable ()
|
boolean |
isEditing (JTree tree)
Æ®¸®°¡ ÆíÁýÁßÀÇ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected boolean |
isLargeModel ()
|
protected boolean |
isLeaf (int row)
|
protected boolean |
isLocationInExpandControl (TreePath path,
int mouseX,
int mouseY)
mouseX ¹× mouseY °¡ ³ëµåÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â ÇàÀÇ area¿¡ ÀÖ¾î,row ¿¡ ÀÖ´Â ³ëµå°¡ ÀÙÀ» ³ªÅ¸³»Áö ¾Ê´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected boolean |
isMultiSelectEvent (MouseEvent event)
true °¡ µ¹·ÁÁÖ¾îÁ³À» °æ¿ì, ³ëµå»óÀÇ ¸¶¿ì½º À̺¥Æ®°¡ ¿¨Ä¿ Æ÷ÀÎÆ®·ÎºÎÅÍ ¼±Åõ˴ϴÙ. |
protected boolean |
isRootVisible ()
|
protected boolean |
isToggleEvent (MouseEvent event)
true °¡ µ¹·ÁÁÖ¾îÁ³À» °æ¿ì, ¸¶¿ì½º¾Æ·¡ÀÇ ÇàÀÌ À̺¥Æ®¿¡ ±Ù°ÅÇØ ±³Ã¼µË´Ï´Ù. |
protected boolean |
isToggleSelectionEvent (MouseEvent event)
true °¡ µ¹·ÁÁÖ¾îÁ³À» °æ¿ì, ³ëµå»óÀÇ ¸¶¿ì½º À̺¥Æ®¿¡ ±Ù°ÅÇØ ¸¶¿ì½º¾Æ·¡ÀÇ ÇุÀÌ ¼±ÅÃÀ» ±³Ã¼µË´Ï´Ù. |
void |
paint (Graphics g,
JComponent c)
Look &Feel ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ paint ÇÕ´Ï´Ù. |
protected void |
paintExpandControl (Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
ÇàÀÇ Àü°³ (¹Ù²Ù°í) ºÎºÐÀ» paint ÇÕ´Ï´Ù. |
protected void |
paintHorizontalLine (Graphics g,
JComponent c,
int y,
int left,
int right)
¼öÆò¼±À» paint ÇÕ´Ï´Ù. |
protected void |
paintHorizontalPartOfLeg (Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
´Ù¸®ÀÇ ¼öÆò ºÎºÐÀ» paint ÇÕ´Ï´Ù. |
protected void |
paintRow (Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
ÇàÀÇ ·»´õ¸µ ºÎºÐÀ» paint ÇÕ´Ï´Ù. |
protected void |
paintVerticalLine (Graphics g,
JComponent c,
int x,
int top,
int bottom)
¼öÁ÷¼±À» paint ÇÕ´Ï´Ù. |
protected void |
paintVerticalPartOfLeg (Graphics g,
Rectangle clipBounds,
Insets insets,
TreePath path)
´Ù¸®ÀÇ ¼öÁ÷ ºÎºÐÀ» paint ÇÕ´Ï´Ù. |
protected void |
pathWasCollapsed (TreePath path)
VisibleTreeNode °¡ ¼ö³³µÈ µÚ¿¡, VisibleTreeNode ·ÎºÎÅÍ ¸Þ¼¼Áö·Î¼ º¸³»Áý´Ï´Ù. |
protected void |
pathWasExpanded (TreePath path)
VisibleTreeNode °¡ Àü°³µÈ µÚ¿¡, VisibleTreeNode ·ÎºÎÅÍ ¸Þ¼¼Áö·Î¼ º¸³»Áý´Ï´Ù. |
protected void |
prepareForUIInstall ()
tree ÀνºÅϽº º¯¼ö°¡ ¼³Á¤µÈ µÚ¿¡, µðÆúÆ® ¹× ûÃëÀÚ°¡ ÀνºÅç µÇ±â Àü¿¡ ºÒ·Á °©´Ï´Ù. |
protected void |
prepareForUIUninstall ()
|
protected void |
selectPathForEvent (TreePath path,
MouseEvent event)
ƯÁ¤ÀÇ Çà¿¡¼ÀÇ MouseEvent ¿¡ ±Ù°ÅÇØ ¼±ÅÃÀ» °»½ÅÇϱâ À§Çؼ ¸Þ¼¼Áö·Î¼ º¸³»Áý´Ï´Ù. |
protected void |
setCellEditor (TreeCellEditor editor)
¼¿ ¿¡µðÅ͸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setCellRenderer (TreeCellRenderer tcr)
TreeCellRenderer ¸¦ tcr ·Î ¼³Á¤ÇÕ´Ï´Ù. |
void |
setCollapsedIcon (Icon newG)
|
protected void |
setEditable (boolean newValue)
¸®½Ã¹ö°¡ ÆíÁýÀ» Çã°¡ÇÒÁö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setExpandedIcon (Icon newG)
|
protected void |
setHashColor (Color color)
|
protected void |
setLargeModel (boolean largeModel)
ÇÊ¿äÇÑ °æ¿ì¿¡, componentListener ¸¦ °»½ÅÇÕ´Ï´Ù. |
void |
setLeftChildIndent (int newAmount)
|
protected void |
setModel (TreeModel model)
TreeModel ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setPreferredMinSize (Dimension newSize)
ÀûÀýÇÑ ÃÖ¼Ò »çÀÌÁ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setRightChildIndent (int newAmount)
|
protected void |
setRootVisible (boolean newValue)
·çÆ®¸¦ °¡½Ã·Î ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setRowHeight (int rowHeight)
ÇàÀÇ ³ôÀ̸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setSelectionModel (TreeSelectionModel newLSM)
¼±Åà ¸ðµ¨À» ¸®¼ÂÆ® ÇÕ´Ï´Ù. |
protected void |
setShowsRootHandles (boolean newValue)
³ëµåÀÇ ÇÚµéÀÌ Ç¥½ÃµÉÁö ¾î¶³Áö¸¦ °áÁ¤ÇÕ´Ï´Ù. |
protected boolean |
shouldPaintExpandControl (TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
ÁöÁ¤µÈ ÇàÀ¸·Î Àü°³ (¹Ù²Ù°í) ÄÁÆ®·ÑÀÌ Ç¥Çö µÇÁö ¾ÊÀ¸¸é ¾È µÇ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected boolean |
startEditing (TreePath path,
MouseEvent event)
cellEditor °¡ ÀÖ´Â °æ¿ì¿¡, shouldSelectCell °¡ true ¸¦ µ¹·ÁÁÖ¾úÀ» ¶§¿¡ ³ëµåÀÇ ÆíÁýÀ» °³½ÃÇÕ´Ï´Ù. |
void |
startEditingAtPath (JTree tree,
TreePath path)
path ÀÇ ¸¶Áö¸· Ç׸ñÀ» ¼±ÅÃÇØ, ±× Ç׸ñÀÇ ÆíÁýÀ» ½ÃµµÇÕ´Ï´Ù. |
boolean |
stopEditing (JTree tree)
ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» ÁßÁöÇÕ´Ï´Ù. |
protected void |
toggleExpandState (TreePath path)
path °¡ Àü°³µÇÁö ¾ÊÀº °æ¿ì¿¡ ±×°ÍÀ» Àü°³ÇÕ´Ï´Ù. |
protected void |
uninstallComponents ()
·»´õ¸µ ±¸È¹À» ¾ðÀνºÅçÇÕ´Ï´Ù. |
protected void |
uninstallDefaults ()
|
protected void |
uninstallKeyboardActions ()
|
protected void |
uninstallListeners ()
|
void |
uninstallUI (JComponent c)
installUI ½Ã¿¡, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®·Î ½ÇÇàÇÑ ±¸¼ºÀ» Ãë¼ÒÇÕ´Ï´Ù. |
protected void |
updateCachedPreferredSize ()
getPreferredSize() ·ÎºÎÅÍ µ¹·ÁÁÖ¾îÁö´Â preferredSize ÀνºÅϽº º¯¼ö¸¦ °»½ÅÇÕ´Ï´Ù.
|
protected void |
updateCellEditor ()
JTree ¸¦ ÆíÁýÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¿¡ ÀÀÇØ cellEditor ¸¦ °»½ÅÇÕ´Ï´Ù. |
protected void |
updateDepthOffset ()
°¢ ±íÀÌÀÇ ¿ÀÇÁ¼Â(offset)¸¦ °»½ÅÇÕ´Ï´Ù. |
protected void |
updateExpandedDescendants (TreePath path)
Æ®¸®·ÎºÎÅÍ Àü°³µÇ°í ÀÖ´Â ÇÏÀ§ ³ëµå¸¦ ÃëµæÇØ, Æ®¸®»óÅ¿¡ Àü¼Û ÇÏ´Â °ÍÀ¸·Î, path ³»ÀÇ ¸ðµç ÇÏÀ§ ³ëµåÀÇ Àü°³ »óŸ¦ °»½ÅÇÕ´Ï´Ù. |
protected void |
updateLayoutCacheExpandedNodes ()
JTree ·Î Àü°³ ¶°³¯ ¼ö ÀÖ¾î ¸ðµç ³ëµå¸¦ LayoutCache ·Î Àü°³ÇÕ´Ï´Ù. |
protected void |
updateRenderer ()
·»´õ¸µÀÌ º¯°æµÇ¾úÀ» ¶§¿¡ Æ®¸®·ÎºÎÅÍ ¸Þ¼¼Áö·Î¼ º¸³»Áý´Ï´Ù. |
protected void |
updateSize ()
ij½¬¿¡ ÀúÀåµÇ°í ÀÖ´Â »çÀÌÁ ¹«È¿¿Í ¸¶Å© ÇØ, treeDidChange ¸¦ »ç¿ëÇØ Æ®¸®¿¡ ¸Þ¼¼Áö¸¦ º¸³À´Ï´Ù. |
Ŭ·¡½º javax.swing.plaf. ComponentUI ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
contains , getAccessibleChild , getAccessibleChildrenCount , update |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected transient Icon collapsedIcon
protected transient Icon expandedIcon
protected int leftChildIndent
protected int rightChildIndent
protected int totalChildIndent
protected Dimension preferredMinSize
protected int lastSelectedRow
protected JTree tree
protected transient TreeCellRenderer currentCellRenderer
protected boolean createdRenderer
protected transient TreeCellEditor cellEditor
protected boolean createdCellEditor
protected boolean stopEditingInCompleteEditing
protected CellRendererPane rendererPane
protected Dimension preferredSize
protected boolean validCachedPreferredSize
protected AbstractLayoutCache treeState
protected Hashtable drawingCache
protected boolean largeModel
protected AbstractLayoutCache.NodeDimensions nodeDimensions
protected TreeModel treeModel
protected TreeSelectionModel treeSelectionModel
protected int depthOffset
protected Component editingComponent
protected TreePath editingPath
protected int editingRow
protected boolean editorHasDifferentSize
»ý¼ºÀÚÀÇ »ó¼¼ |
public BasicTreeUI()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public static ComponentUI createUI(JComponent x)
ComponentUI
ÀÇ ±â¼ú: createUI
¸Þ¼Òµå¸¦ Á¦°øÇØ, ±× UI delegateÀÇ ¼ºê Ŭ·¡½ºÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÙ Çʿ䰡 ÀÖ½À´Ï´Ù. UI delegateÀÇ ¼ºê Ŭ·¡½º°¡ »óÅ ¾øÀ½ÀÇ °æ¿ì, º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. UI delegateÀÌ »óÅ ÀÖ´Â °æ¿ì, ÄÄÆÛ³ÍÆ® ¸¶´Ù »õ·Î¿î ÀνºÅϽº¸¦ µ¹·ÁÁÙ Çʿ䰡 ÀÖ½À´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â È£ÃâÇØ¼± ¾È µÇ±â ¶§¹®¿¡, ±× µðÆúÆ® ±¸ÇöÀº ¿¡·¯¸¦ ½½·Î¿ì ÇÕ´Ï´Ù.
protected Color getHashColor()
protected void setHashColor(Color color)
public void setLeftChildIndent(int newAmount)
public int getLeftChildIndent()
public void setRightChildIndent(int newAmount)
public int getRightChildIndent()
public void setExpandedIcon(Icon newG)
public Icon getExpandedIcon()
public void setCollapsedIcon(Icon newG)
public Icon getCollapsedIcon()
protected void setLargeModel(boolean largeModel)
protected boolean isLargeModel()
protected void setRowHeight(int rowHeight)
protected int getRowHeight()
protected void setCellRenderer(TreeCellRenderer tcr)
tcr
·Î ¼³Á¤ÇÕ´Ï´Ù. À̰Ϳ¡ ÀÇÇØ,updateRenderer
°¡ ºÒ·Á °©´Ï´Ù.
protected TreeCellRenderer getCellRenderer()
protected void setModel(TreeModel model)
protected TreeModel getModel()
protected void setRootVisible(boolean newValue)
protected boolean isRootVisible()
protected void setShowsRootHandles(boolean newValue)
protected boolean getShowsRootHandles()
protected void setCellEditor(TreeCellEditor editor)
protected TreeCellEditor getCellEditor()
protected void setEditable(boolean newValue)
protected boolean isEditable()
protected void setSelectionModel(TreeSelectionModel newLSM)
protected TreeSelectionModel getSelectionModel()
public Rectangle getPathBounds(JTree tree, TreePath path)
TreeUI
³»ÀÇ getPathBounds
public TreePath getPathForRow(JTree tree, int row)
TreeUI
³»ÀÇ getPathForRow
public int getRowForPath(JTree tree, TreePath path)
TreeUI
³»ÀÇ getRowForPath
public int getRowCount(JTree tree)
TreeUI
³»ÀÇ getRowCount
public TreePath getClosestPathForLocation(JTree tree, int x, int y)
TreeUI
³»ÀÇ getClosestPathForLocation
public boolean isEditing(JTree tree)
TreeUI
³»ÀÇ isEditing
public boolean stopEditing(JTree tree)
TreeUI
³»ÀÇ stopEditing
public void cancelEditing(JTree tree)
TreeUI
³»ÀÇ cancelEditing
public void startEditingAtPath(JTree tree, TreePath path)
TreeUI
³»ÀÇ startEditingAtPath
public TreePath getEditingPath(JTree tree)
TreeUI
³»ÀÇ getEditingPath
public void installUI(JComponent c)
ComponentUI
ÀÇ ±â¼ú: ComponentUI
ÀνºÅϽº°¡, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI delegateÀ¸·Î¼ ÀνºÅç µÇ°í ÀÖÀ» ¶§ ºÒ·Á °©´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ÀÌÇϸ¦ Æ÷ÇÔÇÑ Look & Feel ¿ëÀÇ ÄÄÆÛ³ÍÆ®¸¦ ¿ÏÀüÇÏ°Ô ±¸¼ºÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
LayoutManager
¸¦ ÀνºÅç ÇÑ´Ù
PropertyChangeListener
¸¦ ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â ÀνºÅç ÇÑ´Ù
ComponentUI
³»ÀÇ installUI
c
- UI delegateÀÌ ÀνºÅç µÇ°í ÀÖ´Â ÄÄÆÛ³ÍÆ®ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
protected void prepareForUIInstall()
tree
ÀνºÅϽº º¯¼ö°¡ ¼³Á¤µÈ µÚ¿¡, µðÆúÆ® ¹× ûÃëÀÚ°¡ ÀνºÅç µÇ±â Àü¿¡ ºÒ·Á °©´Ï´Ù.
protected void completeUIInstall()
protected void installDefaults()
protected void installListeners()
protected void installKeyboardActions()
protected void installComponents()
protected AbstractLayoutCache.NodeDimensions createNodeDimensions()
protected PropertyChangeListener createPropertyChangeListener()
protected MouseListener createMouseListener()
protected FocusListener createFocusListener()
protected KeyListener createKeyListener()
protected PropertyChangeListener createSelectionModelPropertyChangeListener()
protected TreeSelectionListener createTreeSelectionListener()
protected CellEditorListener createCellEditorListener()
protected ComponentListener createComponentListener()
protected TreeExpansionListener createTreeExpansionListener()
protected AbstractLayoutCache createLayoutCache()
protected CellRendererPane createCellRendererPane()
protected TreeCellEditor createDefaultCellEditor()
protected TreeCellRenderer createDefaultCellRenderer()
protected TreeModelListener createTreeModelListener()
public void uninstallUI(JComponent c)
ComponentUI
ÀÇ ±â¼ú: installUI
½Ã¿¡, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®·Î ½ÇÇàÇÑ ±¸¼ºÀ» Ãë¼ÒÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI delegateÀ¸·Î¼ÀÇ UIComponent
ÀνºÅϽº°¡ »èÁ¦µÇ°í ÀÖÀ» ¶§ ºÒ·Á °©´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â installUI
¿¡ ÀÇÇØ ½ÇÇàµÈ ±¸¼ºÀ» ¹ÙÅÁÀ¸·Î µÇµ¹¸± Çʿ䰡 ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì,JComponent
ÀνºÅϽº¸¦ ±ú²ýÇÑ »óÅ (¿©ºÐÀÇ Ã»ÃëÀÚ³ª, Look & Feel °íÀ¯ÀÇ ÇÁ·ÎÆÛƼ ¿ÀºêÁ§Æ®°¡ ³²Áö ¾Ê°Ô)·Î Çϵµ·Ï(µíÀÌ) ÃæºÐÈ÷ ÁÖÀÇÇØ ÁÖ¼¼¿ä. ¼ø¼¿¡´Â ´ÙÀ½ÀÇ °ÍÀÌ ÀÖ½À´Ï´Ù.
ComponentUI
³»ÀÇ uninstallUI
c
- ÀÌ UI delegateÀÌ »èÁ¦µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂComponentUI.installUI(javax.swing.JComponent)
,
JComponent.updateUI()
protected void prepareForUIUninstall()
protected void completeUIUninstall()
protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected void uninstallComponents()
public void paint(Graphics g, JComponent c)
ComponentUI
ÀÇ ±â¼ú: ComponentUI.update
¸Þ¼Òµå·ÎºÎÅÍ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®°¡ paint µÉ ¶§ ºÒ·Á °©´Ï´Ù. ¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ÁöÁ¤µÈ Graphics
¿ÀºêÁ§Æ®¸¦ »ç¿ëÇØ ÄÄÆÛ³ÍÆ®ÀÇ ³»¿ëÀ» Ç¥Çö ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
ComponentUI
³»ÀÇ paint
g
- paintó°¡ µÇ´Â Graphics
¹®¸Æc
- paint µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
clipBounds
³ª insets
¸¦ º¯°æÇÏ´Â °ÍÀº ¿ë¼µÇÁö ¾Ê½À´Ï´Ù.
ÁÖ: ·çÆ®°¡ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì,parentRow
´Â -1 ÀÌ µÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.
protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
clipBounds
³ª insets
¸¦ º¯°æÇÏ´Â °ÍÀº ¿ë¼µÇÁö ¾Ê½À´Ï´Ù.
protected void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
clipBounds
³ª insets
¸¦ º¯°æÇÏ´Â °ÍÀº ¿ë¼µÇÁö ¾Ê½À´Ï´Ù.
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
clipBounds
³ª insets
¸¦ º¯°æÇÏ´Â °ÍÀº ¿ë¼µÇÁö ¾Ê½À´Ï´Ù.
protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
protected void paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)
protected void paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)
protected int getVerticalLegBuffer()
protected int getHorizontalLegBuffer()
protected void drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)
protected void drawDashedHorizontalLine(Graphics g, int y, int x1, int x2)
protected void drawDashedVerticalLine(Graphics g, int x, int y1, int y2)
protected void updateLayoutCacheExpandedNodes()
protected void updateExpandedDescendants(TreePath path)
path
³»ÀÇ ¸ðµç ÇÏÀ§ ³ëµåÀÇ Àü°³ »óŸ¦ °»½ÅÇÕ´Ï´Ù.
protected TreePath getLastChildPath(TreePath parent)
parent
ÀÇ ¸¶Áö¸· ¾ÆÀÌ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
protected void updateDepthOffset()
protected void updateCellEditor()
protected void updateRenderer()
protected void configureLayoutCache()
protected void updateSize()
treeDidChange
¸¦ »ç¿ëÇØ Æ®¸®¿¡ ¸Þ¼¼Áö¸¦ º¸³À´Ï´Ù.
protected void updateCachedPreferredSize()
getPreferredSize()
·ÎºÎÅÍ µ¹·ÁÁÖ¾îÁö´Â preferredSize
ÀνºÅϽº º¯¼ö¸¦ °»½ÅÇÕ´Ï´Ù.
¿ÞÂÊ¿¡¼ ¿ìÃøÇâÀÇ °æ¿ì, »çÀÌÁî´Â ÇöÀçÀÇ AbstractLayoutCache ·ÎºÎÅÍ °áÁ¤µË´Ï´Ù. ¿À¸¥ÂÊÀ¸·ÎºÎÅÍ Á¹æÇâÀÇ °æ¿ì, ÀûÀýÇÑ »çÀÌÁî´Â ÆøÀ¸·ÎºÎÅÍ ÃÖ¼ÒÀÇ x À§Ä¡¸¦ ´ç±ä °ªÀÌ µË´Ï´Ù.
protected void pathWasExpanded(TreePath path)
protected void pathWasCollapsed(TreePath path)
protected void ensureRowsAreVisible(int beginRow, int endRow)
public void setPreferredMinSize(Dimension newSize)
public Dimension getPreferredMinSize()
public Dimension getPreferredSize(JComponent c)
ComponentUI
³»ÀÇ getPreferredSize
c
- ÀûÀýÇÑ »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´ÂJComponent.getPreferredSize()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension getPreferredSize(JComponent c, boolean checkConsistancy)
public Dimension getMinimumSize(JComponent c)
ComponentUI
³»ÀÇ getMinimumSize
c
- ÃÖ¼Ò »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Ù
Dimension
¿ÀºêÁ§Æ®, ¶Ç´Â null
JComponent.getMinimumSize()
,
LayoutManager.minimumLayoutSize(java.awt.Container)
,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public Dimension getMaximumSize(JComponent c)
ComponentUI
³»ÀÇ getMaximumSize
c
- ÃÖ´ë »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI ¿ÀºêÁ§Æ®°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Ù
Dimension
¿ÀºêÁ§Æ®, ¶Ç´Â null
JComponent.getMaximumSize()
,
LayoutManager2.maximumLayoutSize(java.awt.Container)
protected void completeEditing()
getInvokesStopCellEditing
·ÎºÎÅÍ true ¸¦ µ¹·ÁÁÖ´Â °æ¿ì, stopCellEditing °¡ ÇöÀçÀÇ ¿¡µðÅÍ·Î ºÒ·Á °©´Ï´Ù. ´ÙÀ½¿¡ completeEditing °¡ false ¶Ç´Â true ·Î ¸Þ¼¼Áö·Î¼ º¸³»Áý´Ï´Ù. false ´Â ÁßµµÀÇ ÆíÁýÀ» ¸ðµÎ Ãë¼ÒÇÕ´Ï´Ù.
protected void completeEditing(boolean messageStop, boolean messageCancel, boolean messageTree)
protected boolean startEditing(TreePath path, MouseEvent event)
ÀÌ ¸Þ¼Òµå´Â ÆÐ½º°¡ À¯È¿Çϰí, °¡½ÃÀÌ´Ù°í º¾´Ï´Ù.
protected void checkForClickInExpandControl(TreePath path, int mouseX, int mouseY)
mouseX
¹× mouseY
°¡ row
ÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â area¿¡ ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼Òµå´Â ÇàÀÇ Àü°³ »óŸ¦ ¹Ù²ß´Ï´Ù.
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY)
mouseX
¹× mouseY
°¡ ³ëµåÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â ÇàÀÇ area¿¡ ÀÖ¾î,row
¿¡ ÀÖ´Â ³ëµå°¡ ÀÙÀ» ³ªÅ¸³»Áö ¾Ê´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
protected void handleExpandControlClick(TreePath path, int mouseX, int mouseY)
protected void toggleExpandState(TreePath path)
protected boolean isToggleSelectionEvent(MouseEvent event)
protected boolean isMultiSelectEvent(MouseEvent event)
protected boolean isToggleEvent(MouseEvent event)
protected void selectPathForEvent(TreePath path, MouseEvent event)
protected boolean isLeaf(int row)
row
ÀÇ ³ëµå°¡ ÀÙÀÇ °æ¿ì´Â true
|
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.