|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TreeUI
javax.swing.plaf.basic.BasicTreeUI
public class BasicTreeUI
°èÃþÀûÀÎ µ¥ÀÌÅÍ ±¸Á¶ÀÇ ±âº» Look & Feel ¿¡ ÇÑ ±¸ÇöÀÔ´Ï´Ù.
Áßø(Nested) Ŭ·¡½º °³¿ä | |
---|---|
class |
BasicTreeUI.CellEditorHandler
¼¿ ÆíÁý À̺¥Æ®ÀÇ Ãëµæ°ú °Å±â¿¡ ÀÀÇØ Æ®¸®ÀÇ °»½ÅÀ» ½Ç½ÃÇÏ´Â ¸®½º³ÊÀÔ´Ï´Ù. |
class |
BasicTreeUI.ComponentHandler
ÇÊ¿äÇϸé, ½ºÅ©·Ñ½Ã¿¡ ÀûÀýÇÑ »çÀÌÁ °»½ÅÇÕ´Ï´Ù. |
class |
BasicTreeUI.FocusHandler
Æ÷Ä¿½º¸¦ ÀÒ¾úÀ» ¶§, ¶Ç´Â ÃëµæÇßÀ» ¶§¿¡ , ¸®µå ¼±ÅÃÇàÀ» ÆäÀÎÆ® ´Ù½Ã ÇÕ´Ï´Ù. |
class |
BasicTreeUI.KeyHandler
º¹¼öÀÇ Å°°¡ ¹Ð¸®´Â À̺¥Æ®¸¦ ÃëµæÇØ, ÀûÀýÈ÷ À̺¥Æ®¸¦ »ý¼ºÇϱâ À§Çؼ »ç¿ëµË´Ï´Ù. |
class |
BasicTreeUI.MouseHandler
¸¶¿ì½º À̺¥Æ®¿¡ ±Ù°ÅÇØ ¼±ÅÃÀ» °»½ÅÇÏ´Â TreeMouseListener ÀÔ´Ï´Ù. |
class |
BasicTreeUI.MouseInputHandler
MouseInputHandler´Â ±¸ÃàµÇ´Â ¸ñÀûÁö¿¡¼ ¶¼¾î ³õÀ» ¶§±îÁö, ¸ðµç ¸¶¿ì½º À̺¥Æ® (¸¶¿ì½º ¸ð¼Ç À̺¥Æ®¸¦ Æ÷ÇÔÇÑ´Ù)¸¦ °Ç³×Áִ ó¸®¸¦ ÇÕ´Ï´Ù. |
class |
BasicTreeUI.NodeDimensionsHandler
³ëµåÀÇ »çÀÌÁ ¾ò´Â Ŭ·¡½ºÀ̸ç, ¸Þ¼µå´Â BasicTreeUI ¸Þ¼µå¿¡ Àü¼Û µË´Ï´Ù. |
class |
BasicTreeUI.PropertyChangeHandler
Æ®¸®ÀÇ PropertyChangeListener ÀÔ´Ï´Ù. |
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 <TreePath,
Boolean > |
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¸¦ ÆäÀÎÆ® Çϱâ À§Çؼ »ç¿ëµË´Ï´Ù. |
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
Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â ¿µ¿ª¿¡ ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼µå´Â ÇàÀÇ Àü°³ »óŸ¦ ¹Ù²ß´Ï´Ù. |
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)
|
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)
ÆÐ½ºÀÇ ¸¶Áö¸· Ç׸ñÀÌ ·»´õ¸µ µÇ´Â ¶óº§ ºÎºÐÀ» µÑ·¯½Î´Â 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 int |
getRowX (int row,
int depth)
x ÃàÀ¸·Î µû¶ó ƯÁ¤ÀÇ ÇàÀ» ·»´õ¸µ ÇÏ´Â À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
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 °¡ ³ëµåÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â ÇàÀÇ ¿µ¿ª¿¡ ÀÖ¾î, 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¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ÆäÀÎÆ® ÇÕ´Ï´Ù. |
protected void |
paintExpandControl (Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
ÇàÀÇ Àü°³ (¹Ù²Ù°í) ºÎºÐÀ» ÆäÀÎÆ® ÇÕ´Ï´Ù. |
protected void |
paintHorizontalLine (Graphics g,
JComponent c,
int y,
int left,
int right)
¼öÆò¼±À» ÆäÀÎÆ® ÇÕ´Ï´Ù. |
protected void |
paintHorizontalPartOfLeg (Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
´Ù¸®ÀÇ ¼öÆò ºÎºÐÀ» ÆäÀÎÆ® ÇÕ´Ï´Ù. |
protected void |
paintRow (Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
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 |
paintVerticalPartOfLeg (Graphics g,
Rectangle clipBounds,
Insets insets,
TreePath path)
´Ù¸®ÀÇ ¼öÁ÷ ºÎºÐÀ» ÆäÀÎÆ® ÇÕ´Ï´Ù. |
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 <TreePath, Boolean > 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)
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 À§¾çÀ¸·Î¼ ÀνºÅç µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù. ÀÌ ¸Þ¼µå´Â ÀÌÇϸ¦ Æ÷ÇÔÇÑ Look & Feel¿ëÀÇ ÄÄÆÛ³ÍÆ®¸¦ ¿ÏÀüÇÏ°Ô ±¸¼ºÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. LayoutManager
¸¦ ÀνºÅç ÇÑ´ÙPropertyChangeListener
¸¦ ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â ÀνºÅç ÇÑ´Ù
ComponentUI
³»ÀÇ installUI
c
- UI À§¾çÀÌ ÀνºÅç µÇ°í ÀÖ´Â ÄÄÆÛ³ÍÆ®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 À§¾çÀ¸·Î¼ÀÇ UIComponent
ÀνºÅϽº°¡ »èÁ¦µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù. ÀÌ ¸Þ¼µå´Â installUI
¿¡ ÀÇÇØ ½ÇÇàµÈ ±¸¼ºÀ» ¹ÙÅÁÀ¸·Î µÇµ¹¸± Çʿ䰡 ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì
JComponent
ÀνºÅϽº¸¦ ±ú²ýÇÑ »óÅ (¿©ºÐÀÇ ¸®½º³Ê³ª, Look & Feel °íÀ¯ÀÇ ÇÁ·ÎÆÛƼ °´Ã¼°¡ ³²Áö ¾Ê°Ô)·Î Çϵµ·Ï ÃæºÐÈ÷ ÁÖÀÇÇØ ÁÖ¼¼¿ä. ¼ø¼¿¡´Â ´ÙÀ½ÀÇ °ÍÀÌ ÀÖ½À´Ï´Ù.
ComponentUI
³»ÀÇ uninstallUI
c
- ÀÌ UI À§¾çÀÌ »èÁ¦µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, 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
¸Þ¼µå·ÎºÎÅÍ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®°¡ ÆäÀÎÆ® µÉ ¶§ È£ÃâÇÕ´Ï´Ù. ¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ÁöÁ¤µÈ Graphics
°´Ã¼¸¦ »ç¿ëÇØ ÄÄÆÛ³ÍÆ®ÀÇ ³»¿ëÀ» ·»´õ¸µ ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
ComponentUI
³»ÀÇ paint
g
- ÆäÀÎÆ® ´ë»óÀÇ Graphics
ÄÁÅØ½ºÆ®
c
- ÆäÀÎÆ® µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, 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 int getRowX(int row, int depth)
row
- x À§Ä¡¸¦ µ¹·ÁÁÖ´Â Çàdepth
- ÇàÀÇ ±íÀÌ
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
Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â ¿µ¿ª¿¡ ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼µå´Â ÇàÀÇ Àü°³ »óŸ¦ ¹Ù²ß´Ï´Ù.
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY)
mouseX
¹× mouseY
°¡ ³ëµåÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â ÇàÀÇ ¿µ¿ª¿¡ ÀÖ¾î, 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 Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.