JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.plaf.basic
Ŭ·¡½º BasicTreeUI

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.plaf.ComponentUI 
      »óÀ§¸¦ È®Àå javax.swing.plaf.TreeUI 
          »óÀ§¸¦ È®Àå javax.swing.plaf.basic.BasicTreeUI
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
MetalTreeUI

public class BasicTreeUI
extends TreeUI

°èÃþÀûÀÎ µ¥ÀÌÅÍ ±¸Á¶ÀÇ ±âº» 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 ()
          Ä³½¬¿¡ Æ÷ÇԵǰí ÀÖ´Â »çÀÌÁ ¹«È¿¿Í ¸¶Å© ÇØ, treeDidChange¸¦ »ç¿ëÇØ Æ®¸®¿¡ ¸Þ¼¼Áö¸¦ º¸³À´Ï´Ù.
 
Ŭ·¡½º javax.swing.plaf. ComponentUI ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

ÇʵåÀÇ »ó¼¼

collapsedIcon

protected transient Icon  collapsedIcon

expandedIcon

protected transient Icon  expandedIcon

leftChildIndent

protected int leftChildIndent
¿ÞÂÊ ¸¶Áø°ú ¼öÁ÷ÀÇ Æļ±ÀÌ ·»´õ¸µ µÇ´Â À§Ä¡µ¿¾ÈÀÇ °Å¸®ÀÔ´Ï´Ù.


rightChildIndent

protected int rightChildIndent
¼¿ÀÇ ³»¿ëÀÌ ·»´õ¸µ µÇ´Â À§Ä¡¸¦ ³ªÅ¸³»±â À§Çؼ­ leftChildIndent¿¡ °¡»êµÇ´Â °Å¸®ÀÔ´Ï´Ù.


totalChildIndent

protected int totalChildIndent
Àε§Æ® µÇ´Â ÃѰŸ®ÀÔ´Ï´Ù. leftChildIndent¿Í rightChildIndent ÇÕ°èÀÔ´Ï´Ù.


preferredMinSize

protected Dimension  preferredMinSize
ÀûÀýÇÑ ÃÖ¼Ò »çÀÌÁîÀÔ´Ï´Ù.


lastSelectedRow

protected int lastSelectedRow
¸¶Áö¸·¿¡ ¼±ÅÃµÈ ÇàÀÇ À妽ºÀÔ´Ï´Ù.


tree

protected JTree  tree
·»´õ¸µÃ³ÀÇ ÄÄÆÛ³ÍÆ®ÀÔ´Ï´Ù.


currentCellRenderer

protected transient TreeCellRenderer  currentCellRenderer
½ÇÁ¦ÀÇ ¼¿ÀÇ ·»´õ¸µ¸¦ ½Ç½ÃÇϱâ À§Çؼ­ »ç¿ëµÇ°í ÀÖ´Â ·»´õ¸µÀÔ´Ï´Ù.


createdRenderer

protected boolean createdRenderer
ÇöÀç Æ®¸®¿¡ ÀÖ´Â ·»´õ¸µÀÌ ÀÌ ÀνºÅϽº¿¡ ÀÇÇØ ÀÛ¼ºµÇ¾úÀ» °æ¿ì¿¡ true ·Î ¼³Á¤µË´Ï´Ù.


cellEditor

protected transient TreeCellEditor  cellEditor
Æ®¸®ÀÇ ¿¡µðÅÍÀÔ´Ï´Ù.


createdCellEditor

protected boolean createdCellEditor
ÇöÀç Æ®¸®¿¡ ÀÖ´Â ¿¡µðÅÍ°¡ ÀÌ ÀνºÅϽº¿¡ ÀÇÇØ ÀÛ¼ºµÇ¾úÀ» °æ¿ì¿¡ true ·Î ¼³Á¤µË´Ï´Ù.


stopEditingInCompleteEditing

protected boolean stopEditingInCompleteEditing
ÆíÁý½Ã¿¡ shouldSelectCell()°¡ true¸¦ µ¹·ÁÁÖ¾úÀ» °æ¿ì¿¡ false ·Î ¼³Á¤µË´Ï´Ù. ÀÌ°ÍÀº ³ëµå°¡ ÆíÁýÀü¿¡ ¼±ÅõÇÁö ¾ÊÀ¸¸é ¾È µÇ´Â °ÍÀ» ¹ÌÇÏ°í ÀÖ¾î, completeEditing À¸·Î »ç¿ëµË´Ï´Ù.


rendererPane

protected CellRendererPane  rendererPane
TreeCellRenderer¸¦ ÆäÀÎÆ® Çϱâ À§Çؼ­ »ç¿ëµË´Ï´Ù.


preferredSize

protected Dimension  preferredSize
¸ðµç ³ëµå¸¦ ¿ÏÀüÇÏ°Ô Ç¥½ÃÇϱâ À§Çؼ­ ÇÊ¿äÇÑ »çÀÌÁîÀÔ´Ï´Ù.


validCachedPreferredSize

protected boolean validCachedPreferredSize
preferredSize°¡ À¯È¿ÇÑ°¡ ¾î¶²°¡¸¦ ³ªÅ¸³À´Ï´Ù.


treeState

protected AbstractLayoutCache  treeState
»çÀÌÁî º¯°æ ¹× Àü°³ »óŸ¦ ó¸®ÇÏ´Â °´Ã¼ÀÔ´Ï´Ù.


drawingCache

protected Hashtable <TreePath,
Boolean > drawingCache
¼öÁ÷¼±ÀÇ ·»´õ¸µ¸¦ ÃÖ¼ÒÈ­Çϱâ À§Çؼ­ »ç¿ëµË´Ï´Ù.


largeModel

protected boolean largeModel
largeModel ÃÖÀûÈ­¸¦ ÇàÇÏ°í ÀÖ´Â °æ¿ì´Â true ÀÔ´Ï´Ù. ÀÌ°ÍÀ» Áö¿ø ÇÏÁö ¾Ê´Â ¼­ºê Ŭ·¡½º´Â createLayoutCache¸¦ ¿À¹ö¶óÀ̵å(override) Çϸé, FixedHeightLayoutCache ÀνºÅϽº¸¦ µ¹·ÁÁÖÁö ¾Ê°Ô ÇÒ ¼ö ÀÖ½À´Ï´Ù .


nodeDimensions

protected AbstractLayoutCache.NodeDimensions  nodeDimensions
TreeState¿¡ ´ëÇØ ³ëµå¿¡ ÇÊ¿äÇÑ »çÀÌÁ ÅëÁöÇÕ´Ï´Ù.


treeModel

protected TreeModel  treeModel
¹«¾ùÀ» Ç¥½ÃÇÏ´ÂÁö¸¦ ³ªÅ¸³»±â À§Çؼ­ »ç¿ëµË´Ï´Ù.


treeSelectionModel

protected TreeSelectionModel  treeSelectionModel
¼±ÅÃÀ» À¯ÁöÇÏ´Â ¸ðµ¨ÀÔ´Ï´Ù.


depthOffset

protected int depthOffset
x À§Ä¡¸¦ Á¤È®ÇÏ°Ô °è»êÇϱâ À§ÇÑ ±íÀÌÀÇ ¿ÀÇÁ¼Â(offset)ÀÇ ¾çÀÔ´Ï´Ù. ÀÌ°ÍÀº ·çÆ®°¡ °¡½ÃÀΰ¡ ºÎµð ·çÆ®ÀÇ ÇÚµéÀÌ °¡½Ã Á¦¹ß¿¡ ÀÇÇØ Á¤ÇØÁý´Ï´Ù.


editingComponent

protected Component  editingComponent
ÀÌ°ÍÀº ÆíÁý½Ã¿¡ ½ÇÁ¦ÀÇ ÆíÁýÀ» ½Ç½ÃÇÏ´Â Component°¡ µË´Ï´Ù.


editingPath

protected TreePath  editingPath
ÆíÁýÁßÀÇ ÆнºÀÔ´Ï´Ù.


editingRow

protected int editingRow
ÆíÁýÁßÀÇ ÇàÀÔ´Ï´Ù. editingComponent°¡ nullÀÌ ¾Æ´Ñ °æ¿ì¸¸ ÂüÁ¶µË´Ï´Ù.


editorHasDifferentSize

protected boolean editorHasDifferentSize
¿¡µðÅÍÀÇ »çÀÌÁî°¡ ·»´õ¸µ°ú ´Ù¸¥ °æ¿ì¿¡ true ·Î ¼³Á¤µË´Ï´Ù.

»ý¼ºÀÚ »ó¼¼

BasicTreeUI

public BasicTreeUI()
¸Þ¼­µåÀÇ »ó¼¼

createUI

public static ComponentUI  createUI(JComponent  x)

getHashColor

protected Color  getHashColor()

setHashColor

protected void setHashColor(Color  color)

setLeftChildIndent

public void setLeftChildIndent(int newAmount)

getLeftChildIndent

public int getLeftChildIndent()

setRightChildIndent

public void setRightChildIndent(int newAmount)

getRightChildIndent

public int getRightChildIndent()

setExpandedIcon

public void setExpandedIcon(Icon  newG)

getExpandedIcon

public Icon  getExpandedIcon()

setCollapsedIcon

public void setCollapsedIcon(Icon  newG)

getCollapsedIcon

public Icon  getCollapsedIcon()

setLargeModel

protected void setLargeModel(boolean largeModel)
ÇÊ¿äÇÑ °æ¿ì¿¡ componentListener¸¦ °»½ÅÇÕ´Ï´Ù.


isLargeModel

protected boolean isLargeModel()

setRowHeight

protected void setRowHeight(int rowHeight)
ÇàÀÇ ³ôÀ̸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ°ÍÀº treeState¿¡ Àü¼Û µË´Ï´Ù.


getRowHeight

protected int getRowHeight()

setCellRenderer

protected void setCellRenderer(TreeCellRenderer  tcr)
TreeCellRenderer¸¦ tcr·Î ¼³Á¤ÇÕ´Ï´Ù. ÀÌ°Í¿¡ ÀÇÇØ updateRenderer°¡ È£ÃâµË´Ï´Ù.


getCellRenderer

protected TreeCellRenderer  getCellRenderer()
currentCellRenderer¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ°ÍÀº Æ®¸® ·»´õ¸µ ¶Ç´Â defaultCellRenderer (nullÀÌ ¾Æ´Ñ Æí)°¡ µË´Ï´Ù.


setModel

protected void setModel(TreeModel  model)
TreeModel¸¦ ¼³Á¤ÇÕ´Ï´Ù.


getModel

protected TreeModel  getModel()

setRootVisible

protected void setRootVisible(boolean newValue)
·çÆ®¸¦ °¡½Ã·Î ¼³Á¤ÇÕ´Ï´Ù.


isRootVisible

protected boolean isRootVisible()

setShowsRootHandles

protected void setShowsRootHandles(boolean newValue)
³ëµåÀÇ ÇÚµéÀÌ Ç¥½ÃµÉÁö ¾î¶³Áö¸¦ °áÁ¤ÇÕ´Ï´Ù.


getShowsRootHandles

protected boolean getShowsRootHandles()

setCellEditor

protected void setCellEditor(TreeCellEditor  editor)
¼¿ ¿¡µðÅ͸¦ ¼³Á¤ÇÕ´Ï´Ù.


getCellEditor

protected TreeCellEditor  getCellEditor()

setEditable

protected void setEditable(boolean newValue)
¸®½Ã¹ö°¡ ÆíÁýÀ» Çã°¡ÇÒÁö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù.


isEditable

protected boolean isEditable()

setSelectionModel

protected void setSelectionModel(TreeSelectionModel  newLSM)
¼±Åà ¸ðµ¨À» ¸®¼Â ÇÕ´Ï´Ù. ÀûÀýÇÑ ¸®½º³Ê°¡ ¸ðµ¨·Î ÀνºÅç µË´Ï´Ù.


getSelectionModel

protected TreeSelectionModel  getSelectionModel()

getPathBounds

public Rectangle  getPathBounds(JTree  tree,
                               TreePath  path)
ÆнºÀÇ ¸¶Áö¸· Ç׸ñÀÌ ·»´õ¸µ µÇ´Â ¶óº§ ºÎºÐÀ» µÑ·¯½Î´Â Rectangle¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÆнºÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ¾î¶² °ÍÀΰ¡°¡ ÇöÀç À¯È¿ÇÑ °æ¿ì´Â nullÀÌ ¸®Åϵ˴ϴ٠.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ getPathBounds

getPathForRow

public TreePath  getPathForRow(JTree  tree,
                              int row)
°Ç³×¹ÞÀº row Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù. row°¡ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì´Â nullÀÌ ¸®Åϵ˴ϴ٠.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ getPathForRow

getRowForPath

public int getRowForPath(JTree  tree,
                         TreePath  path)
path ·Î ½Äº°µÇ´Â ¸¶Áö¸· Ç׸ñÀÌ °¡½ÃÀÎ ÇàÀ» ¸®ÅÏÇÕ´Ï´Ù. path ³»ÀÇ ¾î´À ¿ä¼Òµµ ÇöÀç´Â °¡½Ã°¡ ¾Æ´Ñ °æ¿ì´Â -1À» ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ getRowForPath

getRowCount

public int getRowCount(JTree  tree)
Ç¥½ÃµÇ°í ÀÖ´Â Çà¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ getRowCount

getClosestPathForLocation

public TreePath  getClosestPathForLocation(JTree  tree,
                                          int x,
                                          int y)
x, y¿¡ °¡Àå °¡±î¿î ³ëµå¿¡ÀÇ Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÇöÀç °¡½ÃÀÇ °ÍÀÌ ¾ø´Â °æ¿ì´Â nullÀ» ¸®ÅÏÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â Ç×»ó À¯È¿ÇÑ Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¸®ÅÏµÈ °´Ã¼°¡ Á¤È®ÇÏ°Ô x, y¿¡ ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÒ ÇÊ¿ä°¡ ÀÖ´Â °æ¿ì´Â ¸®ÅÏµÈ ÆнºÀÇ ±¸ÇüÀ» ÃëµæÇØ, x, y¿Í ºñ±³ÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ getClosestPathForLocation

isEditing

public boolean isEditing(JTree  tree)
Æ®¸®°¡ ÆíÁýÁßÀÇ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÆíÁýÁßÀÇ Ç׸ñÀ» ÃëµæÇÏ·Á¸é, getEditingPath()¸¦ »ç¿ëÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ isEditing

stopEditing

public boolean stopEditing(JTree  tree)
ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» ÁßÁöÇÕ´Ï´Ù. Æ®¸®°¡ ÆíÁýÁßÀÌ ¾Æ´Ñ °æ¿ì´Â ÀÌ ¸Þ¼­µå´Â ¾Æ¹«°Íµµ ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù. ¿¡µðÅÍ°¡ ÆíÁý ¼¼¼ÇÀÇ ÁßÁö¸¦ Çã°¡ÇßÀ» °æ¿ì´Â true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ stopEditing

cancelEditing

public void cancelEditing(JTree  tree)
ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» Ãë¼ÒÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ cancelEditing

startEditingAtPath

public void startEditingAtPath(JTree  tree,
                               TreePath  path)
path ¸¶Áö¸· Ç׸ñÀ» ¼±ÅÃÇØ, ±× Ç׸ñÀÇ ÆíÁýÀ» ½ÃµµÇÕ´Ï´Ù. CellEditor°¡ ¼±ÅÃµÈ Ç׸ñÀÇ ÆíÁýÀ» Çã°¡ÇÏÁö ¾Ê´Â °æ¿ì, ÆíÁýÀº ½ÇÆÐÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ startEditingAtPath

getEditingPath

public TreePath  getEditingPath(JTree  tree)
ÆíÁýÁßÀÇ ¿ä¼Ò¿¡ ´ëÇÑ Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù.

Á¤ÀÇ:
Ŭ·¡½º TreeUI ³»ÀÇ getEditingPath

installUI

public void installUI(JComponent  c)
Ŭ·¡½º ComponentUI ±â¼ú:
Look & Feel¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ±¸¼ºÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ComponentUIÀνºÅϽº°¡ ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI À§¾çÀ¸·Î¼­ ÀνºÅç µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ÀÌÇϸ¦ Æ÷ÇÔÇÑ Look & Feel¿ëÀÇ ÄÄÆÛ³ÍÆ®¸¦ ¿ÏÀüÇÏ°Ô ±¸¼ºÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
  1. Ä÷¯, ÆùÆ®, º¸´õ,ÀڽľÆÀÌÄÜ, ºÒÅõ¸íÇÔ µî ¸ðµç µðÆúÆ® ÇÁ·ÎÆÛƼÀÇ °ªÀ» ÄÄÆÛ³ÍÆ®¿¡ ÀνºÅç ÇÑ´Ù. °¡´ÉÇÑ °æ¿ì´Â Ŭ¶óÀ̾ðÆ® ÇÁ·Î±×·¥¿¡ ÀÇÇØ ÃʱâÈ­µÈ ÇÁ·ÎÆÛƼÀÇ °ªÀ» ¿À¹ö¶óÀ̵å(override) Çؼ­´Â ¾È µÈ´Ù
  2. ÇÊ¿ä¿¡ µû¶ó¼­, ÄÄÆÛ³ÍÆ®¿¡ LayoutManager¸¦ ÀνºÅç ÇÑ´Ù
  3. ÇÊ¿äÇÑ ¼­ºê ÄÄÆÛ³ÍÆ®¸¦, ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â Ãß°¡ÇÑ´Ù
  4. À̺¥Æ® ¸®½º³Ê¸¦, ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â ÀνºÅç ÇÑ´Ù
  5. ÄÄÆÛ³ÍÆ®ÀÇ ÇÁ·ÎÆÛƼÀÇ º¯°æÀ» ÀûÀýÈ÷ °ËÃâÇØ, ÀÀ´äÇϱâ À§Çؼ­ PropertyChangeListener¸¦ ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â ÀνºÅç ÇÑ´Ù
  6. Å°º¸µå UI (Mnemonics, traversalµî)¸¦, ÄÄÆÛ³ÍÆ®¿¡ ÀνºÅç ÇÑ´Ù
  7. ÀûÀýÇÑ ÀνºÅϽºÀÇ µ¥ÀÌÅ͸¦ ÃʱâÈ­ÇÑ´Ù

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ installUI
ÆĶó¹ÌÅÍ:
c - UI À§¾çÀÌ ÀνºÅç µÇ°í ÀÖ´Â ÄÄÆÛ³ÍÆ®
°ü·Ã Ç׸ñ:
ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()

prepareForUIInstall

protected void prepareForUIInstall()
treeÀνºÅϽº º¯¼ö°¡ ¼³Á¤µÈ µÚ¿¡ µðÆúÆ® ¹× ¸®½º³Ê°¡ ÀνºÅç µÇ±â Àü¿¡ È£ÃâÇÕ´Ï´Ù.


completeUIInstall

protected void completeUIInstall()
¸ðµç µðÆúÆ® ¹× ¸®½º³Ê°¡ ÀνºÅç µÈ µÚ¿¡ installUI ·ÎºÎÅÍ È£ÃâÇÕ´Ï´Ù.


installDefaults

protected void installDefaults()

installListeners

protected void installListeners()

installKeyboardActions

protected void installKeyboardActions()

installComponents

protected void installComponents()
·»´õ¸µ ±¸È¹ÀÎ, Æ®¸®ÀÇ ¼­ºê ÄÄÆÛ³ÍÆ®¸¦ ÀνºÅç ÇÕ´Ï´Ù.


createNodeDimensions

protected AbstractLayoutCache.NodeDimensions  createNodeDimensions()
Æ®¸®ÀÇ ÁöÁ¤µÈ ³ëµåÀÇ »çÀÌÁ ³ªÅ¸³¾ ¼ö ÀÖ´Â NodeDimensions ÀνºÅϽº¸¦ »ý¼ºÇÕ´Ï´Ù.


createPropertyChangeListener

protected PropertyChangeListener  createPropertyChangeListener()
Æ®¸®ÀÇ º¯°æ¿¡ ±Ù°ÅÇØ UI¸¦ °»½ÅÇÏ´Â ¸®½º³Ê¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


createMouseListener

protected MouseListener  createMouseListener()
¸¶¿ì½º À̺¥Æ®¿¡ ±Ù°ÅÇØ ¼±ÅÃÀ» °»½ÅÇÏ´Â ¸®½º³Ê¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


createFocusListener

protected FocusListener  createFocusListener()
Æ÷Ä¿½º¸¦ ÀÒ¾úÀ» ¶§ ¹× ÃëµæÇßÀ» ¶§¿¡ Ç¥½Ã¸¦ °»½ÅÇÏ´Â ¸®½º³Ê¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


createKeyListener

protected KeyListener  createKeyListener()
Æ®¸®·ÎºÎÅÍ Å° À̺¥Æ®¸¦ ¾ò´Â ¸®½º³Ê¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


createSelectionModelPropertyChangeListener

protected PropertyChangeListener  createSelectionModelPropertyChangeListener()
¼±Åà ¸ðµ¨·ÎºÎÅÍ ÇÁ·ÎÆÛƼ º¯°æ À̺¥Æ®¸¦ ¾ò´Â ¸®½º³Ê¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


createTreeSelectionListener

protected TreeSelectionListener  createTreeSelectionListener()
¼±Åà º¯°æ ¸Þ¼­µå¿¡ ±Ù°ÅÇØ Ç¥½Ã¸¦ °»½ÅÇÏ´Â ¸®½º³Ê¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


createCellEditorListener

protected CellEditorListener  createCellEditorListener()
ÇöÀçÀÇ ¿¡µðÅͷκÎÅÍÀÇ À̺¥Æ®¸¦ ó¸®ÇÏ´Â ¸®½º³Ê¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


createComponentListener

protected ComponentListener  createComponentListener()
»õ·Î¿î ComponentHandler¸¦ ÀÛ¼ºÇØ, ±×°ÍÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ°ÍÀº Å« ¸ðµ¨·Î ÄÄÆÛ³ÍÆ®°¡ À̵¿ÇßÀ» ¶§¿¡ validCachedPreferredSize¸¦ ¹«È¿·Î Çϱâ À§Çؼ­ »ç¿ëµË´Ï´Ù.


createTreeExpansionListener

protected TreeExpansionListener  createTreeExpansionListener()
³ëµåÀÇ Àü°³ »óÅ°¡ º¯°æµÇ¾úÀ» ¶§¿¡ Æ®¸® »óŸ¦ °»½ÅÇÏ´Â °´Ã¼¸¦ ÀÛ¼ºÇØ, ±×°ÍÀ» ¸®ÅÏÇÕ´Ï´Ù.


createLayoutCache

protected AbstractLayoutCache  createLayoutCache()
³ëµåÀÇ »çÀÌÁî¿Í Àü°³ »óŸ¦ °ü¸®ÇÏ´Â °´Ã¼¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


createCellRendererPane

protected CellRendererPane  createCellRendererPane()
·»´õ¸µ ÄÄÆÛ³ÍÆ®°¡ ¹èÄ¡µÇ°í ÀÖ´Â ·»´õ¸µ ±¸È¹À» ¸®ÅÏÇÕ´Ï´Ù.


createDefaultCellEditor

protected TreeCellEditor  createDefaultCellEditor()
µðÆúÆ®ÀÇ ¼¿ ¿¡µðÅ͸¦ ÀÛ¼ºÇÕ´Ï´Ù.


createDefaultCellRenderer

protected TreeCellRenderer  createDefaultCellRenderer()
°¢ ³ëµå¸¦ ·»´õ¸µ Çϱâ À§Çؼ­ »ç¿ëµÇ´Â µðÆúÆ®ÀÇ ¼¿ ·»´õ¸µÀ» ¸®ÅÏÇÕ´Ï´Ù.


createTreeModelListener

protected TreeModelListener  createTreeModelListener()
¸ðµ¨ÀÌ º¯°æµÇ¾úÀ» ¶§¿¡ Æ®¸®¸¦ °»½ÅÇÒ ¼ö ÀÖ´Â ¸®½º³Ê¸¦ ¸®ÅÏÇÕ´Ï´Ù.


uninstallUI

public void uninstallUI(JComponent  c)
Ŭ·¡½º ComponentUI ±â¼ú:
installUI ½Ã¿¡ ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®·Î ½ÇÇàÇÑ ±¸¼ºÀ» Ãë¼ÒÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI À§¾çÀ¸·Î¼­ÀÇ UIComponentÀνºÅϽº°¡ »èÁ¦µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â installUI¿¡ ÀÇÇØ ½ÇÇàµÈ ±¸¼ºÀ» ¹ÙÅÁÀ¸·Î µÇµ¹¸± ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì JComponentÀνºÅϽº¸¦ ±ú²ýÇÑ »óÅ (¿©ºÐÀÇ ¸®½º³Ê³ª, Look & Feel °íÀ¯ÀÇ ÇÁ·ÎÆÛƼ °´Ã¼°¡ ³²Áö ¾Ê°Ô)·Î Çϵµ·Ï ÃæºÐÈ÷ ÁÖÀÇÇØ ÁÖ¼¼¿ä. ¼ø¼­¿¡´Â ´ÙÀ½ÀÇ °ÍÀÌ ÀÖ½À´Ï´Ù.
  1. UI ·Î¼­ ¼³Á¤µÈ ¸ðµç º¸´õ¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  2. UI ·Î¼­ ¼³Á¤µÈ ¸ðµç ·¹À̾ƿô ¸Å´ÏÀú¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  3. UI ·Î¼­ Ãß°¡µÈ ¸ðµç ¼­ºê ÄÄÆÛ³ÍÆ®¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  4. UI ·Î¼­ Ãß°¡µÈ ¸ðµç À̺¥Æ®/¸®½º³Ê¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  5. UI ·Î¼­ ÀνºÅç µÈ ¸ðµç Å°º¸µå UI¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  6. GC ¿ëÀ¸·Î ÇÒ´çÇÒ ¼ö ÀÖ´ø ¸ðµç ÀνºÅϽºÀÇ µ¥ÀÌÅÍ °´Ã¼¸¦ ¹«È¿·Î ÇÑ´Ù

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ uninstallUI
ÆĶó¹ÌÅÍ:
c - ÀÌ UI À§¾çÀÌ »èÁ¦µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Â
°ü·Ã Ç׸ñ:
ComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()

prepareForUIUninstall

protected void prepareForUIUninstall()

completeUIUninstall

protected void completeUIUninstall()

uninstallDefaults

protected void uninstallDefaults()

uninstallListeners

protected void uninstallListeners()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

uninstallComponents

protected void uninstallComponents()
·»´õ¸µ ±¸È¹À» ¾ðÀνºÅçÇÕ´Ï´Ù.


paint

public void paint(Graphics  g,
                  JComponent  c)
Ŭ·¡½º ComponentUI ±â¼ú:
Look &Feel¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ÆäÀÎÆ® ÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ComponentUI.update ¸Þ¼­µå·ÎºÎÅÍ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®°¡ ÆäÀÎÆ® µÉ ¶§ È£ÃâÇÕ´Ï´Ù. ¼­ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼­µå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ÁöÁ¤µÈ Graphics °´Ã¼¸¦ »ç¿ëÇØ ÄÄÆÛ³ÍÆ®ÀÇ ³»¿ëÀ» ·»´õ¸µ ÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ paint
ÆĶó¹ÌÅÍ:
g - ÆäÀÎÆ® ´ë»óÀÇ Graphics ÄÁÅؽºÆ®
c - ÆäÀÎÆ® µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Â
°ü·Ã Ç׸ñ:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)

paintHorizontalPartOfLeg

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 ÀÌ µÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.


paintVerticalPartOfLeg

protected void paintVerticalPartOfLeg(Graphics  g,
                                      Rectangle  clipBounds,
                                      Insets  insets,
                                      TreePath  path)
´Ù¸®ÀÇ ¼öÁ÷ ºÎºÐÀ» ÆäÀÎÆ® ÇÕ´Ï´Ù. ¸®½Ã¹ö´Â clipBounds ³ª insets¸¦ º¯°æÇÏ´Â °ÍÀº ¿ë¼­µÇÁö ¾Ê½À´Ï´Ù.


paintExpandControl

protected void paintExpandControl(Graphics  g,
                                  Rectangle  clipBounds,
                                  Insets  insets,
                                  Rectangle  bounds,
                                  TreePath  path,
                                  int row,
                                  boolean isExpanded,
                                  boolean hasBeenExpanded,
                                  boolean isLeaf)
ÇàÀÇ Àü°³ (¹Ù²Ù°í) ºÎºÐÀ» ÆäÀÎÆ® ÇÕ´Ï´Ù. ¸®½Ã¹ö´Â clipBounds ³ª insets¸¦ º¯°æÇÏ´Â °ÍÀº ¿ë¼­µÇÁö ¾Ê½À´Ï´Ù.


paintRow

protected void paintRow(Graphics  g,
                        Rectangle  clipBounds,
                        Insets  insets,
                        Rectangle  bounds,
                        TreePath  path,
                        int row,
                        boolean isExpanded,
                        boolean hasBeenExpanded,
                        boolean isLeaf)
ÇàÀÇ ·»´õ¸µ ºÎºÐÀ» ÆäÀÎÆ® ÇÕ´Ï´Ù. ¸®½Ã¹ö´Â clipBounds ³ª insets¸¦ º¯°æÇÏ´Â °ÍÀº ¿ë¼­µÇÁö ¾Ê½À´Ï´Ù.


shouldPaintExpandControl

protected boolean shouldPaintExpandControl(TreePath  path,
                                           int row,
                                           boolean isExpanded,
                                           boolean hasBeenExpanded,
                                           boolean isLeaf)
ÁöÁ¤µÈ ÇàÀ¸·Î Àü°³ (¹Ù²Ù°í) ÄÁÆ®·ÑÀÌ ·»´õ¸µ µÇÁö ¾ÊÀ¸¸é ¾È µÇ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.


paintVerticalLine

protected void paintVerticalLine(Graphics  g,
                                 JComponent  c,
                                 int x,
                                 int top,
                                 int bottom)
¼öÁ÷¼±À» ÆäÀÎÆ® ÇÕ´Ï´Ù.


paintHorizontalLine

protected void paintHorizontalLine(Graphics  g,
                                   JComponent  c,
                                   int y,
                                   int left,
                                   int right)
¼öÆò¼±À» ÆäÀÎÆ® ÇÕ´Ï´Ù.


getVerticalLegBuffer

protected int getVerticalLegBuffer()
³ëµå°£ÀÇ ´Ù¸®ÀÇ ¼öÁ÷ ¿ä¼Ò´Â µðÆúÆ®¿¡¼­´Â ºÎ¸ð³ëµåÀÇ ÇÏ´ÜÀ¸·ÎºÎÅÍ ½ÃÀ۵˴ϴÙ. ÀÌ ¸Þ¼­µå´Â ´Ù¸®°¡ ±×°Íº¸´Ù ¾Æ·¡¿¡¼­ ½ÃÀ۵ǵµ·Ï ÇÕ´Ï´Ù.


getHorizontalLegBuffer

protected int getHorizontalLegBuffer()
³ëµå°£ÀÇ ´Ù¸®ÀÇ ¼öÆò ¿ä¼Ò´Â µðÆúÆ®¿¡¼­´ÂÀÚ½Ä ³ëµåÀÇ ÁÂÃøÀÇ ¿À¸¥ÂÊ¿¡¼­ ½ÃÀ۵˴ϴÙ. ÀÌ ¸Þ¼­µå´Â ´Ù¸®°¡ ±×°Íº¸´Ù ÀüÀ¸·Î ³¡³ªµµ·Ï ÇÕ´Ï´Ù.


drawCentered

protected void drawCentered(Component  c,
                            Graphics  graphics,
                            Icon  icon,
                            int x,
                            int y)

drawDashedHorizontalLine

protected void drawDashedHorizontalLine(Graphics  g,
                                        int y,
                                        int x1,
                                        int x2)

drawDashedVerticalLine

protected void drawDashedVerticalLine(Graphics  g,
                                      int x,
                                      int y1,
                                      int y2)

getRowX

protected int getRowX(int row,
                      int depth)
x ÃàÀ¸·Î µû¶ó ƯÁ¤ÀÇ ÇàÀ» ·»´õ¸µ ÇÏ´Â À§Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¹Ýȯ°ª¿¡´Â JTree ·Î ÁöÁ¤µÈ ÀÎ ¼¼Æ®Ä¡´Â ÀÏÀý Æ÷ÇÔµÇÁö ¾Ê½À´Ï´Ù. ÀÌ ¸Þ¼­µå¿¡¼­´Â Çà ¶Ç´Â ±íÀÌÀÇ À¯È¿¼ºÀº È®ÀÎÇÏÁö ¾Ê±â ¶§¹®¿¡ Çà ¶Ç´Â ±íÀÌ°¡ Æ®¸®ÀÇ ±×°Í°ú ÀÏÄ¡ÇÏÁö ¾Ê´Â °æ¿ì¿¡¼­µµ, ¿Ã¹Ù¸£´Ù°í º¸¿©Á®, ¿¹¿Ü¸¦ Throw ÇÏÁö ¾Ê½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
row - x À§Ä¡¸¦ µ¹·ÁÁÖ´Â Çà
depth - ÇàÀÇ ±íÀÌ
¹Ýȯ°ª:
ÁöÁ¤µÈ ÇàÀ» Àε§Æ® ÇÏ´Â ¾ç
µµÀÔµÈ ¹öÀü :
1.5

updateLayoutCacheExpandedNodes

protected void updateLayoutCacheExpandedNodes()
JTree ·Î Àü°³ ¶°³¯ ¼ö ÀÖ¾î ¸ðµç ³ëµå¸¦ LayoutCache ·Î Àü°³ÇÕ´Ï´Ù. ÀÌ°Í¿¡ ÀÇÇØ ·çÆ® Æнº¸¦ »ç¿ëÇØ updateExpandedDescendants°¡ È£ÃâµË´Ï´Ù.


updateExpandedDescendants

protected void updateExpandedDescendants(TreePath  path)
Æ®¸®·ÎºÎÅÍ Àü°³µÇ°í ÀÖ´Â ÇÏÀ§ ³ëµå¸¦ ÃëµæÇØ, Æ®¸®»óÅ¿¡ Àü¼Û ÇÏ´Â °ÍÀ¸·Îpath ³»ÀÇ ¸ðµç ÇÏÀ§ ³ëµåÀÇ Àü°³ »óŸ¦ °»½ÅÇÕ´Ï´Ù.


getLastChildPath

protected TreePath  getLastChildPath(TreePath  parent)
parent ¸¶Áö¸·ÀÚ½Ä Æнº¸¦ ¸®ÅÏÇÕ´Ï´Ù.


updateDepthOffset

protected void updateDepthOffset()
°¢ ±íÀÌÀÇ ¿ÀÇÁ¼Â(offset)¸¦ °»½ÅÇÕ´Ï´Ù.


updateCellEditor

protected void updateCellEditor()
JTree¸¦ ÆíÁýÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¿¡ ÀÀÇØ cellEditor¸¦ °»½ÅÇÕ´Ï´Ù. Æ®¸®¸¦ ÆíÁýÇÒ ¼ö ÀÖÁö¸¸, cellEditor°¡ ¾ø´Â °æ¿ì, ±âº»ÀûÀÎ ¼¿ ¿¡µðÅÍ°¡ »ç¿ëµË´Ï´Ù.


updateRenderer

protected void updateRenderer()
·»´õ¸µÀÌ º¯°æµÇ¾úÀ» ¶§¿¡ Æ®¸®·ÎºÎÅÍ ¸Þ¼¼Áö·Î¼­ º¸³»Áý´Ï´Ù.


configureLayoutCache

protected void configureLayoutCache()
Look & Feel¸¦ Á¦°øÇÏ°í ÀÖ´Â Æ®¸®¿¡ ±Ù°ÅÇØ TreeState ÀνºÅϽº¸¦ ¸®¼Â ÇÕ´Ï´Ù.


updateSize

protected void updateSize()
ij½¬¿¡ Æ÷ÇԵǰí ÀÖ´Â »çÀÌÁ ¹«È¿¿Í ¸¶Å© ÇØ, treeDidChange¸¦ »ç¿ëÇØ Æ®¸®¿¡ ¸Þ¼¼Áö¸¦ º¸³À´Ï´Ù.


updateCachedPreferredSize

protected void updateCachedPreferredSize()
getPreferredSize()·Î ºÎÅÍ ¸®ÅÏµÈ preferredSizeÀνºÅϽº º¯¼ö¸¦ °»½ÅÇÕ´Ï´Ù.

¿ÞÂÊ¿¡¼­ ¿ìÃøÇâÀÇ °æ¿ì, »çÀÌÁî´Â ÇöÀçÀÇ AbstractLayoutCache ·ÎºÎÅÍ °áÁ¤µË´Ï´Ù. ¿À¸¥ÂÊÀ¸·ÎºÎÅÍ Á¹æÇâÀÇ °æ¿ì, ÀûÀýÇÑ »çÀÌÁî´Â ÆøÀ¸·ÎºÎÅÍ ÃÖ¼ÒÀÇ x À§Ä¡¸¦ ´ç±ä °ªÀÌ µË´Ï´Ù.


pathWasExpanded

protected void pathWasExpanded(TreePath  path)
VisibleTreeNode ÀÌ Àü°³µÈ µÚ¿¡ VisibleTreeNode ·ÎºÎÅÍ ¸Þ¼¼Áö·Î¼­ º¸³»Áý´Ï´Ù.


pathWasCollapsed

protected void pathWasCollapsed(TreePath  path)
VisibleTreeNode ÀÌ ¼ö³³µÈ µÚ¿¡ VisibleTreeNode ·ÎºÎÅÍ ¸Þ¼¼Áö·Î¼­ º¸³»Áý´Ï´Ù.


ensureRowsAreVisible

protected void ensureRowsAreVisible(int beginRow,
                                    int endRow)
beginRow¿Í endRow¿¡ ÀÇÇØ ½Äº°µÇ´Â ¸ðµç ÇàÀÌ °¡½Ã°¡ µË´Ï´Ù.


setPreferredMinSize

public void setPreferredMinSize(Dimension  newSize)
ÀûÀýÇÑ ÃÖ¼Ò »çÀÌÁ ¼³Á¤ÇÕ´Ï´Ù.


getPreferredMinSize

public Dimension  getPreferredMinSize()
ÀûÀýÇÑ ÃÖ¼Ò »çÀÌÁ ¸®ÅÏÇÕ´Ï´Ù.


getPreferredSize

public Dimension  getPreferredSize(JComponent  c)
Æ®¸®¸¦ ¿Ã¹Ù¸£°Ô Ç¥½ÃÇϱâ À§Çؼ­ ÀûÀýÇÑ »çÀÌÁ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ°ÍÀº getPreferredSize(c, false)ÀÇ Ä¿¹ö ¸Þ¼­µåÀÔ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ getPreferredSize
ÆĶó¹ÌÅÍ:
c - ÀûÀýÇÑ »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Â
°ü·Ã Ç׸ñ:
JComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)

getPreferredSize

public Dimension  getPreferredSize(JComponent  c,
                                  boolean checkConsistancy)
c ·Î Æ®¸®¸¦ ³ªÅ¸³»±â À§ÇÑ ÀûÀýÇÑ »çÀÌÁ ¸®ÅÏÇÕ´Ï´Ù. checkConsistancy°¡ trueÀÎ °æ¿ì, ÃÖÃÊ·Î checkConsistancy°¡ ¸Þ¼¼Áö·Î¼­ º¸³»Áý´Ï´Ù.


getMinimumSize

public Dimension  getMinimumSize(JComponent  c)
ÀÌ ÄÄÆÛ³ÍÆ®ÀÇ ÃÖ¼Ò »çÀÌÁ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ°ÍÀº ÀûÀýÇÑ ÃÖ¼Ò »çÀÌÁî ¶Ç´Â 0, 0 ÀÌ µË´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ getMinimumSize
ÆĶó¹ÌÅÍ:
c - ÃÖ¼Ò »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Ù
¹Ýȯ°ª:
Dimension °´Ã¼, ¶Ç´Â null
°ü·Ã Ç׸ñ:
JComponent.getMinimumSize(), LayoutManager.minimumLayoutSize(java.awt.Container), ComponentUI.getPreferredSize(javax.swing.JComponent)

getMaximumSize

public Dimension  getMaximumSize(JComponent  c)
ÀÌ ÄÄÆÛ³ÍÆ®ÀÇ ÃÖ´ë »çÀÌÁ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ°ÍÀº ÀνºÅϽº°¡ ÇöÀç JTree¿¡ ÀÖ´Â °æ¿ì´Â ÀûÀýÇÑ »çÀÌÁî°¡ µÇ¾î, ±×·¸Áö ¾ÊÀº °æ¿ì´Â 0, 0 ÀÌ µË´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ getMaximumSize
ÆĶó¹ÌÅÍ:
c - ÃÖ´ë »çÀÌÁî°¡ Á¶È¸µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Ù
¹Ýȯ°ª:
Dimension °´Ã¼, ¶Ç´Â null
°ü·Ã Ç׸ñ:
JComponent.getMaximumSize(), LayoutManager2.maximumLayoutSize(java.awt.Container)

completeEditing

protected void completeEditing()
ÆíÁý ¼¼¼ÇÀ» ÁßÁöÇϱâ À§Çؼ­ ¸Þ¼¼Áö·Î¼­ º¸³»Áý´Ï´Ù. ¸®½Ã¹ö°¡ Look & Feel¸¦ Á¦°øÇÏ°í ÀÖ´Â UI°¡ getInvokesStopCellEditing·Î ºÎÅÍ true¸¦ µ¹·ÁÁÖ´Â °æ¿ì, stopCellEditing°¡ ÇöÀçÀÇ ¿¡µðÅͷΠȣÃâÇÕ´Ï´Ù. ´ÙÀ½¿¡ completeEditing°¡ false ¶Ç´Â true ·Î ¸Þ¼¼Áö·Î¼­ º¸³»Áý´Ï´Ù. false´Â ÁßµµÀÇ ÆíÁýÀ» ¸ðµÎ Ãë¼ÒÇÕ´Ï´Ù.


completeEditing

protected void completeEditing(boolean messageStop,
                               boolean messageCancel,
                               boolean messageTree)
ÆíÁý ¼¼¼ÇÀ» ÁßÁöÇÕ´Ï´Ù. messageStop ÀÌ trueÀÎ °æ¿ì, stopEditing¸¦ »ç¿ëÇØ ¿¡µðÅÍ¿¡ ¸Þ¼¼Áö°¡ º¸³»Á® messageCancel ÀÌ trueÀÎ °æ¿ì, cancelEditing¸¦ »ç¿ëÇØ ¿¡µðÅÍ¿¡ ¸Þ¼¼Áö°¡ º¸³»Áý´Ï´Ù. messageTree°¡ trueÀÎ °æ¿ì, valueForPathChanged¸¦ »ç¿ëÇØ treeModel¿¡ ¸Þ¼¼Áö°¡ º¸³»Áý´Ï´Ù.


startEditing

protected boolean startEditing(TreePath  path,
                               MouseEvent  event)
cellEditor°¡ ÀÖ´Â °æ¿ì¿¡ shouldSelectCell°¡ true¸¦ µ¹·ÁÁÖ¾úÀ» ¶§¿¡ ³ëµåÀÇ ÆíÁýÀ» °³½ÃÇÕ´Ï´Ù.

ÀÌ ¸Þ¼­µå´Â Æнº°¡ À¯È¿ÇÏ°í, °¡½ÃÀÌ´Ù°í º¾´Ï´Ù.


checkForClickInExpandControl

protected void checkForClickInExpandControl(TreePath  path,
                                            int mouseX,
                                            int mouseY)
mouseX ¹× mouseY°¡ row Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â ¿µ¿ª¿¡ ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼­µå´Â ÇàÀÇ Àü°³ »óŸ¦ ¹Ù²ß´Ï´Ù.


isLocationInExpandControl

protected boolean isLocationInExpandControl(TreePath  path,
                                            int mouseX,
                                            int mouseY)
mouseX ¹× mouseY°¡ ³ëµåÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â ÇàÀÇ ¿µ¿ª¿¡ ÀÖ¾î, row¿¡ ÀÖ´Â ³ëµå°¡ ÀÙÀ» ³ªÅ¸³»Áö ¾Ê´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.


handleExpandControlClick

protected void handleExpandControlClick(TreePath  path,
                                        int mouseX,
                                        int mouseY)
»ç¿ëÀÚ°¡ ƯÁ¤ÀÇ ÇàÀ» Ŭ¸¯ÇßÀ» ¶§¿¡ ¸Þ¼¼Áö·Î¼­ º¸³»Á® toggleExpandState¸¦ È£ÃâÇÕ´Ï´Ù.


toggleExpandState

protected void toggleExpandState(TreePath  path)
path°¡ Àü°³µÇÁö ¾ÊÀº °æ¿ì¿¡ ±×°ÍÀ» Àü°³ÇÕ´Ï´Ù. path°¡ Àü°³µÇ°í ÀÖ´Â °æ¿ì´Â ÇàÀ» ¼ö³³ÇÕ´Ï´Ù. ÆнºÀÇ Àü°³½Ã¿¡ JTree°¡ ½ºÅ©·Ñ ÇÏ´Â °æ¿ì, ÇÒ ¼ö ÀÖ´Â ÇÑ ¸¹Àº ÀÚ½ÄÀÌ °¡½Ã°¡ µÇµµ·Ï ensureRowsAreVisible°¡ È£ÃâµË´Ï´Ù. ensureRowsAreVisible´Â path °¡½Ã ºÎºÐÀÇ ÃÖÇÏÁ¤µµ±îÁö ½ºÅ©·Ñ ÇÕ´Ï´Ù.


isToggleSelectionEvent

protected boolean isToggleSelectionEvent(MouseEvent  event)
true°¡ µ¹·ÁÁÖ°íÁ³À» °æ¿ì, ³ëµå»óÀÇ ¸¶¿ì½º À̺¥Æ®¿¡ ±Ù°ÅÇØ ¸¶¿ì½º¾Æ·¡ÀÇ ÇุÀÌ ¼±ÅÃÀ» ±³Ã¼µË´Ï´Ù.


isMultiSelectEvent

protected boolean isMultiSelectEvent(MouseEvent  event)
true°¡ µ¹·ÁÁÖ°íÁ³À» °æ¿ì, ³ëµå»óÀÇ ¸¶¿ì½º À̺¥Æ®°¡ ¿¨Ä¿ Æ÷ÀÎÆ®·ÎºÎÅÍ ¼±Åõ˴ϴÙ.


isToggleEvent

protected boolean isToggleEvent(MouseEvent  event)
true°¡ µ¹·ÁÁÖ°íÁ³À» °æ¿ì, ¸¶¿ì½º¾Æ·¡ÀÇ ÇàÀÌ À̺¥Æ®¿¡ ±Ù°ÅÇØ ±³Ã¼µË´Ï´Ù. ÀÌ ¸Þ¼­µå´Â checkForClickInExpandControl ÈÄ¿¡ ºÒ·Á°¡ À§°ªÀÌ Àü°³ (¹Ù²Ù°í) ÄÁÆ®·ÑÀÌ ¾Æ´Ñ °ÍÀ» ³ªÅ¸³À´Ï´Ù.


selectPathForEvent

protected void selectPathForEvent(TreePath  path,
                                  MouseEvent  event)
ƯÁ¤ÀÇ Çà¿¡¼­ÀÇ MouseEvent¿¡ ±Ù°ÅÇØ ¼±ÅÃÀ» °»½ÅÇϱâ À§Çؼ­ ¸Þ¼¼Áö·Î¼­ º¸³»Áý´Ï´Ù. À̺¥Æ®°¡ ¼±Åà º¯È¯ À̺¥Æ®ÀÇ °æ¿ì, ÇàÀÌ ¼±Åà ¶Ç´Â ¼±Åà ÇØÁ¦µË´Ï´Ù. À̺¥Æ®°¡ º¹¼ö ¼±Åà À̺¥Æ®¸¦ ³ªÅ¸³»´Â °æ¿ì, ¼±ÅÃÀº ¿¨Ä¿ Æ÷ÀÎÆ®·ÎºÎÅÍ °»½ÅµË´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â ÇàÀÌ ¼±ÅõǾî À̺¥Æ®°¡ º¯È¯ À̺¥Æ®¸¦ ³ªÅ¸³»´Â °æ¿ì´Â ÇàÀÌ Àü°³ ¶Ç´Â ¼ö³³µË´Ï´Ù.


isLeaf

protected boolean isLeaf(int row)
¹Ýȯ°ª:
row ³ëµå°¡ ÀÙÀÇ °æ¿ì´Â true

JavaTM 2 Platform
Standard Ed. 5.0

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