JavaTM 2
Platform
Std.  Ed.  v1. 4.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 ¿¡ ÀÇÇÑ ±¸ÇöÀÔ´Ï´Ù.


ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä
 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 ()
          Ä³½¬¿¡ ÀúÀåµÇ°í ÀÖ´Â »çÀÌÁ ¹«È¿¿Í ¸¶Å© ÇØ,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 ¸¦ paint Çϱâ À§Çؼ­ »ç¿ëµË´Ï´Ù.


preferredSize

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


validCachedPreferredSize

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


treeState

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


drawingCache

protected Hashtable  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)
Ŭ·¡½º ComponentUI ÀÇ ±â¼ú:
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI delegateÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. °¢ ¼­ºê Ŭ·¡½º´Â ±× ÀÚüÀÇ Á¤ÀûÀÎ createUI ¸Þ¼Òµå¸¦ Á¦°øÇØ, ±× UI delegateÀÇ ¼­ºê Ŭ·¡½ºÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÙ Çʿ䰡 ÀÖ½À´Ï´Ù. UI delegateÀÇ ¼­ºê Ŭ·¡½º°¡ »óÅ ¾øÀ½ÀÇ °æ¿ì, º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. UI delegateÀÌ »óÅ ÀÖ´Â °æ¿ì, ÄÄÆÛ³ÍÆ® ¸¶´Ù »õ·Î¿î ÀνºÅϽº¸¦ µ¹·ÁÁÙ Çʿ䰡 ÀÖ½À´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â È£ÃâÇØ¼± ¾È µÇ±â ¶§¹®¿¡, ±× µðÆúÆ® ±¸ÇöÀº ¿¡·¯¸¦ ½½·Î¿ì ÇÕ´Ï´Ù.


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)
ÆÐ½ºÀÇ ¸¶Áö¸· Ç׸ñÀÌ Ç¥Çö µÇ´Â label ºÎºÐÀ» µÑ·¯½Î´Â 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 delegateÀ¸·Î¼­ ÀνºÅç µÇ°í ÀÖÀ» ¶§ ºÒ·Á °©´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ÀÌÇϸ¦ Æ÷ÇÔÇÑ Look & Feel ¿ëÀÇ ÄÄÆÛ³ÍÆ®¸¦ ¿ÏÀüÇÏ°Ô ±¸¼ºÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
  1. Ä®¶ó, ÆùÆ®, º¸´õ, ¾ÆÀÌÄÜ, ºÒÅõ¸íÇÔ µî ¸ðµç µðÆúÆ® ÇÁ·ÎÆÛƼÀÇ °ªÀ» ÄÄÆÛ³ÍÆ®¿¡ ÀνºÅç ÇÑ´Ù. °¡´ÉÇÑ °æ¿ì´Â Ŭ¶óÀÌ¾ðÆ® ÇÁ·Î±×·¥¿¡ ÀÇÇØ ÃʱâÈ­µÈ ÇÁ·ÎÆÛƼÀÇ °ªÀ» ¿À¹ö¶óÀ̵å(override) ÇØ¼­´Â ¾È µÈ´Ù
  2. Çʿ信 µû¶ó¼­, ÄÄÆÛ³ÍÆ®¿¡ LayoutManager ¸¦ ÀνºÅç ÇÑ´Ù
  3. ÇÊ¿äÇÑ ¼­ºê ÄÄÆÛ³ÍÆ®¸¦, ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â Ãß°¡ÇÑ´Ù
  4. À̺¥Æ® ûÃëÀÚ¸¦, ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â ÀνºÅç ÇÑ´Ù
  5. ÄÄÆÛ³ÍÆ®ÀÇ ÇÁ·ÎÆÛƼÀÇ º¯°æÀ» ÀûÀýÈ÷ °ËÃâÇØ, ÀÀ´äÇϱâ À§Çؼ­,PropertyChangeListener ¸¦ ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â ÀνºÅç ÇÑ´Ù
  6. Űº¸µå UI (¹«¸­ °üÀý ¸ð´ÖÅ©, È£¶ûÀÌ ¿ë±âµî)¸¦, ÄÄÆÛ³ÍÆ®¿¡ ÀνºÅç ÇÑ´Ù
  7. ÀûÀýÇÑ ÀνºÅϽºÀÇ µ¥ÀÌÅ͸¦ ÃʱâÈ­ÇÑ´Ù

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

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ uninstallUI
ÆÄ¶ó¹ÌÅÍ:
c - ÀÌ UI delegateÀÌ »èÁ¦µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, 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 ¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ paint ÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ComponentUI.update ¸Þ¼Òµå·ÎºÎÅÍ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®°¡ paint µÉ ¶§ ºÒ·Á °©´Ï´Ù. ¼­ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ÁöÁ¤µÈ Graphics ¿ÀºêÁ§Æ®¸¦ »ç¿ëÇØ ÄÄÆÛ³ÍÆ®ÀÇ ³»¿ëÀ» Ç¥Çö ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ paint
ÆÄ¶ó¹ÌÅÍ:
g - paintó°¡ µÇ´Â Graphics ¹®¸Æ
c - paint µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, 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)
´Ù¸®ÀÇ ¼öÆò ºÎºÐÀ» paint ÇÕ´Ï´Ù. ¸®½Ã¹ö´Â clipBounds ³ª insets ¸¦ º¯°æÇÏ´Â °ÍÀº ¿ë¼­µÇÁö ¾Ê½À´Ï´Ù.

ÁÖ: ·çÆ®°¡ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì,parentRow ´Â -1 ÀÌ µÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.


paintVerticalPartOfLeg

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


paintExpandControl

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


paintRow

protected void paintRow(Graphics  g,
                        Rectangle  clipBounds,
                        Insets  insets,
                        Rectangle  bounds,
                        TreePath  path,
                        int row,
                        boolean isExpanded,
                        boolean hasBeenExpanded,
                        boolean isLeaf)
ÇàÀÇ ·»´õ¸µ ºÎºÐÀ» paint ÇÕ´Ï´Ù. ¸®½Ã¹ö´Â 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)
¼öÁ÷¼±À» paint ÇÕ´Ï´Ù.


paintHorizontalLine

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


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)

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 ÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â area¿¡ ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼Òµå´Â ÇàÀÇ Àü°³ »óŸ¦ ¹Ù²ß´Ï´Ù.


isLocationInExpandControl

protected boolean isLocationInExpandControl(TreePath  path,
                                            int mouseX,
                                            int mouseY)
mouseX ¹× mouseY °¡ ³ëµåÀÇ Àü°³ ¶Ç´Â ¼ö³³¿¡ »ç¿ëµÇ´Â ÇàÀÇ area¿¡ ÀÖ¾î,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
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

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.