JavaTM 2
Platform
Std.  Ed.  v1. 4.0

javax.swing
Ŭ·¡½º JTree

java.lang.Object 
  |
  +--java.awt.Component 
        |
        +--java.awt.Container 
              |
              +--javax.swing.JComponent 
                    |
                    +--javax.swing.JTree
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
Accessible , ImageObserver , MenuContainer , Scrollable , Serializable

public class JTree
extends JComponent
implements Scrollable , Accessible

°èÃþ µ¥ÀÌÅͼ¼Æ®¸¦ ¾Æ¿ìÆ®¶óÀÎÀ¸·Î Ç¥½ÃÇÏ´Â ÄÁÆ®·ÑÀÔ´Ï´Ù. ŽºÅ© ÁöÇâÀÇ ¸Þ´º¾ó ¹× Æ®¸®ÀÇ »ç¿ë¿¹¿¡ ´ëÇØ¼­´Â ¡¸The Java Tutorial¡¹ÀÇ¡¸How to Use Trees¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.

Æ®¸®ÀÇ Æ¯Á¤ÀÇ ³ëµå´Â ³ëµå ¹× ¸ðµç »óÀ§ ³ëµå¸¦ ĸ½¶È­ÇÏ´Â ¿ÀºêÁ§Æ®ÀÎ TreePath, ¶Ç´Â Ç¥½Ã areaÀÇ °¢ ÇàÀÌ 1 °³ÀÇ ³ëµå¸¦ Ç¥½ÃÇϴ ǥ½ÃÇà¿¡ ÀÇÇØ ½Äº°µË´Ï´Ù. ¡¸Àü°³µÇ¾ú´Ù¡¹³ëµå´Â ±× ¾ÆÀ̸¦ Ç¥½ÃÇÕ´Ï´Ù. ¡¸¼ö³³µÇ¾ú´Ù¡¹³ëµå´Â ¾ÆÀ̸¦ ¼û±é´Ï´Ù. ¡¸¼û°ÜÁ³´Ù¡¹³ëµå´Â ¼ö³³µÈ ºÎ¸ð¾Æ·¡¿¡ ÀÖ½À´Ï´Ù. ¸ðµç ¡¸Ç¥½Ã °¡´É¡¹³ëµåÀÇ ºÎ¸ð´Â Àü°³µË´Ï´Ù¸¸ Ç¥½ÃµÇ´Â °æ¿ì·Î ¿©°ÜÁöÁö ¾Ê´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ¡¸Ç¥½Ã¡¹³ëµå´Â Ç¥½Ã °¡´ÉÇϰí, Ç¥½Ã area¿¡ ÀÖ½À´Ï´Ù.

´ÙÀ½ÀÇ JTree ¸Þ¼Òµå´Â ¡¸visible¡¹¸¦ »ç¿ëÇØ ¡¸displayed¡¹¸¦ ³ªÅ¸³À´Ï´Ù.

JTree ÀÇ ´ÙÀ½ÀÇ ¸Þ¼Òµå´Â ¡¸visible¡¹¸¦ »ç¿ëÇØ ¡¸viewable¡¹¸¦ ³ªÅ¸³À´Ï´Ù (Àü°³µÈ ºÎ¸ð¾Æ·¡).

¾ðÁ¦ ¼±ÅÃÀÌ º¯°æµÇ¾ú´ÂÁö¸¦ ¾Ë°í ½ÍÀº °æ¿ì´Â TreeSelectionListener ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇØ,addTreeSelectionListener ¸Þ¼Òµå¸¦ »ç¿ëÇØ ±× ÀνºÅϽº¸¦ Ãß°¡ÇÕ´Ï´Ù. valueChanged ´Â ¼±ÅÃÀÌ º¯°æµÇ¾úÀ» ¶§¿¡ ºÒ·Á °©´Ï´Ù. Áï, À¯Àú°¡ °°Àº ³ëµå¸¦ 2 ȸ Ŭ¸¯ÇßÀ» ¶§¿¡ valueChanged ´Â ÇÑ ¹ø¸¸ ºÒ·Á °©´Ï´Ù.

³ëµå°¡ ¼±Åõǰí ÀÖ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¿¡ °ü°è¾øÀÌ, ´õºí Ŭ¸¯ À̺¥Æ® ¶Ç´Â À¯Àú°¡ ³ëµå¸¦ Ŭ¸¯ÇßÀ» ¶§¸¦ ¾Ë°í ½ÍÀº °æ¿ì´Â ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù.

final JTree tree = ...;
MouseListener ml = new MouseAdapter() {
public void mousePressed(MouseEvent e) {
int selRow = tree.getRowForLocation(e.getX(), e.getY());
TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());
if(selRow ! = -1) {
if(e.getClickCount() == 1) {
mySingleClick(selRow, selPath);
             }
else if(e.getClickCount() == 2) {
myDoubleClick(selRow, selPath);
             }
         }
     }
 };
tree.addMouseListener(ml);
ÁÖ: ÀÌ ¿¹´Â ÆÐ½º¿Í ÇàÀÇ ¾çÂÊ ¸ðµÎ¸¦ ÃëµæÇÕ´Ï´Ù¸¸, ÇÊ¿äÇÑ (ºÐ)Æí¸¸À» ÃëµæÇØ ÁÖ¼¼¿ä.

JTree ¸¦ »ç¿ëÇØ º¹ÇÕ ³ëµå (¿¹¸¦ µé¾î, ±×·¡ÇÈ ¾ÆÀÌÄÜ ¹× ÅØ½ºÆ®ÀÇ ¾çÂÊ ¸ðµÎ¸¦ °¡Áö´Â ³ëµå)¸¦ Ç¥½ÃÇÏ·Á¸é ,TreeCellRenderer ¸¦ ¼­ºê Ŭ·¡½ºÈ­ÇØ,setCellRenderer(javax.swing.tree.TreeCellRenderer) ¸¦ »ç¿ëÇØ Æ®¸®¿¡ ±×°ÍÀ» »ç¿ëÇÏ´Â °ÍÀ» Áö½ÃÇÕ´Ï´Ù. º¹ÇÕ ³ëµå¸¦ ÆíÁýÇÏ·Á¸é ,TreeCellEditor ¸¦ ¼­ºê Ŭ·¡½ºÈ­ÇØ,setCellEditor(javax.swing.tree.TreeCellEditor) ¸¦ »ç¿ëÇÕ´Ï´Ù.

¸ðµç JComponent Ŭ·¡½º¿Í °°ÀÌ,InputMap ¿Í ActionMap ¸¦ »ç¿ëÇØ Action ¿ÀºêÁ§Æ®¿Í KeyStroke ¸¦ °ü·ÃÁö¾î ÁöÁ¤ÇÑ Á¶°ÇÀ¸·Î ¾×¼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖ½À´Ï´Ù.

Ç¥ÁØÀÇ Look & Feel (L&F) Ç¥ÇöÀ¸·Î ÀÌ ÄÄÆÛ³ÍÆ®°¡ »ç¿ëÇϴ Űº¸µåÀÇ Å°¿¡ ´ëÇØ¼­´Â JTree ÀÇ Å°ÀÇ ÇÒ´çÀ» ÂüÁ¶ÇØ ÁÖ¼¼¿ä.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿Í ȣȯÀº ¾Æ´Ï°Ô µÉ ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ÀÇ ¼­Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÁ¯ 1.4 ÀÌÈÄ´Â java.beans ÆÐŰÁö¿¡ ¸ðµç JavaBeansTM ÀÇ Àå±â ±â¾ïÀÌ ¼­Æ÷Æ®µË´Ï´Ù. XMLEncoder ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.


ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä
protected  class JTree.AccessibleJTree
          ÀÌ Å¬·¡½º´Â JTree Ŭ·¡½º¿ëÀÇ À¯Àú º¸Á¶ ±â´ÉÀÇ ¼­Æ÷Æ®¸¦ ±¸ÇöÇϰí ÀÖ½À´Ï´Ù.
static class JTree.DynamicUtilTreeNode
          DynamicUtilTreeNode ´Â º¤ÅÍ, ÇØ½Ã Å×À̺í, ¹è¿­, ¹× ij¸¯ÅÍ ¶óÀÎÀ» ·¦ ÇØ, Çʿ信 µû¶ó¼­ ÀûÀýÇÑ ¾ÆÀÌ Æ®¸® ³ëµå¸¦ ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù.
protected static class JTree.EmptySelectionModel
          EmptySelectionModel ´Â ¾î¶² ¼±Åõµ Çã°¡ÇÏÁö ¾Ê´Â TreeSelectionModel ÀÔ´Ï´Ù.
protected  class JTree.TreeModelHandler
          ¸ðµ¨À» °¨½ÃÇØ, ³ëµå°¡ »èÁ¦ ¶Ç´Â º¯°æµÇ¾úÀ» °æ¿ì¿¡ °Å±â¿¡ ÀÀÇØexpandedState ¸¦ °»½ÅÇÕ´Ï´Ù.
protected  class JTree.TreeSelectionRedirector
          JTree ¸¦ ¼Ò½º·Î¼­ »õ·Î¿î TreeSelectionEvent ¸¦ »ý¼ºÇØ, ±×°ÍÀ» ¸ðµç ûÃëÀÚ¿¡°Ô Àü¼Û ÇÕ´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
 
Ŭ·¡½º java.awt. Container À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
 
Ŭ·¡½º java.awt. Component À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º
Component.BltBufferStrategy , Component.FlipBufferStrategy
 
ÇʵåÀÇ °³¿ä
static String ANCHOR_SELECTION_PATH_PROPERTY
          ¿¨Ä¿ ¼±Åà ÆÐ½ºÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
static String CELL_EDITOR_PROPERTY
          cellEditor ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
static String CELL_RENDERER_PROPERTY
          cellRenderer ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  TreeCellEditor cellEditor
          ¿£Æ®¸®ÀÇ ¿¡µðÅÍÀÔ´Ï´Ù.
protected  TreeCellRenderer cellRenderer
          ³ëµå¸¦ Ç¥Çö Çϱâ À§Çؼ­ »ç¿ëµÇ´Â ¼¿ÀÔ´Ï´Ù.
protected  boolean editable
          Æ®¸®¸¦ ÆíÁýÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¸¦ ³ªÅ¸³À´Ï´Ù.
static String EDITABLE_PROPERTY
          editable ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
static String EXPANDS_SELECTED_PATHS_PROPERTY
          ¼±Åà ÆÐ½ºÀÇ ÇÁ·ÎÆÛƼ¸¦ Àü°³ÇÏ´Â ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
static String INVOKES_STOP_CELL_EDITING_PROPERTY
          messagesStopCellEditing ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  boolean invokesStopCellEditing
          true ÀÇ °æ¿ì, ¼±ÅÃÀÇ º¯°æ, Æ®¸®³»ÀÇ µ¥ÀÌÅÍÀÇ º¯°æ, ¶Ç´Â ´Ù¸¥ ¼ö´Ü¿¡ ÀÇÇØ ÆíÁýÀÌ Á¤ÁöµÇ¾úÀ» ¶§¿¡,stopCellEditing °¡ ºÒ·Á °¡ º¯°æÀÌ º¸Á¸µË´Ï´Ù.
static String LARGE_MODEL_PROPERTY
          largeModel ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  boolean largeModel
          ÀÌ Æ®¸®°¡ Å« ¸ðµ¨Àΰ¡ ¾î¶²°¡¸¦ ³ªÅ¸³À´Ï´Ù.
static String LEAD_SELECTION_PATH_PROPERTY
          leadSelectionPath ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
static String ROOT_VISIBLE_PROPERTY
          rootVisible ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  boolean rootVisible
          ·çÆ® ³ëµå°¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì´Â true, ±× ¾ÆÀ̰¡ ÃÖ»óÁ¤µµÀÇ °¡½Ã ³ëµåÀÎ °æ¿ì´Â false ÀÔ´Ï´Ù.
static String ROW_HEIGHT_PROPERTY
          rowHeight ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  int rowHeight
           °¢ Ç¥½ÃÇà¿¡ »ç¿ëÇÏ´Â ³ôÀÌÀÔ´Ï´Ù.
static String SCROLLS_ON_EXPAND_PROPERTY
          scrollsOnExpand ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  boolean scrollsOnExpand
          true ÀÇ °æ¿ì, ³ëµå°¡ Àü°³µÇ¸é(ÀÚ), ±× ¸ðµç ÇÏÀ§ ³ëµå°¡ °¡½Ã°¡ µÇµµ·Ï(µíÀÌ) ½ºÅ©·Ñ µË´Ï´Ù.
static String SELECTION_MODEL_PROPERTY
          selectionModel ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  TreeSelectionModel selectionModel
          ÀÌ Æ®¸®³»ÀÇ ¼±ÅÃµÈ ³ëµå¼¼Æ®¸¦ ¸ðµ¨È­ÇÕ´Ï´Ù.
protected  JTree.TreeSelectionRedirector selectionRedirector
          »õ·Î¿î À̺¥Æ®¸¦ »ý¼ºÇØ, ±×°ÍÀ» selectionListeners ¿¡ °Ç³×ÁÝ´Ï´Ù.
static String SHOWS_ROOT_HANDLES_PROPERTY
          showsRootHandles ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  boolean showsRootHandles
          ÇÚµéÀÌ Æ®¸®ÀÇ ÃÖ»óÁ¤µµ ·¹º§¿¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì´Â true ÀÔ´Ï´Ù.
static String TOGGLE_CLICK_COUNT_PROPERTY
          toggleClickCount ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  int toggleClickCount
          ³ëµå¸¦ Àü°³Çϱâ À§Çؼ­ ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ ¼öÀÔ´Ï´Ù.
static String TREE_MODEL_PROPERTY
          treeModel ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  TreeModel treeModel
          ÀÌ ¿ÀºêÁ§Æ®¿¡ ÀÇÇØ Ç¥½ÃµÇ´Â Æ®¸®¸¦ Á¤ÀÇÇÏ´Â ¸ðµ¨ÀÔ´Ï´Ù.
protected  TreeModelListener treeModelListener
          expandedState ¸¦ °»½ÅÇÕ´Ï´Ù.
static String VISIBLE_ROW_COUNT_PROPERTY
          visibleRowCount ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
protected  int visibleRowCount
          ÇÑ ¹ø¿¡ °¡½Ã·Î ÇÏ´Â Çà¼öÀÔ´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent ¿¡¼­ »ó¼Ó¹ÞÀº Çʵå
accessibleContext , listenerList , TOOL_TIP_TEXT_KEY , ui , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW
 
Ŭ·¡½º java.awt. Component ¿¡¼­ »ó¼Ó¹ÞÀº Çʵå
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT
 
ÀÎÅÍÆäÀ̽º java.awt.image. ImageObserver ¿¡¼­ »ó¼Ó¹ÞÀº Çʵå
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH
 
»ý¼ºÀÚÀÇ °³¿ä
JTree ()
          »ùÇà ¸ðµ¨À» °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù.
JTree (Hashtable  value)
          Hashtable ·ÎºÎÅÍ »ý¼ºµÈ, ·çÆ®¸¦ Ç¥½ÃÇÏÁö ¾Ê´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù.
JTree (Object [] value)
          ÁöÁ¤µÈ ¹è¿­ÀÇ °¢ ¿ä¼Ò¸¦, Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº »õ·Î¿î ·çÆ® ³ëµåÀÇ ¾ÆÀ̷μ­ °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù.
JTree (TreeModel  newModel)
          ·çÆ® ³ëµå¸¦ Ç¥½ÃÇÏ´Â JTree ÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù.
JTree (TreeNode  root)
          ÁöÁ¤µÈ TreeNode ¸¦ ·çÆ®¿¡ °¡Áö´Â ·çÆ® ³ëµå¸¦ Ç¥½ÃÇÏ´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù.
JTree (TreeNode  root, boolean asksAllowsChildren)
          ·çÆ® ³ëµå¸¦ Ç¥½ÃÇØ, ³ëµå°¡ ÀÙ³ëµåÀΰ¡ ¾î¶²°¡¸¦ ÁöÁ¤µÈ ¹æ¹ýÀ¸·Î °áÁ¤ÇÏ´Â ÁöÁ¤µÈ TreeNode ¸¦ ·çÆ®·Î¼­ °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù.
JTree (Vector  value)
          ÁöÁ¤µÈ Vector ÀÇ °¢ ¿ä¼Ò¸¦, Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº »õ·Î¿î ·çÆ® ³ëµåÀÇ ¾ÆÀ̷μ­ °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 
¸Þ¼ÒµåÀÇ °³¿ä
 void addSelectionInterval (int index0, int index1)
          index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ÆÐ½º¸¦ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù.
 void addSelectionPath (TreePath  path)
          ÁöÁ¤µÈ TreePath ¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù.
 void addSelectionPaths (TreePath [] paths)
          ÆÐ½ºÀÇ ¹è¿­ÀÇ °¢ ÆÐ½º¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù.
 void addSelectionRow (int row)
          ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ÆÐ½º¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù.
 void addSelectionRows (int[] rows)
          ÁöÁ¤µÈ °¢ Çà¿¡ ÀÖ´Â ÆÐ½º¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù.
 void addTreeExpansionListener (TreeExpansionListener  tel)
          TreeExpansion À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.
 void addTreeSelectionListener (TreeSelectionListener  tsl)
          TreeSelection À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.
 void addTreeWillExpandListener (TreeWillExpandListener  tel)
          TreeWillExpand À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.
 void cancelEditing ()
          ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» Ãë¼ÒÇÕ´Ï´Ù.
 void clearSelection ()
          ¼±ÅÃÀ» Ŭ¸®¾î ÇÕ´Ï´Ù.
protected  void clearToggledPaths ()
          ±³Ã¼µÈ Æ®¸® ÆÐ½ºÀÇ Ä³½¬¸¦ Ŭ¸®¾î ÇÕ´Ï´Ù.
 void collapsePath (TreePath  path)
          ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ¼ö³³µÇ¾î Ç¥½Ã °¡´ÉÇÏ°Ô µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù.
 void collapseRow (int row)
          ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ³ëµå°¡ ¼ö³³µÇ°í ÀÖ°Ô ÇÕ´Ï´Ù.
 String convertValueToText (Object  value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
          ·»´õ¸µ¿¡ ÀÇÇØ ºÒ·Á °¡ ÁöÁ¤µÈ °ªÀ» ÅØ½ºÆ®·Î º¯È¯ÇÕ´Ï´Ù.
protected static TreeModel createTreeModel (Object  value)
          ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¸¦ ·¦ ÇÏ´Â TreeModel ¸¦ µ¹·ÁÁÝ´Ï´Ù.
protected  TreeModelListener createTreeModelListener ()
          TreeModelHandler ÀÇ ÀνºÅϽº¸¦ »ý¼ºÇØ µ¹·ÁÁÝ´Ï´Ù.
 void expandPath (TreePath  path)
          ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ Àü°³µÇ¾î Ç¥½Ã °¡´ÉÇÏ°Ô µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù.
 void expandRow (int row)
          ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ³ëµå°¡ Àü°³µÇ¾î Ç¥½Ã °¡´ÉÇÏ°Ô µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù.
 void fireTreeCollapsed (TreePath  path)
          ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù.
 void fireTreeExpanded (TreePath  path)
          ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù.
 void fireTreeWillCollapse (TreePath  path)
          ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù.
 void fireTreeWillExpand (TreePath  path)
          ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù.
protected  void fireValueChanged (TreeSelectionEvent  e)
          ÅëÁöÀÇ Àü´Þ ´ë»óÀ», ÁöÁ¤µÈ À̺¥Æ® ŸÀÔÀ¸·Î µî·ÏÇÑ ¸ðµç ûÃëÀÚ¿¡°Ô ÅëÁöÇÕ´Ï´Ù.
 AccessibleContext getAccessibleContext ()
          ÀÌ JTree ¿¡ °ü·ÃÇÑ AccessibleContext ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreePath getAnchorSelectionPath ()
          ¿¨Ä¿¿Í ½Äº°µÈ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreeCellEditor getCellEditor ()
          Æ®¸®ÀÇ ¿£Æ®¸®¸¦ ÆíÁýÇϱâ À§Çؼ­ »ç¿ëµÇ´Â ¿¡µðÅ͸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreeCellRenderer getCellRenderer ()
           °¢ ¼¿À» Ç¥Çö Çϰí ÀÖ´Â ÇöÀçÀÇ TreeCellRenderer ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreePath getClosestPathForLocation (int x, int y)
          x, y ¿¡ °¡Àå °¡±î¿î ³ëµåÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 int getClosestRowForLocation (int x, int y)
          x, y ¿¡ °¡Àå °¡±î¿î ³ëµåÀÇ ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.
protected static TreeModel getDefaultTreeModel ()
          »ùÇà TreeModel ¸¦ »ý¼ºÇØ, ±×°ÍÀ» µ¹·ÁÁÝ´Ï´Ù.
protected  Enumeration getDescendantToggledPaths (TreePath  parent)
          parent ÀÇ ÇÏÀ§ ³ëµåÀ̸ç, Àü°³µÇ°í ÀÖ´Â TreePaths ÀÇ Enumeration ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean getDragEnabled ()
          dragEnabled ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁØ´Ù
 TreePath getEditingPath ()
          ÇöÀç ÆíÁýµÇ°í ÀÖ´Â ¿ä¼ÒÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 Enumeration getExpandedDescendants (TreePath  parent)
          ÇöÀç Àü°³µÇ°í ÀÖ´Â ÆÐ½º parent ÀÇ ÇÏÀ§ ³ëµå·ÎºÎÅÍ ¿Ï¼ºµÇ´Â Enumeration ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean getExpandsSelectedPaths ()
          expandsSelectedPaths ÇÁ·ÎÆÛƼ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean getInvokesStopCellEditing ()
          ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ ¹«¾ùÀ» ÇÏ´ÂÁö¸¦ ³ªÅ¸³»´Â ÀεðÄÉÀÌÅÍ(indicator)¸¦ µ¹·ÁÁÝ´Ï´Ù.
 Object getLastSelectedPathComponent ()
          ÇöÀçÀÇ ¼±ÅÃÀÇ ÃÖÃÊÀÇ ³ëµå¿¡ ÀÖ´Â ¸¶Áö¸· ÆÄ½ºÄÜÆ÷³ÙÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreePath getLeadSelectionPath ()
          ¸®µå¿Í ½Äº°µÈ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 int getLeadSelectionRow ()
          ¸®µå ÆÐ½º¿¡ ´ëÀÀÇÏ´Â ÇàÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 int getMaxSelectionRow ()
          ¼±Åõǰí ÀÖ´Â ¸¶Áö¸· ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.
 int getMinSelectionRow ()
          ¼±Åõǰí ÀÖ´Â ÃÖÃÊÀÇ ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.
 TreeModel getModel ()
          µ¥ÀÌÅ͸¦ Á¦°øÇϰí ÀÖ´Â TreeModel ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreePath getNextMatch (String  prefix, int startingRow, Position.Bias  bias)
          prefix ·Î ½ÃÀ۵Ǵ ´ÙÀ½ÀÇ Æ®¸® ¿ä¼Ò¿¡ÀÇ TreePath ¸¦ µ¹·ÁÁÝ´Ï´Ù.
protected  TreePath [] getPathBetweenRows (int index0, int index1)
          index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ÆÐ½º¸¦ ³ªÅ¸³»´Â JTreePath ÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù.
 Rectangle getPathBounds (TreePath  path)
          ÁöÁ¤µÈ ³ëµå°¡ Ç¥Çö µÇ´Â Rectangle ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreePath getPathForLocation (int x, int y)
          ÁöÁ¤µÈ À§Ä¡¿¡ ÀÖ´Â ³ëµåÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreePath getPathForRow (int row)
          ÁöÁ¤µÈ ÇàÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 Dimension getPreferredScrollableViewportSize ()
          JTree ÀÇ ÀûÀýÇÑ Ç¥½Ã »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù.
 Rectangle getRowBounds (int row)
          ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ³ëµå°¡ Ç¥Çö µÇ´Â Rectangle ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 int getRowCount ()
          ÇöÀç Ç¥½ÃµÇ°í ÀÖ´Â Çà¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.
 int getRowForLocation (int x, int y)
          ÁöÁ¤µÈ À§Ä¡¿¡ ÀÖ´Â ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.
 int getRowForPath (TreePath  path)
          ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ Ç¥½ÃÇÏ´Â ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.
 int getRowHeight ()
          °¢ ÇàÀÇ ³ôÀ̸¦ µ¹·ÁÁÝ´Ï´Ù.
 int getScrollableBlockIncrement (Rectangle  visibleRect, int orientation, int direction)
           ¡¸ºí·Ï¡¹ÁõºÐÄ¡ÀÇ ¾çÀ» µ¹·ÁÁÝ´Ï´Ù.
 boolean getScrollableTracksViewportHeight ()
          Æ®¸®ÀÇ ÀûÀýÇÑ ³ôÀ̰¡ ºäÆ÷Æ®ÀÇ ³ôÀ̺¸´Ù ÀÛÁö ¾ÊÀº ÇÑ, false ¸¦ µ¹·ÁÁÖ¾î, ºäÆ÷Æ®ÀÇ ³ôÀ̰¡ Å×À̺íÀÇ ³ôÀ̸¦ °áÁ¤ÇÏÁö ¾Ê´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù.
 boolean getScrollableTracksViewportWidth ()
          Æ®¸®ÀÇ ÀûÀýÇÑ ÆøÀÌ ºäÆ÷Æ®ÀÇ Æøº¸´Ù ÀÛÁö ¾ÊÀº ÇÑ, false ¸¦ µ¹·ÁÁÖ¾î, ºäÆ÷Æ®ÀÇ ÆøÀÌ Å×À̺íÀÇ ÆøÀ» °áÁ¤ÇÏÁö ¾Ê´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù.
 int getScrollableUnitIncrement (Rectangle  visibleRect, int orientation, int direction)
          ½ºÅ©·Ñ½Ã¿¡ ÁõºÐ ÇÏ´Â ¾çÀ» µ¹·ÁÁÝ´Ï´Ù.
 boolean getScrollsOnExpand ()
          scrollsOnExpand ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù.
 int getSelectionCount ()
          ¼±ÅÃµÈ ³ëµåÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreeSelectionModel getSelectionModel ()
          ¼±ÅÃÀÇ ¸ðµ¨À» µ¹·ÁÁÝ´Ï´Ù.
 TreePath getSelectionPath ()
          ¼±ÅÃµÈ ÃÖÃÊÀÇ ³ëµåÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 TreePath [] getSelectionPaths ()
          ¼±ÅÃµÈ ¸ðµç °ªÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 int[] getSelectionRows ()
          ÇöÀç ¼±Åà ¶°³¯ ¼ö ÀÖ¾î ¸ðµç ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.
 boolean getShowsRootHandles ()
          showsRootHandles ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù.
 int getToggleClickCount ()
          ³ëµå¸¦ Àü°³Çϰųª ´ÝÀ» ¶§ ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ È¸¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.
 String getToolTipText (MouseEvent  event)
          JComponent ÀÇ getToolTipText ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ·»´õ¸µÀÇ ÈùÆ® (ÅØ½ºÆ® ¼¼Æ®°¡ ÀÖ´Â °æ¿ì)¸¦ »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇÕ´Ï´Ù.
 TreeExpansionListener [] getTreeExpansionListeners ()
          addTreeExpansionListener()¿¡ ÀÇÇØ ÀÌ JTree ¿¡ Ãß°¡µÈ ¸ðµçTreeExpansionListener ÀÇ ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.
 TreeSelectionListener [] getTreeSelectionListeners ()
          addTreeSelectionListener()¿¡ ÀÇÇØ ÀÌ JTree ¿¡ Ãß°¡µÈ ¸ðµçTreeSelectionListener ÀÇ ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.
 TreeWillExpandListener [] getTreeWillExpandListeners ()
          addTreeWillExpandListener()¿¡ ÀÇÇØ ÀÌ JTree ¿¡ Ãß°¡µÈ ¸ðµçTreeWillExpandListener ÀÇ ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.
 TreeUI getUI ()
          ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â L&F ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
 String getUIClassID ()
          ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â L&F Ŭ·¡½ºÀÇ À̸§À» µ¹·ÁÁÝ´Ï´Ù.
 int getVisibleRowCount ()
          Ç¥½Ã area¿¡ Ç¥½ÃµÇ°í ÀÖ´Â Çà¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean hasBeenExpanded (TreePath  path)
          ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ Áö±Ý±îÁö Àü°³µÇ¾ú´ø ÀûÀÌ ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isCollapsed (int row)
          ÁöÁ¤µÈ Ç¥½ÃÇà¿¡ ÀÖ´Â ³ëµå°¡ ¼ö³³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isCollapsed (TreePath  path)
          ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â °ªÀÌ ÇöÀç ¼ö³³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isEditable ()
          Æ®¸®°¡ ÆíÁý °¡´ÉÇÑ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isEditing ()
          Æ®¸®°¡ ÆíÁýµÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isExpanded (int row)
          ÁöÁ¤µÈ Ç¥½ÃÇà¿¡ ÀÖ´Â ³ëµå°¡ ÇöÀç Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isExpanded (TreePath  path)
          ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ÇöÀç Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isFixedRowHeight ()
           °¢ Ç¥½ÃÇàÀÇ ³ôÀ̰¡ °íÁ¤ »çÀÌÁîÀÇ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isLargeModel ()
          Æ®¸®°¡ Å« ¸ðµ¨¿ëÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isPathEditable (TreePath  path)
          isEditable ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isPathSelected (TreePath  path)
          ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â Ç׸ñÀÌ ÇöÀç ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isRootVisible ()
          Æ®¸®ÀÇ ·çÆ® ³ëµå°¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isRowSelected (int row)
          Çà¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isSelectionEmpty ()
          ¼±Åà ¹üÀ§°¡ ÇöÀçºñ¾úÀ» °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 boolean isVisible (TreePath  path)
          ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â °ªÀÌ ÇöÀç Ç¥½Ã °¡´ÉÇÑ °æ¿ì, Áï ±×°ÍÀÌ ·çÆ®ÀÎÁö ±× ¸ðµç ºÎ¸ð°¡ Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 void makeVisible (TreePath  path)
          ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ÇöÀç Ç¥½Ã °¡´ÉÇϵµ·Ï ÇÕ´Ï´Ù.
protected  String paramString ()
          ÀÌ JTree ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» µ¹·ÁÁÝ´Ï´Ù.
protected  boolean removeDescendantSelectedPaths (TreePath  path, boolean includePath)
          path ÀÇ ÇÏÀ§ ³ëµåÀÎ ¼±ÅÃµÈ ¸ðµç ÆÐ½º¸¦ »èÁ¦ÇÕ´Ï´Ù.
protected  void removeDescendantToggledPaths (Enumeration  toRemove)
          toRemove ¿¡ ÀÖ´Â Àü°³µÇ°í ÀÖ´Â TreePaths ÀÇ ÇÏÀ§ ³ëµå¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeSelectionInterval (int index0, int index1)
          index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ³ëµå¸¦ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.
 void removeSelectionPath (TreePath  path)
          ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.
 void removeSelectionPaths (TreePath [] paths)
          ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.
 void removeSelectionRow (int row)
          À妽º row ¿¡ ÀÖ´Â ÇàÀ» ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.
 void removeSelectionRows (int[] rows)
          ÁöÁ¤µÈ °¢ ÇàÀ¸·Î ¼±Åõǰí ÀÖ´Â ÇàÀ» »èÁ¦ÇÕ´Ï´Ù.
 void removeTreeExpansionListener (TreeExpansionListener  tel)
          TreeExpansion À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeTreeSelectionListener (TreeSelectionListener  tsl)
          TreeSelection ûÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeTreeWillExpandListener (TreeWillExpandListener  tel)
          TreeWillExpand À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void scrollPathToVisible (TreePath  path)
          ÆÐ½º¿¡ ÀÖ´Â ¸ðµç ÆÄ½ºÄÜÆ÷³ÙÆ® (¸¶Áö¸· ÆÄ½ºÄÜÆ÷³ÙÆ®´Â Á¦¿ÜÇÏ´Ù)¸¦ Àü°³ÇØ, ÆÐ½º¿¡ ÀÇÇØ ÁöÁ¤µÇ´Â ³ëµå°¡ Ç¥½ÃµÇµµ·Ï(µíÀÌ) ½ºÅ©·Ñ ÇÕ´Ï´Ù.
 void scrollRowToVisible (int row)
          Çà¿¡ ÀÇÇØ ½Äº°µÇ´Â Ç׸ñÀÌ Ç¥½ÃµÉ ¶§±îÁö ½ºÅ©·Ñ ÇÕ´Ï´Ù.
 void setAnchorSelectionPath (TreePath  newPath)
          ¿¨Ä¿·Î¼­ ½Äº°ÇÏ´Â ÆÐ½º¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setCellEditor (TreeCellEditor  cellEditor)
          ¼¿ ¿¡µðÅ͸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setCellRenderer (TreeCellRenderer  x)
           °¢ ¼¿À» Ç¥Çö Çϱâ À§Çؼ­ »ç¿ëÇÏ´Â TreeCellRenderer ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setDragEnabled (boolean b)
          dragEnabled ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setEditable (boolean flag)
          Æ®¸®°¡ ÆíÁý °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ ¼³Á¤ÇÕ´Ï´Ù.
protected  void setExpandedState (TreePath  path, boolean state)
          ÀÌ JTree ÀÇ Àü°³ »óŸ¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setExpandsSelectedPaths (boolean newValue)
          expandsSelectedPaths ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setInvokesStopCellEditing (boolean newValue)
          Æ®¸®ÀÇ ´Ù¸¥ ³ëµåÀÇ ¼±ÅÃ, Æ®¸®ÀÇ µ¥ÀÌÅÍÀÇ º¯°æ, ¶Ç´Â ´Ù¸¥ ¼ö´Ü¿¡ ÀÇÇØ ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ ¹«¾ùÀ» ÇÏ´ÂÁö¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setLargeModel (boolean newValue)
          UI °¡ Å« ¸ðµ¨À» »ç¿ëÇÒÁö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù (¸ðµç UI °¡ À̰ÍÀ» ±¸ÇöÇÏ´Â °ÍÀº ¾Æ´Ï´Ù).
 void setLeadSelectionPath (TreePath  newPath)
          ¸®µå·Î¼­ ½Äº°ÇÏ´Â ÆÐ½º¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setModel (TreeModel  newModel)
          µ¥ÀÌÅ͸¦ Á¦°øÇÏ´Â TreeModel ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setRootVisible (boolean rootVisible)
          TreeModel ÀÇ ·çÆ® ³ëµå°¡ °¡½ÃÀΰ¡ ¾î¶²°¡¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 void setRowHeight (int rowHeight)
           °¢ ¼¿ÀÇ ³ôÀ̸¦ Çȼ¿ ´ÜÀ§·Î ¼³Á¤ÇÕ´Ï´Ù.
 void setScrollsOnExpand (boolean newValue)
          scrollsOnExpand ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setSelectionInterval (int index0, int index1)
          index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù.
 void setSelectionModel (TreeSelectionModel  selectionModel)
          Æ®¸®ÀÇ ¼±Åà ¸ðµ¨À» ¼³Á¤ÇÕ´Ï´Ù.
 void setSelectionPath (TreePath  path)
          ÁöÁ¤µÈ ÆÐ½º·Î ½Äº°µÇ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù.
 void setSelectionPaths (TreePath [] paths)
          ÁöÁ¤µÈ ÆÐ½ºÀÇ ¹è¿­¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù.
 void setSelectionRow (int row)
          ÁöÁ¤µÈ Ç¥½ÃÇà¿¡ ÀÖ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù.
 void setSelectionRows (int[] rows)
          ÁöÁ¤µÈ °¢ Ç¥½ÃÇà¿¡ ´ëÀÀÇÏ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù.
 void setShowsRootHandles (boolean newValue)
          ³ëµå ÇÚµéÀ» Ç¥½ÃÇÒÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â showsRootHandles ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setToggleClickCount (int clickCount)
          ³ëµå¸¦ Àü°³Çϰųª ´Ý±â À§Çؼ­(¶§¹®¿¡) ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ È¸¼ö¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setUI (TreeUI  ui)
          ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â L&F ¿ÀºêÁ§Æ®¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setVisibleRowCount (int newCount)
          Ç¥½ÃÇÏ´Â Çà¼ö¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void startEditingAtPath (TreePath  path)
          ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ¼±ÅÃÇØ, ÆíÁýÀ» °³½ÃÇÕ´Ï´Ù.
 boolean stopEditing ()
          ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» Á¾·áÇÕ´Ï´Ù.
 void treeDidChange ()
          Æ®¸®ÀÇ º¯°æÀÌ, °æ°è¸¦ »çÀÌÁî º¯°æÇÒ Çʿ䰡 ÀÖÀ» ¸¸Å­ Å©Áö¸¸, Àü°³µÈ ³ëµå ¼¼Æ®¸¦ »èÁ¦ÇÒ Á¤µµ°¡ ¾Æ´Ñ °æ¿ì¿¡ º¸³»Áý´Ï´Ù (¿¹¸¦ µé¾î, ³ëµå°¡ Àü°³µÇ´ÂÁö ¼ö³³µÇ¾úÀ» ¶§, ¶Ç´Â ³ëµå°¡ Æ®¸®¿¡ »ðÀԵǾúÀ» ¶§).
 void updateUI ()
          L&F °¡ º¯°æµÇ¾ú´Ù°í ÇÏ´Â UIManager ·ÎºÎÅÍÀÇ ÅëÁöÀÔ´Ï´Ù.
 
Ŭ·¡½º javax.swing. JComponent ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
addAncestorListener , addNotify , addPropertyChangeListener , addPropertyChangeListener , addVetoableChangeListener , computeVisibleRect , contains , createToolTip , disable , enable , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , firePropertyChange , fireVetoableChange , getActionForKeyStroke , getActionMap , getAlignmentX , getAlignmentY , getAncestorListeners , getAutoscrolls , getBorder , getBounds , getClientProperty , getComponentGraphics , getConditionForKeyStroke , getDebugGraphicsOptions , getDefaultLocale , getGraphics , getHeight , getInputMap , getInputMap , getInputVerifier , getInsets , getInsets , getListeners , getLocation , getMaximumSize , getMinimumSize , getNextFocusableComponent , getPreferredSize , getPropertyChangeListeners , getPropertyChangeListeners , getRegisteredKeyStrokes , getRootPane , getSize , getToolTipLocation , getToolTipText , getTopLevelAncestor , getTransferHandler , getVerifyInputWhenFocusTarget , getVetoableChangeListeners , getVisibleRect , getWidth , getX , getY , grabFocus , isDoubleBuffered , isLightweightComponent , isManagingFocus , isMaximumSizeSet , isMinimumSizeSet , isOpaque , isOptimizedDrawingEnabled , isPaintingTile , isPreferredSizeSet , isRequestFocusEnabled , isValidateRoot , paint , paintBorder , paintChildren , paintComponent , paintImmediately , paintImmediately , print , printAll , printBorder , printChildren , printComponent , processComponentKeyEvent , processKeyBinding , processKeyEvent , processMouseMotionEvent , putClientProperty , registerKeyboardAction , registerKeyboardAction , removeAncestorListener , removeNotify , removePropertyChangeListener , removePropertyChangeListener , removeVetoableChangeListener , repaint , repaint , requestDefaultFocus , requestFocus , requestFocus , requestFocusInWindow , requestFocusInWindow , resetKeyboardActions , reshape , revalidate , scrollRectToVisible , setActionMap , setAlignmentX , setAlignmentY , setAutoscrolls , setBackground , setBorder , setDebugGraphicsOptions , setDefaultLocale , setDoubleBuffered , setEnabled , setFont , setForeground , setInputMap , setInputVerifier , setMaximumSize , setMinimumSize , setNextFocusableComponent , setOpaque , setPreferredSize , setRequestFocusEnabled , setToolTipText , setTransferHandler , setUI , setVerifyInputWhenFocusTarget , setVisible , unregisterKeyboardAction , update
 
Ŭ·¡½º java.awt. Container ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
add , add , add , add , add , addContainerListener , addImpl , applyComponentOrientation , areFocusTraversalKeysSet , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getContainerListeners , getFocusTraversalKeys , getFocusTraversalPolicy , getLayout , insets , invalidate , isAncestorOf , isFocusCycleRoot , isFocusCycleRoot , isFocusTraversalPolicySet , layout , list , list , locate , minimumSize , paintComponents , preferredSize , printComponents , processContainerEvent , processEvent , remove , remove , removeAll , removeContainerListener , setFocusCycleRoot , setFocusTraversalKeys , setFocusTraversalPolicy , setLayout , transferFocusBackward , transferFocusDownCycle , validate , validateTree
 
Ŭ·¡½º java.awt. Component ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
action , add , addComponentListener , addFocusListener , addHierarchyBoundsListener , addHierarchyListener , addInputMethodListener , addKeyListener , addMouseListener , addMouseMotionListener , addMouseWheelListener , bounds , checkImage , checkImage , coalesceEvents , contains , createImage , createImage , createVolatileImage , createVolatileImage , disableEvents , dispatchEvent , enable , enableEvents , enableInputMethods , getBackground , getBounds , getColorModel , getComponentListeners , getComponentOrientation , getCursor , getDropTarget , getFocusCycleRootAncestor , getFocusListeners , getFocusTraversalKeysEnabled , getFont , getFontMetrics , getForeground , getGraphicsConfiguration , getHierarchyBoundsListeners , getHierarchyListeners , getIgnoreRepaint , getInputContext , getInputMethodListeners , getInputMethodRequests , getKeyListeners , getLocale , getLocation , getLocationOnScreen , getMouseListeners , getMouseMotionListeners , getMouseWheelListeners , getName , getParent , getPeer , getSize , getToolkit , getTreeLock , gotFocus , handleEvent , hasFocus , hide , imageUpdate , inside , isBackgroundSet , isCursorSet , isDisplayable , isEnabled , isFocusable , isFocusOwner , isFocusTraversable , isFontSet , isForegroundSet , isLightweight , isShowing , isValid , isVisible , keyDown , keyUp , list , list , list , location , lostFocus , mouseDown , mouseDrag , mouseEnter , mouseExit , mouseMove , mouseUp , move , nextFocus , paintAll , postEvent , prepareImage , prepareImage , processComponentEvent , processFocusEvent , processHierarchyBoundsEvent , processHierarchyEvent , processInputMethodEvent , processMouseEvent , processMouseWheelEvent , remove , removeComponentListener , removeFocusListener , removeHierarchyBoundsListener , removeHierarchyListener , removeInputMethodListener , removeKeyListener , removeMouseListener , removeMouseMotionListener , removeMouseWheelListener , repaint , repaint , repaint , resize , resize , setBounds , setBounds , setComponentOrientation , setCursor , setDropTarget , setFocusable , setFocusTraversalKeysEnabled , setIgnoreRepaint , setLocale , setLocation , setLocation , setName , setSize , setSize , show , show , size , toString , transferFocus , transferFocusUpCycle
 
Ŭ·¡½º java.lang. Object ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

ÇʵåÀÇ »ó¼¼

treeModel

protected transient TreeModel  treeModel
ÀÌ ¿ÀºêÁ§Æ®¿¡ ÀÇÇØ Ç¥½ÃµÇ´Â Æ®¸®¸¦ Á¤ÀÇÇÏ´Â ¸ðµ¨ÀÔ´Ï´Ù.


selectionModel

protected transient TreeSelectionModel  selectionModel
ÀÌ Æ®¸®³»ÀÇ ¼±ÅÃµÈ ³ëµå¼¼Æ®¸¦ ¸ðµ¨È­ÇÕ´Ï´Ù.


rootVisible

protected boolean rootVisible
·çÆ® ³ëµå°¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì´Â true, ±× ¾ÆÀ̰¡ ÃÖ»óÁ¤µµÀÇ °¡½Ã ³ëµåÀÎ °æ¿ì´Â false ÀÔ´Ï´Ù.


cellRenderer

protected transient TreeCellRenderer  cellRenderer
³ëµå¸¦ Ç¥Çö Çϱâ À§Çؼ­ »ç¿ëµÇ´Â ¼¿ÀÔ´Ï´Ù. null ÀÇ °æ¿ì, UI ´Â µðÆúÆ®ÀÇ cellRenderer ¸¦ »ç¿ëÇÕ´Ï´Ù.


rowHeight

protected int rowHeight
°¢ Ç¥½ÃÇà¿¡ »ç¿ëÇÏ´Â ³ôÀÌÀÔ´Ï´Ù. 0 ÀÌÇÏÀÇ °æ¿ì, ·»´õ¸µÀÌ °¢ ÇàÀÇ ³ôÀ̸¦ °áÁ¤ÇÕ´Ï´Ù.


showsRootHandles

protected boolean showsRootHandles
ÇÚµéÀÌ Æ®¸®ÀÇ ÃÖ»óÁ¤µµ ·¹º§¿¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì´Â true ÀÔ´Ï´Ù.

ÇÚµé°ú´Â ³ëµåÀÇ ¿·¿¡ Ç¥½ÃµÇ´Â ÀÛÀº ¾ÆÀÌÄÜÀ̸ç, À¯Àú°¡ Ŭ¸¯Çϸé(ÀÚ) ³ëµå°¡ Àü°³µÇ´ÂÁö ¼ö³³µË´Ï´Ù. °øÅëÀÇ ÀÎÅÍÆäÀ̽º´Â Àü°³ÇÒ ¼ö ÀÖ´Â ³ëµå·Î Ç÷¯½º ºÎÈ£ (+)¸¦ Ç¥½ÃÇØ, ¼ö³³ÇÒ ¼ö ÀÖ´Â ³ëµå¿¡¼­´Â ¸¶À̳ʽº ºÎÈ£ (-)¸¦ Ç¥½ÃÇÕ´Ï´Ù. ÇÚµéÀº ÃÖ»óÁ¤µµ ·¹º§º¸´Ù ¾Æ·¡ÀÇ ³ëµå·Î Ç×»ó Ç¥½ÃµË´Ï´Ù.

rootVisible ÀÇ ¼³Á¤ÀÌ ·çÆ® ³ëµåÀÇ Ç¥½Ã¸¦ ÁöÁ¤ÇÏ´Â °æ¿ì´Â ±×°ÍÀÌ ÃÖ»óÁ¤µµ ·¹º§ÀÇ À¯ÀÏÇÑ ³ëµåÀÔ´Ï´Ù. ·çÆ® ³ëµå°¡ Ç¥½ÃµÇÁö ¾Ê´Â °æ¿ì, ±× ¸ðµç ¾ÆÀ̰¡ Æ®¸®ÀÇ ÃÖ»óÁ¤µµ ·¹º§¿¡ ÀÖ½À´Ï´Ù. ÇÚµéÀº ÃÖ»óÁ¤µµ ÀÌ¿ÜÀÇ ³ëµå·Î Ç×»ó Ç¥½ÃµË´Ï´Ù.

·çÆ® ³ëµå°¡ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì, Åë»óÀº ÀÌ °ªÀ» true ·Î ¼³Á¤ÇÕ´Ï´Ù. true ·Î ¼³Á¤ÇÏÁö ¾ÊÀ¸¸é Æ®¸®´Â ¸®½ºÆ®¿Í °°ÀÌ Ç¥½ÃµÇ¾î À¯Àú´Â ¡¸¸®½ºÆ® ¿£Æ®¸®¡¹°¡ ½ÇÁ¦·Î´Â Æ®¸® ³ëµåÀÎ °ÍÀ» ÀνÄÇÒ ¼ö ¾ø½À´Ï´Ù.

°ü·Ã Ç׸ñ:
rootVisible

selectionRedirector

protected transient JTree.TreeSelectionRedirector  selectionRedirector
»õ·Î¿î À̺¥Æ®¸¦ »ý¼ºÇØ, ±×°ÍÀ» selectionListeners ¿¡ °Ç³×ÁÝ´Ï´Ù.


cellEditor

protected transient TreeCellEditor  cellEditor
¿£Æ®¸®ÀÇ ¿¡µðÅÍÀÔ´Ï´Ù. µðÆúÆ®´Â null (Æ®¸®´Â ÆíÁýÇÒ ¼ö ¾ø´Ù)ÀÔ´Ï´Ù.


editable

protected boolean editable
Æ®¸®¸¦ ÆíÁýÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¸¦ ³ªÅ¸³À´Ï´Ù. µðÆúÆ®´Â false ÀÔ´Ï´Ù.


largeModel

protected boolean largeModel
ÀÌ Æ®¸®°¡ Å« ¸ðµ¨Àΰ¡ ¾î¶²°¡¸¦ ³ªÅ¸³À´Ï´Ù. À̰ÍÀº ÄÚµå ÃÖÀûÈ­ÀÇ ¼³Á¤ÀÔ´Ï´Ù. Å« ¸ðµ¨Àº ¼¿ÀÇ ³ôÀ̰¡ ¸ðµç ³ëµå·Î °°Àº °æ¿ì¿¡ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Å« ¸ðµ¨À» »ç¿ëÇϸé(ÀÚ), UI ´Â Á¤º¸¸¦ °ÅÀÇ Ä³½¬¿¡ ±âÀÔÇÏÁö ¾Ê°í ±× ´ë½Å¿¡ °è¼ÓÀûÀ¸·Î ¸ðµ¨¿¡ Àü¼Û ÇÕ´Ï´Ù. Å« ¸ðµ¨ÀÌ ¾ø´Â °æ¿ì, UI ´Â ´ëºÎºÐÀÇ Á¤º¸¸¦ ij½¬¿¡ ±âÀÔÇØ, ±× °á°úÀûÀ¸·Î ¸ðµ¨¿¡ ´ëÇÑ ¸Þ¼ÒµåÀÇ È£ÃâÀÌ Àû°Ô µË´Ï´Ù.

ÀÌ °ªÀº UI ¿¡ÀÇ ´Ü¼øÇÑ Á¦¾ÈÀÔ´Ï´Ù. ¸ðµç UI °¡ ÀÌ °ªÀ» ÀÌ¿ëÇÏ´Â °ÍÀº ¾Æ´Õ´Ï´Ù. µðÆúÆ® °ªÀº false ÀÔ´Ï´Ù.


visibleRowCount

protected int visibleRowCount
ÇÑ ¹ø¿¡ °¡½Ã·Î ÇÏ´Â Çà¼öÀÔ´Ï´Ù. ÀÌ °ªÀº Scrollable ÀÎÅÍÆäÀ̽º·Î »ç¿ëµË´Ï´Ù. ÀÌ °ªÀº Ç¥½Ã areaÀÇ ÀûÀýÇÑ »çÀÌÁ °áÁ¤ÇÕ´Ï´Ù.


invokesStopCellEditing

protected boolean invokesStopCellEditing
true ÀÇ °æ¿ì, ¼±ÅÃÀÇ º¯°æ, Æ®¸®³»ÀÇ µ¥ÀÌÅÍÀÇ º¯°æ, ¶Ç´Â ´Ù¸¥ ¼ö´Ü¿¡ ÀÇÇØ ÆíÁýÀÌ Á¤ÁöµÇ¾úÀ» ¶§¿¡,stopCellEditing °¡ ºÒ·Á °¡ º¯°æÀÌ º¸Á¸µË´Ï´Ù. false ÀÇ °æ¿ì,cancelCellEditing °¡ ºÒ·Á °¡ º¯°æÀº ÆÄ±âµË´Ï´Ù. µðÆúÆ®´Â false ÀÔ´Ï´Ù.


scrollsOnExpand

protected boolean scrollsOnExpand
true ÀÇ °æ¿ì, ³ëµå°¡ Àü°³µÇ¸é(ÀÚ), ±× ¸ðµç ÇÏÀ§ ³ëµå°¡ °¡½Ã°¡ µÇµµ·Ï(µíÀÌ) ½ºÅ©·Ñ µË´Ï´Ù.


toggleClickCount

protected int toggleClickCount
³ëµå¸¦ Àü°³Çϱâ À§Çؼ­ ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ ¼öÀÔ´Ï´Ù.


treeModelListener

protected transient TreeModelListener  treeModelListener
expandedState ¸¦ °»½ÅÇÕ´Ï´Ù.


CELL_RENDERER_PROPERTY

public static final String  CELL_RENDERER_PROPERTY
cellRenderer ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

TREE_MODEL_PROPERTY

public static final String  TREE_MODEL_PROPERTY
treeModel ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

ROOT_VISIBLE_PROPERTY

public static final String  ROOT_VISIBLE_PROPERTY
rootVisible ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

SHOWS_ROOT_HANDLES_PROPERTY

public static final String  SHOWS_ROOT_HANDLES_PROPERTY
showsRootHandles ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

ROW_HEIGHT_PROPERTY

public static final String  ROW_HEIGHT_PROPERTY
rowHeight ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

CELL_EDITOR_PROPERTY

public static final String  CELL_EDITOR_PROPERTY
cellEditor ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

EDITABLE_PROPERTY

public static final String  EDITABLE_PROPERTY
editable ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

LARGE_MODEL_PROPERTY

public static final String  LARGE_MODEL_PROPERTY
largeModel ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

SELECTION_MODEL_PROPERTY

public static final String  SELECTION_MODEL_PROPERTY
selectionModel ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

VISIBLE_ROW_COUNT_PROPERTY

public static final String  VISIBLE_ROW_COUNT_PROPERTY
visibleRowCount ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

INVOKES_STOP_CELL_EDITING_PROPERTY

public static final String  INVOKES_STOP_CELL_EDITING_PROPERTY
messagesStopCellEditing ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

SCROLLS_ON_EXPAND_PROPERTY

public static final String  SCROLLS_ON_EXPAND_PROPERTY
scrollsOnExpand ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

TOGGLE_CLICK_COUNT_PROPERTY

public static final String  TOGGLE_CLICK_COUNT_PROPERTY
toggleClickCount ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

LEAD_SELECTION_PATH_PROPERTY

public static final String  LEAD_SELECTION_PATH_PROPERTY
leadSelectionPath ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.3
°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

ANCHOR_SELECTION_PATH_PROPERTY

public static final String  ANCHOR_SELECTION_PATH_PROPERTY
¿¨Ä¿ ¼±Åà ÆÐ½ºÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.3
°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

EXPANDS_SELECTED_PATHS_PROPERTY

public static final String  EXPANDS_SELECTED_PATHS_PROPERTY
¼±Åà ÆÐ½ºÀÇ ÇÁ·ÎÆÛƼ¸¦ Àü°³ÇÏ´Â ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.3
°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡
»ý¼ºÀÚÀÇ »ó¼¼

JTree

public JTree()
»ùÇà ¸ðµ¨À» °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. Æ®¸®°¡ »ç¿ëÇÏ´Â µðÆúÆ® ¸ðµ¨Àº ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇ ³ëµå·Î¼­ Á¤ÀÇÇÕ´Ï´Ù.

°ü·Ã Ç׸ñ:
DefaultTreeModel.asksAllowsChildren

JTree

public JTree(Object [] value)
ÁöÁ¤µÈ ¹è¿­ÀÇ °¢ ¿ä¼Ò¸¦, Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº »õ·Î¿î ·çÆ® ³ëµåÀÇ ¾ÆÀ̷μ­ °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. µðÆúÆ®¿¡¼­´Â Æ®¸®´Â ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇ ³ëµå·Î¼­ Á¤ÀÇÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
value - Object ÀÇ ¹è¿­
°ü·Ã Ç׸ñ:
DefaultTreeModel.asksAllowsChildren

JTree

public JTree(Vector  value)
ÁöÁ¤µÈ Vector ÀÇ °¢ ¿ä¼Ò¸¦, Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº »õ·Î¿î ·çÆ® ³ëµåÀÇ ¾ÆÀ̷μ­ °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. µðÆúÆ®¿¡¼­´Â Æ®¸®´Â ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇ ³ëµå·Î¼­ Á¤ÀÇÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
value - Vector
°ü·Ã Ç׸ñ:
DefaultTreeModel.asksAllowsChildren

JTree

public JTree(Hashtable  value)
Hashtable ·ÎºÎÅÍ »ý¼ºµÈ, ·çÆ®¸¦ Ç¥½ÃÇÏÁö ¾Ê´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. HashTable ÀÇ Å°¿Í °ªÀÇ Á¶ÀÇ Ä¡ÃøÀÌ »õ·Î¿î ·çÆ® ³ëµåÀÇ ¾ÆÀ̰¡ µË´Ï´Ù. µðÆúÆ®¿¡¼­´Â Æ®¸®´Â ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇÀÇ ³ëµå·Î¼­ Á¤ÀÇÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
value - Hashtable
°ü·Ã Ç׸ñ:
DefaultTreeModel.asksAllowsChildren

JTree

public JTree(TreeNode  root)
ÁöÁ¤µÈ TreeNode ¸¦ ·çÆ®¿¡ °¡Áö´Â ·çÆ® ³ëµå¸¦ Ç¥½ÃÇÏ´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. µðÆúÆ®¿¡¼­´Â Æ®¸®´Â ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇÀÇ ³ëµå·Î¼­ Á¤ÀÇÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
root - TreeNode ¿ÀºêÁ§Æ®
°ü·Ã Ç׸ñ:
DefaultTreeModel.asksAllowsChildren

JTree

public JTree(TreeNode  root,
             boolean asksAllowsChildren)
·çÆ® ³ëµå¸¦ Ç¥½ÃÇØ, ³ëµå°¡ ÀÙ³ëµåÀΰ¡ ¾î¶²°¡¸¦ ÁöÁ¤µÈ ¹æ¹ýÀ¸·Î °áÁ¤ÇÏ´Â ÁöÁ¤µÈ TreeNode ¸¦ ·çÆ®·Î¼­ °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
root - TreeNode ¿ÀºêÁ§Æ®
asksAllowsChildren - false ÀÇ °æ¿ì, ¾ÆÀ̸¦ °¡ÁöÁö ¾Ê´Â ¸ðµç ³ëµå°¡ ÀÙ³ëµå. true ÀÇ °æ¿ì, ¾ÆÀ̸¦ Çã°¡ÇÏÁö ¾Ê´Â ³ëµå¸¸ÀÌ ÀÙ³ëµå
°ü·Ã Ç׸ñ:
DefaultTreeModel.asksAllowsChildren

JTree

public JTree(TreeModel  newModel)
·çÆ® ³ëµå¸¦ Ç¥½ÃÇÏ´Â JTree ÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. Æ®¸®´Â ÁöÁ¤µÈ µ¥ÀÌÅÍ ¸ðµ¨À» »ç¿ëÇØ »ý¼ºµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newModel - µ¥ÀÌÅÍ ¸ðµ¨·Î¼­ »ç¿ëÇÏ´Â TreeModel
¸Þ¼ÒµåÀÇ »ó¼¼

getDefaultTreeModel

protected static TreeModel  getDefaultTreeModel()
»ùÇà TreeModel ¸¦ »ý¼ºÇØ, ±×°ÍÀ» µ¹·ÁÁÝ´Ï´Ù. ¹«¾ùÀΰ¡¸¦ Èï¹Ì·Ó°Ô º¸ÀÌ°Ô Çϱâ À§Çؼ­(¶§¹®¿¡), ÁÖ·Î Beanbuilder ·Î »ç¿ëµË´Ï´Ù.

¹Ýȯ°ª:
µðÆúÆ®ÀÇ TreeModel

createTreeModel

protected static TreeModel  createTreeModel(Object  value)
ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¸¦ ·¦ ÇÏ´Â TreeModel ¸¦ µ¹·ÁÁÝ´Ï´Ù. ¿ÀºêÁ§Æ®°¡ ´ÙÀ½ÀÇ ¾î¶² °ÍÀΰ¡ÀÇ °æ¿ìÀÔ´Ï´Ù. »õ·Î¿î ·çÆ® ³ëµå´Â °¢ ¿ÀºêÁ§Æ®¸¦ ¾ÆÀ̷μ­ ÀÛ¼ºµË´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì, »õ·Î¿î ·çÆ®´Â ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¸¦ ±× °ªÀ¸·Î ÇØ¼­ ÀÛ¼ºµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
value - TreeModel ÀÇ ±âÃʷμ­ »ç¿ëµÇ´Â Object
¹Ýȯ°ª:
ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¸¦ ·¦ ÇÏ´Â TreeModel

getUI

public TreeUI  getUI()
ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â L&F ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â TreeUI ¿ÀºêÁ§Æ®

setUI

public void setUI(TreeUI  ui)
ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â L&F ¿ÀºêÁ§Æ®¸¦ ¼³Á¤ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
ui - TreeUI ÀÇ L&F ¿ÀºêÁ§Æ®
°ü·Ã Ç׸ñ:
UIDefaults.getUI(javax.swing.JComponent)

updateUI

public void updateUI()
L&F °¡ º¯°æµÇ¾ú´Ù°í ÇÏ´Â UIManager ·ÎºÎÅÍÀÇ ÅëÁöÀÔ´Ï´Ù. ÇöÀçÀÇ UI ¿ÀºêÁ§Æ®¸¦ UIManager ·ÎºÎÅÍÀÇ ÃֽйöÁ¯¿¡ ¿Å°Ü³õ½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ updateUI
°ü·Ã Ç׸ñ:
JComponent.updateUI()

getUIClassID

public String  getUIClassID()
ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â L&F Ŭ·¡½ºÀÇ À̸§À» µ¹·ÁÁÝ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ getUIClassID
¹Ýȯ°ª:
ij¸¯ÅÍ ¶óÀÎ ¡¸TreeUI¡¹
°ü·Ã Ç׸ñ:
JComponent.getUIClassID() , UIDefaults.getUI(javax.swing.JComponent)

getCellRenderer

public TreeCellRenderer  getCellRenderer()
°¢ ¼¿À» Ç¥Çö Çϰí ÀÖ´Â ÇöÀçÀÇ TreeCellRenderer ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
°¢ ¼¿À» Ç¥Çö Çϰí ÀÖ´Â TreeCellRenderer

setCellRenderer

public void setCellRenderer(TreeCellRenderer  x)
°¢ ¼¿À» Ç¥Çö Çϱâ À§Çؼ­ »ç¿ëÇÏ´Â TreeCellRenderer ¸¦ ¼³Á¤ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - °¢ ¼¿À» Ç¥Çö ÇÏ´Â TreeCellRenderer

setEditable

public void setEditable(boolean flag)
Æ®¸®°¡ ÆíÁý °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ ¼³Á¤ÇÕ´Ï´Ù. »õ·Î¿î ¼³Á¤ÀÌ ±âÁ¸ÀÇ ¼³Á¤°ú ´Ù¸¥ °æ¿ì´Â ÇÁ·ÎÆÛƼ º¯°æ À̺¥Æ®¸¦ ¹æ¾Æ¼è ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
flag - boolean Ä¡. Æ®¸®°¡ ÆíÁý °¡´ÉÇÑ °æ¿ì´Â true

isEditable

public boolean isEditable()
Æ®¸®°¡ ÆíÁý °¡´ÉÇÑ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Æ®¸®°¡ ÆíÁý °¡´ÉÇÑ °æ¿ì´Â true

setCellEditor

public void setCellEditor(TreeCellEditor  cellEditor)
¼¿ ¿¡µðÅ͸¦ ¼³Á¤ÇÕ´Ï´Ù. null Ä¡´Â Æ®¸®¸¦ ÆíÁýÇÒ ¼ö ¾ø´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. À̰ÍÀÌ cellEditor ¿¡¼­ÀÇ º¯°æÀ» ³ªÅ¸³»´Â °æ¿ì,propertyChange ¸Þ¼Òµå°¡ ¸ðµç ûÃëÀÚ·Î ºÒ·Á °©´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
cellEditor - »ç¿ëÇÏ´Â TreeCellEditor

getCellEditor

public TreeCellEditor  getCellEditor()
Æ®¸®ÀÇ ¿£Æ®¸®¸¦ ÆíÁýÇϱâ À§Çؼ­ »ç¿ëµÇ´Â ¿¡µðÅ͸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
»ç¿ëÁßÀÇ TreeCellEditor. Æ®¸®¸¦ ÆíÁýÇÒ ¼ö ¾ø´Â °æ¿ì´Â null

getModel

public TreeModel  getModel()
µ¥ÀÌÅ͸¦ Á¦°øÇϰí ÀÖ´Â TreeModel ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
µ¥ÀÌÅ͸¦ Á¦°øÇϰí ÀÖ´Â TreeModel

setModel

public void setModel(TreeModel  newModel)
µ¥ÀÌÅ͸¦ Á¦°øÇÏ´Â TreeModel ¸¦ ¼³Á¤ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newModel - µ¥ÀÌÅ͸¦ Á¦°øÇÏ´Â TreeModel

isRootVisible

public boolean isRootVisible()
Æ®¸®ÀÇ ·çÆ® ³ëµå°¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Æ®¸®ÀÇ ·çÆ® ³ëµå°¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
rootVisible

setRootVisible

public void setRootVisible(boolean rootVisible)
TreeModel ÀÇ ·çÆ® ³ëµå°¡ °¡½ÃÀΰ¡ ¾î¶²°¡¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
rootVisible - Æ®¸®ÀÇ ·çÆ® ³ëµå°¡ Ç¥½ÃµÇ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
rootVisible

setShowsRootHandles

public void setShowsRootHandles(boolean newValue)
³ëµå ÇÚµéÀ» Ç¥½ÃÇÒÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â showsRootHandles ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ÇÁ·ÎÆÛƼÀÇ µðÆúÆ® °ªÀº JTree ÀÇ ÀÛ¼º¿¡ »ç¿ëÇÏ´Â constructor ¿¡ µû¶ó¼­ ´Ù¸¨´Ï´Ù. ÀϺÎÀÇ Look & Feel ¿¡¼­´Â ÇÚµéÀÌ ¼­Æ÷Æ®µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì°¡ ÀÖ½À´Ï´Ù. ±× °æ¿ì, ÀÌ ÇÁ·ÎÆÛƼ´Â ¹«½ÃµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newValue - ·çÆ® ÇÚµéÀ» Ç¥½ÃÇÏÁö ¾Ê´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Âfalse
°ü·Ã Ç׸ñ:
showsRootHandles , getShowsRootHandles()

getShowsRootHandles

public boolean getShowsRootHandles()
showsRootHandles ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
showsRootHandles ÇÁ·ÎÆÛƼÀÇ °ª
°ü·Ã Ç׸ñ:
showsRootHandles

setRowHeight

public void setRowHeight(int rowHeight)
°¢ ¼¿ÀÇ ³ôÀ̸¦ Çȼ¿ ´ÜÀ§·Î ¼³Á¤ÇÕ´Ï´Ù. ÁöÁ¤µÈ °ªÀÌ 0 ÀÌÇÏÀÇ °æ¿ì´Â °¢ ÇàÀÇ ³ôÀÌ¿¡ ´ëÇØ ÇöÀçÀÇ ¼¿ ·»´õ¸µÀÌ Á¶È¸µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
rowHeight - °¢ ¼¿ÀÇ Çȼ¿ ´ÜÀ§ÀÇ ³ôÀÌ

getRowHeight

public int getRowHeight()
°¢ ÇàÀÇ ³ôÀ̸¦ µ¹·ÁÁÝ´Ï´Ù. ¹Ýȯ°ªÀÌ 0 ÀÌÇÏÀÇ °æ¿ì, °¢ ÇàÀÇ ³ôÀÌ´Â ·»´õ¸µ¿¡ ÀÇÇØ °áÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.


isFixedRowHeight

public boolean isFixedRowHeight()
°¢ Ç¥½ÃÇàÀÇ ³ôÀ̰¡ °íÁ¤ »çÀÌÁîÀÇ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
°¢ ÇàÀÇ ³ôÀ̰¡ °íÁ¤ »çÀÌÁîÀÇ °æ¿ì´Â true

setLargeModel

public void setLargeModel(boolean newValue)
UI °¡ Å« ¸ðµ¨À» »ç¿ëÇÒÁö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù (¸ðµç UI °¡ À̰ÍÀ» ±¸ÇöÇÏ´Â °ÍÀº ¾Æ´Ï´Ù). LARGE_MODEL_PROPERTY ÀÇ ÇÁ·ÎÆÛƼ º¯°æÀ» ¹æ¾Æ¼è ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newValue - UI ¿¡ ´ëÇØ¼­ Å« ¸ðµ¨À» Á¦¾ÈÇÏ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
largeModel

isLargeModel

public boolean isLargeModel()
Æ®¸®°¡ Å« ¸ðµ¨¿ëÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Å« ¸ðµ¨ÀÌ Á¦¾ÈµÇ°í ÀÖ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
largeModel

setInvokesStopCellEditing

public void setInvokesStopCellEditing(boolean newValue)
Æ®¸®ÀÇ ´Ù¸¥ ³ëµåÀÇ ¼±ÅÃ, Æ®¸®ÀÇ µ¥ÀÌÅÍÀÇ º¯°æ, ¶Ç´Â ´Ù¸¥ ¼ö´Ü¿¡ ÀÇÇØ ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ ¹«¾ùÀ» ÇÏ´ÂÁö¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ÇÁ·ÎÆÛƼ¸¦ true ·Î ¼³Á¤Çϸé(ÀÚ), ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ º¯°æÀÌ ÀÚµ¿ÀûÀ¸·Î º¸Á¸µË´Ï´Ù.

INVOKES_STOP_CELL_EDITING_PROPERTY ÀÇ ÇÁ·ÎÆÛƼ º¯°æÀ» ¹æ¾Æ¼è ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newValue - true ÀÇ °æ¿ì´Â ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ stopCellEditing °¡ ºÒ·Á °¡ µ¥ÀÌÅͰ¡ º¸Á¸µÈ´Ù. false ÀÇ °æ¿ì´Â cancelCellEditing °¡ ºÒ·Á °¡ º¯°æÀÌ ¾ø¾îÁø´Ù

getInvokesStopCellEditing

public boolean getInvokesStopCellEditing()
ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ ¹«¾ùÀ» ÇÏ´ÂÁö¸¦ ³ªÅ¸³»´Â ÀεðÄÉÀÌÅÍ(indicator)¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
ÆíÁýÀÌ ³¢¾îµé¾îÁö¸é(ÀÚ) ¾î¶»°Ô µÇ´ÂÁö¸¦ ³ªÅ¸³»´Â ÀεðÄÉÀÌÅÍ(indicator)
°ü·Ã Ç׸ñ:
setInvokesStopCellEditing(boolean)

setScrollsOnExpand

public void setScrollsOnExpand(boolean newValue)
scrollsOnExpand ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ÇÁ·ÎÆÛƼ´Â Æ®¸®¸¦ ½ºÅ©·Ñ ÇßÀ» ¶§¿¡, ¼û°ÜÁö°í ÀÖ´ø ¾ÆÀ̸¦ Ç¥½ÃÇÒÁö ¾î¶³Áö¸¦ ³ªÅ¸³À´Ï´Ù. true (µðÆúÆ®)ÀÇ °æ¿ì, ³ëµå¸¦ Àü°³Çϸé(ÀÚ), ÇÏÀ§ ³ëµå°¡ °¡´ÉÇÑ ÇÑ ¸¹ÀÌ °¡½Ã »óŰ¡ µÇµµ·Ï(µíÀÌ) Æ®¸®°¡ ½ºÅ©·Ñ µË´Ï´Ù. ÀϺÎÀÇ Look & Feel ¿¡¼­´Â ³ëµåÀÇ Àü°³½Ã¿¡ ½ºÅ©·ÑÀ» ÇÊ¿ä·Î ÇÏÁö ¾Ê±â ¶§¹®¿¡, ÀÌ ÇÁ·ÎÆÛƼ´Â ¹«½ÃµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newValue - Àü°³½ÃÀÇ ½ºÅ©·ÑÀ» »ç¿ë ºÒ°¡·Î ÇÏ´Â °æ¿ì´Â false, »ç¿ë °¡´ÉÇÏ°Ô ÇÏ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
getScrollsOnExpand()

getScrollsOnExpand

public boolean getScrollsOnExpand()
scrollsOnExpand ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
scrollsOnExpand ÇÁ·ÎÆÛƼÀÇ °ª

setToggleClickCount

public void setToggleClickCount(int clickCount)
³ëµå¸¦ Àü°³Çϰųª ´Ý±â À§Çؼ­(¶§¹®¿¡) ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ È¸¼ö¸¦ ¼³Á¤ÇÕ´Ï´Ù. µðÆúÆ®´Â 2 ȸÀÔ´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.3

getToggleClickCount

public int getToggleClickCount()
³ëµå¸¦ Àü°³Çϰųª ´ÝÀ» ¶§ ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ È¸¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
³ëµå¸¦ Àü°³Çϱâ À§Çؼ­ ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ ¼ö
µµÀÔµÈ ¹öÁ¯:
1.3

setExpandsSelectedPaths

public void setExpandsSelectedPaths(boolean newValue)
expandsSelectedPaths ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. true ÀÇ °æ¿ì¿¡´Â TreeSelectionModel ¶Ç´ÂJTree °¡ Á¦°øÇÏ´Â Ä¿¹ö ¸Þ¼Òµå¿¡ ÀÇÇØ ¾ðÁ¦¶óµµ ¼±ÅÃÀ» º¯°æÇÒ ¼ö ÀÖ¾îTreePath ÀÇ ºÎ¸ð°¡ Àü°³µÇ°í °¡½Ã°¡ µË´Ï´Ù. °¡½Ã¶õ,JTree ÀÇ °¡½Ã ±¸Çü¿¡ ÇÑÇÏÁö ¾Ê°í Ä£ÆÐ½º°¡ Àü°³µÇ°í ÀÖ´Â »óŸ¦ ÀǹÌÇÕ´Ï´Ù. false ÀÇ °æ¿ì, ³ëµå ¼±ÅÃÀ» º¯°æÇϸé(ÀÚ) ºÎ¸ð´Â ¸ðµÎ Àü°³µÇ¾îµµ °¡½Ã·Î´Â µÇÁö ¾Ê½À´Ï´Ù. ¼±Åà ¸ðµ¨ ÆÐ½º¸¦, ¸ðµç ºÎ¸ð¸¦ Àü°³ÇØ Ç×»ó ºñÇ¥½Ã·Î ÇÏ´Â °æ¿ì¿¡´Â Æí¸®ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newValue - expandsSelectedPaths ÀÇ ½Å±ÔÀÇ °ª
µµÀÔµÈ ¹öÁ¯:
1.3

getExpandsSelectedPaths

public boolean getExpandsSelectedPaths()
expandsSelectedPaths ÇÁ·ÎÆÛƼ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¼±Åà º¯°æ¿¡ ÀÇÇØ Ä£ÆÐ½º°¡ Àü°³µÇ´Â °á°ú°¡ µÇ´Â °æ¿ì´Â true
µµÀÔµÈ ¹öÁ¯:
1.3
°ü·Ã Ç׸ñ:
setExpandsSelectedPaths(boolean)

setDragEnabled

public void setDragEnabled(boolean b)
dragEnabled ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ÄÄÆÛ³ÍÆ®·Î ÀÚµ¿ µå·¯±× ó¸® (µå·¯±×£¦µå·ÓÀÇ ÃÖÃÊÀÇ ºÎºÐ)¸¦ »ç¿ë °¡´ÉÇÏ°Ô ÇÏ´Â °æ¿ì´Â ÀÌ ÇÁ·ÎÆÛƼ¸¦ true ·Î ¼³Á¤ÇÕ´Ï´Ù. µå·¯±×·Î ¾î¶°ÇÑ Ã³¸®¸¦ ½Ç½ÃÇÏ·Á¸é ,transferHandler ÇÁ·ÎÆÛƼ¸¦ null ÀÌ¿ÜÀÇ °ªÀ¸·Î ¼³Á¤ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. dragEnabled ÇÁ·ÎÆÛƼÀÇ µðÆúÆ® °ªÀº false ÀÔ´Ï´Ù.

ÀÚµ¿ µå·¯±× 󸮸¦ »ç¿ë °¡´ÉÇÏ°Ô Çϸé(ÀÚ), À¯Àú°¡ ¼±Åà ¹üÀ§»ó¿¡¼­ mouse button¸¦ ´­·¯, ¸î°³ÀÇ Çȼ¿ºÐ ¸¶¿ì½º¸¦ À̵¿ÇßÀ» ¶§¿¡, ´ëºÎºÐÀÇ Look & Feel ·Î µå·¯±×£¦µå·Ó 󸮰¡ ½ÃÀ۵˴ϴÙ. ±× ¶§¹®¿¡, ÀÌ ÇÁ·ÎÆÛƼ¸¦ true ·Î ¼³Á¤Çϸé(ÀÚ), ¼±Åà ¹üÀ§ÀÇ µ¿ÀÛ¿¡ ¹Ì¹¦ÇÑ È¿°ú¸¦ ÁÙ ¼ö°¡ ÀÖ½À´Ï´Ù.

ÀÚµ¿ µå·¯±×£¦µå·ÓÀ» ¼­Æ÷Æ®Çϰí ÀÖÁö ¾Ê´Â ÀϺÎÀÇ Look & Feel ¿¡¼­´Â ÀÌ ÇÁ·ÎÆÛƼ°¡ ¹«½ÃµË´Ï´Ù. ÀÌ·± Á¾·ùÀÇ Look & Feel ¿¡ ´ëÀÀÇÏ·Á¸é ,TransferHandler ÀÇ exportAsDrag ¸Þ¼Òµå¸¦ Á÷Á¢ È£ÃâÇϵµ·Ï(µíÀÌ) ÄÄÆÛ³ÍÆ®¸¦ º¯°æÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
b - dragEnabled ÇÁ·ÎÆÛƼ·Î ¼³Á¤ÇÏ´Â °ª
¿¹¿Ü:
HeadlessException - b °¡ true ·Î GraphicsEnvironment.isHeadless() °¡ true ¸¦ µ¹·ÁÁÖ´Â °æ¿ì
µµÀÔµÈ ¹öÁ¯:
1.4
°ü·Ã Ç׸ñ:
GraphicsEnvironment.isHeadless() , getDragEnabled() , JComponent.setTransferHandler(javax.swing.TransferHandler) , TransferHandler

getDragEnabled

public boolean getDragEnabled()
dragEnabled ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁØ´Ù

¹Ýȯ°ª:
dragEnabled ÇÁ·ÎÆÛƼÀÇ °ª
µµÀÔµÈ ¹öÁ¯:
1.4
°ü·Ã Ç׸ñ:
setDragEnabled(boolean)

isPathEditable

public boolean isPathEditable(TreePath  path)
isEditable ¸¦ µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ÆíÁýÀÌ ½ÃÀ۵DZâ Àü¿¡ UI ·ÎºÎÅÍ ºÒ·Á °¡ ÁöÁ¤µÈ ÆÐ½º¸¦ ÆíÁýÇÒ ¼ö ÀÖ°Ô ÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â »õ·Î¿î ¿¡µðÅ͸¦ ÀÛ¼ºÇÏ´Â ÀÏ ¾øÀÌ ÇÊÅÍ ÆíÁýÀ» Ãß°¡Çϱâ À§ÇÑ »çºêÅ©¶ó»çÀÇ ¿£Æ®¸® Æ÷ÀÎÆ®·Î¼­ Á¦°øµË´Ï´Ù.

¹Ýȯ°ª:
¸ðµç Ä£³ëµå ¹× ±× ³ëµå ÀÚü°¡ ÆíÁý °¡´ÉÇÑ °æ¿ì´Â true
°ü·Ã Ç׸ñ:
isEditable()

getToolTipText

public String  getToolTipText(MouseEvent  event)
JComponent ÀÇ getToolTipText ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ·»´õ¸µÀÇ ÈùÆ® (ÅØ½ºÆ® ¼¼Æ®°¡ ÀÖ´Â °æ¿ì)¸¦ »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇÕ´Ï´Ù.

ÁÖ: JTree °¡ ·»´õ¸µÀÇ Åø ÈùÆ®¸¦ ¿Ã¹Ù¸£°Ô Ç¥½ÃÇϱâ À§Çؼ­´Â JTree °¡ ÄÄÆÛ³ÍÆ®·Î¼­ ToolTipManager ¿¡ µî·ÏµÇ¾î ÀÖÀ» Çʿ䰡 ÀÖ½À´Ï´Ù. µî·ÏÇÏ·Á¸é ,ToolTipManager.sharedInstance(). registerComponent(tree) ¸¦ È£ÃâÇÕ´Ï´Ù. À̰ÍÀº ÀÚµ¿ÀûÀ¸·Î ÇÏÇà ±úÁöÁö ¾Ê½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ getToolTipText
ÆÄ¶ó¹ÌÅÍ:
event - ToolTip ÀÇ Ç¥½Ã¸¦ ±âµ¿ÇÑ MouseEvent
¹Ýȯ°ª:
Åø ÈùÆ®¸¦ ÀúÀåÇϴ ij¸¯ÅÍ ¶óÀÎ. event °¡ null ÀÇ °æ¿ì´Â null

convertValueToText

public String  convertValueToText(Object  value,
                                 boolean selected,
                                 boolean expanded,
                                 boolean leaf,
                                 int row,
                                 boolean hasFocus)
·»´õ¸µ¿¡ ÀÇÇØ ºÒ·Á °¡ ÁöÁ¤µÈ °ªÀ» ÅØ½ºÆ®·Î º¯È¯ÇÕ´Ï´Ù. ÀÌ ±¸ÇöÀº value.toString ¸¦ µ¹·ÁÁÖ¾î, ´Ù¸¥ ¸ðµç Àμö¸¦ ¹«½ÃÇÕ´Ï´Ù. º¯È¯À» Á¦¾îÇÏ·Á¸é , ÀÌ ¸Þ¼Òµå¸¦ ¼­ºê Ŭ·¡½ºÈ­ÇØ, ÇÊ¿äÇÑ ÀÓÀÇÀÇ Àμö¸¦ »ç¿ëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
value - ÅØ½ºÆ®·Î º¯È¯ÇÏ´Â Object
selected - ³ëµå°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì´Â true
expanded - ³ëµå°¡ Àü°³µÇ°í ÀÖ´Â °æ¿ì´Â true
leaf - ³ëµå°¡ ÀÙ³ëµåÀÇ °æ¿ì´Â true
row - ³ëµåÀÇ Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà
hasFocus - ³ëµå°¡ Æ÷Ä¿½º¸¦ °¡Áö´Â °æ¿ì´Â true
¹Ýȯ°ª:
³ëµåÀÇ °ªÀÇ String Ç¥Çö

getRowCount

public int getRowCount()
ÇöÀç Ç¥½ÃµÇ°í ÀÖ´Â Çà¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Ç¥½ÃµÇ°í ÀÖ´Â Çà¼ö

setSelectionPath

public void setSelectionPath(TreePath  path)
ÁöÁ¤µÈ ÆÐ½º·Î ½Äº°µÇ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù. ±× ÆÐ½ºÀÇ ÄÄÆÛ³ÍÆ®°¡ ¼û¾î ÀÖ¾î (¼ö³³µÈ ³ëµå¾Æ·¡¿¡ ÀÖ´Ù),getExpandsSelectedPaths °¡ true ÀÇ °æ¿ì¿¡´Â Ç¥½Ã °¡´ÉÇÏ°Ô µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - ¼±ÅÃÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath

setSelectionPaths

public void setSelectionPaths(TreePath [] paths)
ÁöÁ¤µÈ ÆÐ½ºÀÇ ¹è¿­¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù. ±× ÆÐ½ºÀÇ ÄÄÆÛ³ÍÆ®°¡ ¼û°ÜÁö°í ÀÖ¾î (¼ö³³µÈ ³ëµå¾Æ·¡¿¡ ÀÖ´Ù),getExpandsSelectedPaths °¡ true ÀÇ °æ¿ì¿¡´Â Ç¥½Ã °¡´ÉÇÏ°Ô µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
paths - ¼±ÅÃÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath ¿ÀºêÁ§Æ®ÀÇ ¹è¿­

setLeadSelectionPath

public void setLeadSelectionPath(TreePath  newPath)
¸®µå·Î¼­ ½Äº°ÇÏ´Â ÆÐ½º¸¦ ¼³Á¤ÇÕ´Ï´Ù. ¸®µå´Â ¼±ÅõÇÁö ¾Ê½À´Ï´Ù. ¸®µå´Â JTree ¿¡ ÀÇÇØ À¯ÁöµÇ´Â °ÍÀÌ ¾Æ´Ï¶ó, UI °¡ °»½ÅÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newPath - »õ·Î¿î ¸®µå ÆÐ½º
µµÀÔµÈ ¹öÁ¯:
1.3

setAnchorSelectionPath

public void setAnchorSelectionPath(TreePath  newPath)
¿¨Ä¿·Î¼­ ½Äº°ÇÏ´Â ÆÐ½º¸¦ ¼³Á¤ÇÕ´Ï´Ù. ¿¨Ä¿´Â JTree ¿¡ ÀÇÇØ À¯ÁöµÇ´Â °ÍÀÌ ¾Æ´Ï¶ó, UI °¡ °»½ÅÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newPath - »õ·Î¿î ¿¨Ä¿ ÆÐ½º
µµÀÔµÈ ¹öÁ¯:
1.3

setSelectionRow

public void setSelectionRow(int row)
ÁöÁ¤µÈ Ç¥½ÃÇà¿¡ ÀÖ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - ¼±ÅÃÇÏ´Â Çà. 0 Àº ÃÖÃÊÀÇ Çà

setSelectionRows

public void setSelectionRows(int[] rows)
ÁöÁ¤µÈ °¢ Ç¥½ÃÇà¿¡ ´ëÀÀÇÏ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù. rows ÀÇ Æ¯Á¤ÀÇ ¿ä¼Ò°¡ < 0 ¶Ç´Â >= getRowCount ÀÇ °æ¿ì, ±× ¿ä¼Ò´Â ¹«½ÃµË´Ï´Ù. rows ÀÇ ¸ðµç ¿ä¼Ò°¡ ¹«È¿ÀÎ ÇàÀÎ °æ¿ì, ¼±ÅÃÀº Ŭ¸®¾î µË´Ï´Ù. Áï,clearSelection °¡ ºÒ·Á °¬À» °æ¿ì¿Í °°½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
rows - ¼±ÅÃÇÏ´Â ÇàÀ» ÁöÁ¤ÇÏ´Â int ÀÇ ¹è¿­. 0 Àº ÃÖÃÊÀÇ ÇàÀ» ³ªÅ¸³½´Ù

addSelectionPath

public void addSelectionPath(TreePath  path)
ÁöÁ¤µÈ TreePath ¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù. ±× ÆÐ½ºÀÇ ÄÄÆÛ³ÍÆ®°¡ Ç¥½Ã °¡´ÉÇÏÁö ¾Ê°í getExpandsSelectedPaths °¡ true ÀÇ °æ¿ì¿¡´Â Ç¥½Ã °¡´ÉÇÏ°Ô µË´Ï´Ù.

JTree ¿¡¼­´Â °°Àº ºÎ¸ðÀÇ ¾ÆÀ̷μ­ °°Àº ³ëµå¸¦ Áߺ¹ ½Ãų ¼ö ¾ø½À´Ï´Ù. °¢ ÇüÁ¦ À§Á¦Æ®´Â ÀÏÀÇÀÇ ¿ÀºêÁ§Æ®ÀÎ °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - Ãß°¡ÇÏ´Â TreePath

addSelectionPaths

public void addSelectionPaths(TreePath [] paths)
ÆÐ½ºÀÇ ¹è¿­ÀÇ °¢ ÆÐ½º¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù. ±× ÆÐ½ºÀÇ ÄÄÆÛ³ÍÆ®°¡ Ç¥½Ã °¡´ÉÇÏÁö ¾Ê°í getExpandsSelectedPaths °¡ true ÀÇ °æ¿ì¿¡´Â Ç¥½Ã °¡´ÉÇÏ°Ô µË´Ï´Ù.

JTree ¿¡¼­´Â °°Àº ºÎ¸ðÀÇ ¾ÆÀ̷μ­ °°Àº ³ëµå¸¦ Áߺ¹ ½Ãų ¼ö ¾ø½À´Ï´Ù. °¢ ÇüÁ¦ À§Á¦Æ®´Â ÀÏÀÇÀÇ ¿ÀºêÁ§Æ®ÀÎ °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
paths - Ãß°¡ÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath ¿ÀºêÁ§Æ®ÀÇ ¹è¿­

addSelectionRow

public void addSelectionRow(int row)
ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ÆÐ½º¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - Ãß°¡ÇÏ´Â ³ëµåÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà

addSelectionRows

public void addSelectionRows(int[] rows)
ÁöÁ¤µÈ °¢ Çà¿¡ ÀÖ´Â ÆÐ½º¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
rows - Ãß°¡ÇÏ´Â ÇàÀ» ÁöÁ¤ÇÏ´Â int ÀÇ ¹è¿­. 0 Àº ÃÖÃÊÀÇ ÇàÀ» ³ªÅ¸³½´Ù

getLastSelectedPathComponent

public Object  getLastSelectedPathComponent()
ÇöÀçÀÇ ¼±ÅÃÀÇ ÃÖÃÊÀÇ ³ëµå¿¡ ÀÖ´Â ¸¶Áö¸· ÆÄ½ºÄÜÆ÷³ÙÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¼±ÅÃµÈ ÃÖÃÊÀÇ ³ëµåÀÇ TreePath ¿¡ ÀÖ´Â ¸¶Áö¸· Object. ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â null
°ü·Ã Ç׸ñ:
TreePath.getLastPathComponent()

getLeadSelectionPath

public TreePath  getLeadSelectionPath()
¸®µå¿Í ½Äº°µÈ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¸®µå¿Í ½Äº°µÈ ÆÐ½º

getAnchorSelectionPath

public TreePath  getAnchorSelectionPath()
¿¨Ä¿¿Í ½Äº°µÈ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¿¨Ä¿¿Í ½Äº°µÈ ÆÐ½º
µµÀÔµÈ ¹öÁ¯:
1.3

getSelectionPath

public TreePath  getSelectionPath()
¼±ÅÃµÈ ÃÖÃÊÀÇ ³ëµåÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¼±ÅÃµÈ ÃÖÃÊÀÇ ³ëµåÀÇ TreePath. ÇöÀç ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â null

getSelectionPaths

public TreePath [] getSelectionPaths()
¼±ÅÃµÈ ¸ðµç °ªÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¼±ÅÃµÈ ³ëµå¸¦ ³ªÅ¸³»´Â TreePath ¿ÀºêÁ§Æ®ÀÇ ¹è¿­. ÇöÀç ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â null

getSelectionRows

public int[] getSelectionRows()
ÇöÀç ¼±Åà ¶°³¯ ¼ö ÀÖ¾î ¸ðµç ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ´ÜÁö TreeSelectionModel ¿¡ Àü¼Û µË´Ï´Ù. ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â null ¶Ç´Â ÇÏ´ÃÀÇ ¹è¿­ÀÌ µ¹·ÁÁÖ¾îÁý´Ï´Ù. ¾î´À ÂÊÀÌ µ¹·ÁÁÖ¾îÁú±î´Â TreeSelectionModel ÀÇ ±¸Çö¿¡ µû¶ó¼­ ´Ù¸¨´Ï´Ù.

¹Ýȯ°ª:
ÇöÀç ¼±Åà ¶°³¯ ¼ö ÀÖ¾î ¸ðµç ÇàÀ» ½Äº°ÇÏ´Â int ÀÇ ¹è¿­. 0 Àº ÃÖÃÊÀÇ Çà

getSelectionCount

public int getSelectionCount()
¼±ÅÃµÈ ³ëµåÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¼±ÅÃµÈ ³ëµåÀÇ ¼ö

getMinSelectionRow

public int getMinSelectionRow()
¼±Åõǰí ÀÖ´Â ÃÖÃÊÀÇ ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¼±ÅÃµÈ ÃÖÃÊÀÇ ÇàÀ» ³ªÅ¸³»´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà

getMaxSelectionRow

public int getMaxSelectionRow()
¼±Åõǰí ÀÖ´Â ¸¶Áö¸· ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¼±ÅÃµÈ ¸¶Áö¸· ÇàÀ» ³ªÅ¸³»´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà

getLeadSelectionRow

public int getLeadSelectionRow()
¸®µå ÆÐ½º¿¡ ´ëÀÀÇÏ´Â ÇàÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¸®µå ÆÐ½ºÀÇ ÇàÀÇ À妽º¸¦ ³ªÅ¸³»´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà. leadPath °¡ null ÀÇ °æ¿ì´Â -1

isPathSelected

public boolean isPathSelected(TreePath  path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â Ç׸ñÀÌ ÇöÀç ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
¹Ýȯ°ª:
³ëµå°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì´Â true

isRowSelected

public boolean isRowSelected(int row)
Çà¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà
¹Ýȯ°ª:
³ëµå°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì´Â true

getExpandedDescendants

public Enumeration  getExpandedDescendants(TreePath  parent)
ÇöÀç Àü°³µÇ°í ÀÖ´Â ÆÐ½º parent ÀÇ ÇÏÀ§ ³ëµå·ÎºÎÅÍ ¿Ï¼ºµÇ´Â Enumeration ¸¦ µ¹·ÁÁÝ´Ï´Ù. parent °¡ ÇöÀç Àü°³µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì, ÀÌ ¸Þ¼Òµå´Â null ¸¦ µ¹·ÁÁÝ´Ï´Ù. µ¹·ÁÁÖ¾îÁø Enumeration ·Î ¹Ýº¹Çϰí ÀÖ´Â µ¿¾È ³ëµå¸¦ Àü°³ÇÏ´ÂÁö ¼ö³³Çϸé(ÀÚ), ÀÌ ¸Þ¼Òµå´Â Àü°³µÈ ¸ðµç ÆÐ½º¸¦ µ¹·ÁÁÖ´Â °ÍÀÌ ¾Æ´Ï¶ó, ±× ÀÌ»ó Àü°³µÇ¾î ÀÖÁö ¾ÊÀº ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
parent - Á¶»çÇÒ ¼ö ÀÖ´Â ÆÐ½º
¹Ýȯ°ª:
parent ÀÇ ÇÏÀ§ ³ëµåÀÇ Enumeration. parent °¡ ÇöÀç Àü°³µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â null

hasBeenExpanded

public boolean hasBeenExpanded(TreePath  path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ Áö±Ý±îÁö Àü°³µÇ¾ú´ø ÀûÀÌ ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
path °¡ Áö±Ý±îÁö Àü°³µÇ¾úÀ» °æ¿ì´Â true

isExpanded

public boolean isExpanded(TreePath  path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ÇöÀç Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - Á¶»çÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath
¹Ýȯ°ª:
³ëµåÀÇ ÆÐ½º¿¡ ÀÖ´Â ³ëµå°¡ ¼ö³³µÇ°í ÀÖ´Â °æ¿ì´Â false, ÆÐ½º¿¡ ÀÖ´Â ¸ðµç ³ëµå°¡ Àü°³µÇ°í ÀÖ´Â °æ¿ì´Â true

isExpanded

public boolean isExpanded(int row)
ÁöÁ¤µÈ Ç¥½ÃÇà¿¡ ÀÖ´Â ³ëµå°¡ ÇöÀç Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - Á¶»çÇÏ´Â Çà. 0 Àº ÃÖÃÊÀÇ Çà
¹Ýȯ°ª:
³ëµå°¡ ÇöÀç Àü°³µÇ°í ÀÖ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

isCollapsed

public boolean isCollapsed(TreePath  path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â °ªÀÌ ÇöÀç ¼ö³³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ÆÐ½º¿¡ ÀÖ´Â °ªÀÌ ÇöÀç Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â false ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - Á¶»çÇÏ´Â TreePath
¹Ýȯ°ª:
³ëµåÀÇ ÆÐ½º¿¡ ÀÖ´Â ³ëµå°¡ ¼ö³³µÇ°í ÀÖ´Â °æ¿ì´Â true, ÆÐ½º¿¡ ÀÖ´Â ¸ðµç ³ëµå°¡ Àü°³µÇ°í ÀÖ´Â °æ¿ì´Â false

isCollapsed

public boolean isCollapsed(int row)
ÁöÁ¤µÈ Ç¥½ÃÇà¿¡ ÀÖ´Â ³ëµå°¡ ¼ö³³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - Á¶»çÇÏ´Â Çà. 0 Àº ÃÖÃÊÀÇ Çà
¹Ýȯ°ª:
³ëµå°¡ ÇöÀç Àü°³µÇ°í ÀÖ´Â °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

makeVisible

public void makeVisible(TreePath  path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ÇöÀç Ç¥½Ã °¡´ÉÇϵµ·Ï ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - °¡½Ã·Î ÇÏ´Â TreePath

isVisible

public boolean isVisible(TreePath  path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â °ªÀÌ ÇöÀç Ç¥½Ã °¡´ÉÇÑ °æ¿ì, Áï ±×°ÍÀÌ ·çÆ®ÀÎÁö ±× ¸ðµç ºÎ¸ð°¡ Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì, ÀÌ ¸Þ¼Òµå´Â false ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
³ëµå°¡ Ç¥½Ã °¡´ÉÇÑ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

getPathBounds

public Rectangle  getPathBounds(TreePath  path)
ÁöÁ¤µÈ ³ëµå°¡ Ç¥Çö µÇ´Â Rectangle ¸¦ µ¹·ÁÁÝ´Ï´Ù. ÆÐ½º¿¡ ÀÖ´Â ÄÄÆÛ³ÍÆ®°¡ ¼û¾î ÀÖ´Â (¼ö³³µÈ ºÎ¸ð¾Æ·¡¿¡ ÀÖ´Ù) °æ¿ì´Â null ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÁÖ:
ÀÌ ¸Þ¼Òµå´Â ÁöÁ¤µÈ ³ëµå°¡ ÇöÀç Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì¿¡¼­µµ À¯È¿ÇÑ ±¸ÇüÀ» µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
¹Ýȯ°ª:
³ëµå°¡ Ç¥Çö µÇ´Â Rectangle ¶Ç´Â null

getRowBounds

public Rectangle  getRowBounds(int row)
ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ³ëµå°¡ Ç¥Çö µÇ´Â Rectangle ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - Ç¥Çö µÇ´Â Çà. 0 Àº ÃÖÃÊÀÇ Çà
¹Ýȯ°ª:
³ëµå°¡ Ç¥Çö µÇ´Â Rectangle

scrollPathToVisible

public void scrollPathToVisible(TreePath  path)
ÆÐ½º¿¡ ÀÖ´Â ¸ðµç ÆÄ½ºÄÜÆ÷³ÙÆ® (¸¶Áö¸· ÆÄ½ºÄÜÆ÷³ÙÆ®´Â Á¦¿ÜÇÏ´Ù)¸¦ Àü°³ÇØ, ÆÐ½º¿¡ ÀÇÇØ ÁöÁ¤µÇ´Â ³ëµå°¡ Ç¥½ÃµÇµµ·Ï(µíÀÌ) ½ºÅ©·Ñ ÇÕ´Ï´Ù. ÀÌ JTree °¡ JScrollPane ¿¡ ÀúÀåµÇ°í ÀÖ´Â °æ¿ì¸¸ ±â´ÉÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - Ç¥½ÃÇÏ´Â ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath

scrollRowToVisible

public void scrollRowToVisible(int row)
Çà¿¡ ÀÇÇØ ½Äº°µÇ´Â Ç׸ñÀÌ Ç¥½ÃµÉ ¶§±îÁö ½ºÅ©·Ñ ÇÕ´Ï´Ù. ÇàÀ» Ç¥½ÃÇϱâ À§Çؼ­ ÇÊ¿äÇÑ ÃÖ¼ÒÀÇ ¾ç¸¸ ½ºÅ©·Ñ ÇÕ´Ï´Ù. ÀÌ JTree °¡ JScrollPane ¿¡ ÀúÀåµÇ°í ÀÖ´Â °æ¿ì¸¸ ±â´ÉÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - ½ºÅ©·Ñ ÇÏ´Â ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà

getPathForRow

public TreePath  getPathForRow(int row)
ÁöÁ¤µÈ ÇàÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. row °¡ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì´Â null °¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡
¹Ýȯ°ª:
ÁöÁ¤µÈ ³ëµåÀÇ TreePath. row < 0 ¶Ç´Â row > getRowCount() ÀÇ °æ¿ì´Â null

getRowForPath

public int getRowForPath(TreePath  path)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ Ç¥½ÃÇÏ´Â ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
¹Ýȯ°ª:
Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà. ÆÐ½ºÀÇ ¿ä¼Ò°¡ ¼ö³³µÈ ºÎ¸ð¾Æ·¡¿¡¼­ ¼û¾î ÀÖ´Â °æ¿ì´Â -1

expandPath

public void expandPath(TreePath  path)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ Àü°³µÇ¾î Ç¥½Ã °¡´ÉÇÏ°Ô µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath

expandRow

public void expandRow(int row)
ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ³ëµå°¡ Àü°³µÇ¾î Ç¥½Ã °¡´ÉÇÏ°Ô µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù.

row °¡ < 0 ¶Ç´Â >= getRowCount ÀÇ °æ¿ì, ÀÌ ¸Þ¼Òµå´Â ¾Æ¹«°Íµµ ÇÏÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà

collapsePath

public void collapsePath(TreePath  path)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ¼ö³³µÇ¾î Ç¥½Ã °¡´ÉÇÏ°Ô µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath

collapseRow

public void collapseRow(int row)
ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ³ëµå°¡ ¼ö³³µÇ°í ÀÖ°Ô ÇÕ´Ï´Ù.

row °¡ < 0 ¶Ç´Â >= getRowCount ÀÇ °æ¿ì, ÀÌ ¸Þ¼Òµå´Â ¾Æ¹«°Íµµ ÇÏÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
row - Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà

getPathForLocation

public TreePath  getPathForLocation(int x,
                                   int y)
ÁöÁ¤µÈ À§Ä¡¿¡ ÀÖ´Â ³ëµåÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - Ç¥½Ã area (¿ÞÂÊ ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ Á´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÆò°Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
y - Ç¥½Ã area (»ó ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ »ó´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÁ÷ °Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
¹Ýȯ°ª:
ÁöÁ¤µÈ À§Ä¡¿¡ ÀÖ´Â ³ëµåÀÇ TreePath

getRowForLocation

public int getRowForLocation(int x,
                             int y)
ÁöÁ¤µÈ À§Ä¡¿¡ ÀÖ´Â ÇàÀ» µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - Ç¥½Ã area (¿ÞÂÊ ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ Á´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÆò°Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
y - Ç¥½Ã area (»ó ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ »ó´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÁ÷ °Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
¹Ýȯ°ª:
ÁöÁ¤µÈ À§Ä¡¿¡ ´ëÀÀÇÏ´Â Çà. ÁöÁ¤µÈ À§Ä¡°¡ Ç¥½Ã ¼¿ÀÇ °æ°è¿ÜÀÇ °æ¿ì´Â -1
°ü·Ã Ç׸ñ:
getClosestRowForLocation(int, int)

getClosestPathForLocation

public TreePath  getClosestPathForLocation(int x,
                                          int y)
x, y ¿¡ °¡Àå °¡±î¿î ³ëµåÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. ÇöÀç Ç¥½Ã °¡´ÉÇÑ ³ëµå°¡ ¾ø´Â °æ¿ì, ¶Ç´Â ¸ðµ¨ÀÌ ¾ø´Â °æ¿ì´Â null °¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì, ÀÌ ¸Þ¼Òµå´Â Ç×»ó À¯È¿ÇÑ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. ³ëµå°¡ Á¤È®ÇÏ°Ô x, y ÀÇ À§Ä¡¿¡ ÀÖÀ»Áö ¾î¶³Áö¸¦ Å×½ºÆ®ÇÏ·Á¸é , ³ëµåÀÇ °æ°è¸¦ ÃëµæÇØ, ±×°ÍÀ» ±âÁØ¿¡ x, y ¸¦ Å×½ºÆ®ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - Ç¥½Ã area (¿ÞÂÊ ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ Á´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÆò°Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
y - Ç¥½Ã area (»ó ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ »ó´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÁ÷ °Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
¹Ýȯ°ª:
ÁöÁ¤µÈ À§Ä¡¿¡ °¡Àå °¡±î¿î ³ëµåÀÇ TreePath. Ç¥½Ã °¡´ÉÇÑ ³ëµå°¡ ¾ø´Â °æ¿ì, ¶Ç´Â ¸ðµ¨ÀÌ ¾ø´Â °æ¿ì´Â null
°ü·Ã Ç׸ñ:
getPathForLocation(int, int) , getPathBounds(javax.swing.tree.TreePath)

getClosestRowForLocation

public int getClosestRowForLocation(int x,
                                    int y)
x, y ¿¡ °¡Àå °¡±î¿î ³ëµåÀÇ ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. Ç¥½Ã °¡´ÉÇÑ ³ëµå°¡ ¾ø´ÂÁö ¸ðµ¨ÀÌ ¾ø´Â °æ¿ì´Â -1 ÀÌ µ¹·ÁÁÖ¾îÁý´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì, ÀÌ ¸Þ¼Òµå´Â Ç×»ó À¯È¿ÇÑ ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. µ¹·ÁÁÖ¾îÁø ¿ÀºêÁ§Æ®°¡ Á¤È®ÇÏ°Ô x, y ÀÇ À§Ä¡¿¡ ÀÖÀ»Áö ¾î¶³Áö¸¦ Å×½ºÆ®ÇÏ·Á¸é , µ¹·ÁÁÖ¾îÁø Çà¿¡ ÀÖ´Â ³ëµåÀÇ °æ°è¸¦ ÃëµæÇØ, ±×°ÍÀ» ±âÁØ¿¡ x, y ¸¦ Å×½ºÆ®ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - Ç¥½Ã area (¿ÞÂÊ ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ Á´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÆò°Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
y - Ç¥½Ã area (»ó ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ »ó´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÁ÷ °Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
¹Ýȯ°ª:
ÁöÁ¤µÈ À§Ä¡¿¡ °¡Àå °¡±î¿î Çà. Ç¥½Ã °¡´ÉÇÑ ³ëµå°¡ ¾ø´Â °æ¿ì, ¶Ç´Â ¸ðµ¨ÀÌ ¾ø´Â °æ¿ì´Â -1
°ü·Ã Ç׸ñ:
getRowForLocation(int, int) , getRowBounds(int)

isEditing

public boolean isEditing()
Æ®¸®°¡ ÆíÁýµÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. ÆíÁýµÇ°í ÀÖ´Â Ç׸ñÀº getSelectionPath ¸¦ »ç¿ëÇØ ÃëµæÇÒ ¼ö ÀÖ½À´Ï´Ù.

¹Ýȯ°ª:
À¯Àú°¡ ÇöÀç ³ëµå¸¦ ÆíÁýÇϰí ÀÖ´Â °æ¿ì´Â true
°ü·Ã Ç׸ñ:
getSelectionPath()

stopEditing

public boolean stopEditing()
ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» Á¾·áÇÕ´Ï´Ù. DefaultTreeCellEditor ¿ÀºêÁ§Æ®´Â ¼¿»ó¿¡¼­ ÁøÇàÁßÀÇ ÆíÁýÀ» ¸ðµÎ º¸Á¸ÇÕ´Ï´Ù. ´Ù¸¥ ±¸ÇöÀº ´Ù¸¥ µ¿ÀÛÀ» ÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. Æ®¸®°¡ ÆíÁýµÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â ¾Æ¹«°Íµµ ÇÏÁö ¾Ê½À´Ï´Ù.
ÁÖ:
À¯Àú°¡ Æ®¸®³»¿¡¼­ À̵¿ÇßÀ» ¶§¿¡ ÀÚµ¿ÀûÀ¸·Î ÆíÁýÀ» º¸Á¸ÇÏ·Á¸é ,setInvokesStopCellEditing(boolean) ¸¦ »ç¿ëÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÆíÁýÀ» Çϰí ÀÖ¾î, ÇöÀç Á¤ÁöÇϰí ÀÖ´Â °æ¿ì´Â true. ÆíÁýÀ» ÇÏÁö ¾Ê¾Ò´ø °æ¿ì´Â false

cancelEditing

public void cancelEditing()
ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» Ãë¼ÒÇÕ´Ï´Ù. Æ®¸®°¡ ÆíÁýµÇÁö ¾ÊÀº °æ¿ì´Â ¾Æ¹«°Íµµ ÇÏÁö ¾Ê½À´Ï´Ù.


startEditingAtPath

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

ÆÄ¶ó¹ÌÅÍ:
path - ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath

getEditingPath

public TreePath  getEditingPath()
ÇöÀç ÆíÁýµÇ°í ÀÖ´Â ¿ä¼ÒÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
ÆíÁýµÇ°í ÀÖ´Â ³ëµåÀÇ TreePath

setSelectionModel

public void setSelectionModel(TreeSelectionModel  selectionModel)
Æ®¸®ÀÇ ¼±Åà ¸ðµ¨À» ¼³Á¤ÇÕ´Ï´Ù. null Ä¡¸¦ ÁöÁ¤Çϸé(ÀÚ), ¼±ÅÃÀ» Çã°¡ÇÏÁö ¾Ê´Â ÇÏ´ÃÀÇ selectionModel °¡ »ç¿ëµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
selectionModel - »ç¿ëÇÏ´Â TreeSelectionModel. ¼±ÅÃÀ» ¹«È¿·Î ÇÏ´Â °æ¿ì´Â null
°ü·Ã Ç׸ñ:
TreeSelectionModel

getSelectionModel

public TreeSelectionModel  getSelectionModel()
¼±ÅÃÀÇ ¸ðµ¨À» µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â Ç×»ó null ÀÌ¿ÜÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù. ¼±ÅÃÀ» Çã°¡ÇÏ°í ½ÍÁö ¾ÊÀº °æ¿ì´Â ¼±Åà ¸ðµ¨À» null ·Î ¼³Á¤ÇØ °­Á¦ÀûÀ¸·Î ÇÏ´ÃÀÇ ¼±Åà ¸ðµ¨À» »ç¿ëÇÕ´Ï´Ù.

°ü·Ã Ç׸ñ:
setSelectionModel(javax.swing.tree.TreeSelectionModel)

getPathBetweenRows

protected TreePath [] getPathBetweenRows(int index0,
                                        int index1)
index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ÆÐ½º¸¦ ³ªÅ¸³»´Â JTreePath ÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. Æ®¸®°¡ ¾ø´Â °æ¿ì´Â null ¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
index0 - Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà
index1 - 2 ¹øÂ°ÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡
¹Ýȯ°ª:
TreePath ¿ÀºêÁ§Æ® (index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ °¢ ³ëµå¿¡ 1 °³)ÀÇ ¹è¿­. Æ®¸®°¡ ¾ø´Â °æ¿ì´Â null

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)
index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
index0 - Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà
index1 - 2 ¹øÂ°ÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡

addSelectionInterval

public void addSelectionInterval(int index0,
                                 int index1)
index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ÆÐ½º¸¦ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
index0 - Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà
index1 - 2 ¹øÂ°ÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)
index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ³ëµå¸¦ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
index0 - Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà
index1 - 2 ¹øÂ°ÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡

removeSelectionPath

public void removeSelectionPath(TreePath  path)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath

removeSelectionPaths

public void removeSelectionPaths(TreePath [] paths)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
paths - »èÁ¦ÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath ¿ÀºêÁ§Æ®ÀÇ ¹è¿­

removeSelectionRow

public void removeSelectionRow(int row)
À妽º row ¿¡ ÀÖ´Â ÇàÀ» ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.


removeSelectionRows

public void removeSelectionRows(int[] rows)
ÁöÁ¤µÈ °¢ ÇàÀ¸·Î ¼±Åõǰí ÀÖ´Â ÇàÀ» »èÁ¦ÇÕ´Ï´Ù.


clearSelection

public void clearSelection()
¼±ÅÃÀ» Ŭ¸®¾î ÇÕ´Ï´Ù.


isSelectionEmpty

public boolean isSelectionEmpty()
¼±Åà ¹üÀ§°¡ ÇöÀçºñ¾úÀ» °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¼±ÅÃÀÌ ÇöÀçÇÏ´ÃÀÎ °æ¿ì´Â true

addTreeExpansionListener

public void addTreeExpansionListener(TreeExpansionListener  tel)
TreeExpansion À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
tel - Æ®¸® ³ëµå°¡ Àü°³µÇ¾úÀ» ¶§, ¶Ç´Â ¼ö³³µÇ¾úÀ» ¶§ (ºÎÀÇ Àü°³)¿¡ ÅëÁöµÇ´Â TreeExpansionListener

removeTreeExpansionListener

public void removeTreeExpansionListener(TreeExpansionListener  tel)
TreeExpansion À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
tel - »èÁ¦ÇÏ´Â TreeExpansionListener

getTreeExpansionListeners

public TreeExpansionListener [] getTreeExpansionListeners()
addTreeExpansionListener()¿¡ ÀÇÇØ ÀÌ JTree ¿¡ Ãß°¡µÈ ¸ðµçTreeExpansionListener ÀÇ ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Ãß°¡µÈ TreeExpansionListener ÀÇ ¸ðµÎ. ûÃëÀÚ°¡ Ãß°¡µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â ÇÏ´ÃÀÇ ¹è¿­
µµÀÔµÈ ¹öÁ¯:
1.4

addTreeWillExpandListener

public void addTreeWillExpandListener(TreeWillExpandListener  tel)
TreeWillExpand À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
tel - Æ®¸® ³ëµå°¡ Àü°³µÉ ¶§, ¶Ç´Â ¼ö³³µÉ ¶§ (ºÎÀÇ Àü°³)¿¡ ÅëÁöµÇ´Â TreeWillExpandListener

removeTreeWillExpandListener

public void removeTreeWillExpandListener(TreeWillExpandListener  tel)
TreeWillExpand À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
tel - »èÁ¦ÇÏ´Â TreeWillExpandListener

getTreeWillExpandListeners

public TreeWillExpandListener [] getTreeWillExpandListeners()
addTreeWillExpandListener()¿¡ ÀÇÇØ ÀÌ JTree ¿¡ Ãß°¡µÈ ¸ðµçTreeWillExpandListener ÀÇ ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Ãß°¡µÈ TreeWillExpandListener ÀÇ ¸ðµÎ. ûÃëÀÚ°¡ Ãß°¡µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â ÇÏ´ÃÀÇ ¹è¿­
µµÀÔµÈ ¹öÁ¯:
1.4

fireTreeExpanded

public void fireTreeExpanded(TreePath  path)
ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù. path ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, À̺¥Æ®ÀÇ ÀνºÅϽº´Â »ý¼ºµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - Àü°³µÈ ³ëµå¸¦ ³ªÅ¸³»´Â TreePath
°ü·Ã Ç׸ñ:
EventListenerList

fireTreeCollapsed

public void fireTreeCollapsed(TreePath  path)
ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù. path ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, À̺¥Æ®ÀÇ ÀνºÅϽº´Â »ý¼ºµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - ¼ö³³µÈ ³ëµå¸¦ ³ªÅ¸³»´Â TreePath
°ü·Ã Ç׸ñ:
EventListenerList

fireTreeWillExpand

public void fireTreeWillExpand(TreePath  path)
                        throws ExpandVetoException 
ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù. path ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, À̺¥Æ®ÀÇ ÀνºÅϽº´Â »ý¼ºµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - Àü°³µÈ ³ëµå¸¦ ³ªÅ¸³»´Â TreePath
ExpandVetoException
°ü·Ã Ç׸ñ:
EventListenerList

fireTreeWillCollapse

public void fireTreeWillCollapse(TreePath  path)
                          throws ExpandVetoException 
ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù. path ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, À̺¥Æ®ÀÇ ÀνºÅϽº´Â »ý¼ºµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
path - Àü°³µÈ ³ëµå¸¦ ³ªÅ¸³»´Â TreePath
ExpandVetoException
°ü·Ã Ç׸ñ:
EventListenerList

addTreeSelectionListener

public void addTreeSelectionListener(TreeSelectionListener  tsl)
TreeSelection À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
tsl - ³ëµå°¡ ¼±ÅõǾúÀ» ¶§, ¶Ç´Â ¼±ÅÃÀÌ ÇØÁ¦µÇ¾úÀ» ¶§ (ºÎÀÇ ¼±ÅÃ)¿¡ ÅëÁöµÇ´Â TreeSelectionListener

removeTreeSelectionListener

public void removeTreeSelectionListener(TreeSelectionListener  tsl)
TreeSelection ûÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
tsl - »èÁ¦ÇÏ´Â TreeSelectionListener

getTreeSelectionListeners

public TreeSelectionListener [] getTreeSelectionListeners()
addTreeSelectionListener()¿¡ ÀÇÇØ ÀÌ JTree ¿¡ Ãß°¡µÈ ¸ðµçTreeSelectionListener ÀÇ ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Ãß°¡µÈ TreeSelectionListener ÀÇ ¸ðµÎ. ûÃëÀÚ°¡ Ãß°¡µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â ÇÏ´ÃÀÇ ¹è¿­
µµÀÔµÈ ¹öÁ¯:
1.4

fireValueChanged

protected void fireValueChanged(TreeSelectionEvent  e)
ÅëÁöÀÇ Àü´Þ ´ë»óÀ», ÁöÁ¤µÈ À̺¥Æ® ŸÀÔÀ¸·Î µî·ÏÇÑ ¸ðµç ûÃëÀÚ¿¡°Ô ÅëÁöÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
e - ¹æ¾Æ¼è ÇÏ´Â TreeSelectionEvent. ÀÌ À̺¥Æ®´Â ³ëµå°¡ ¼±ÅõǴÂÁö ¼±ÅÃÀÌ ÇØÁ¦µÉ ¶§ TreeSelectionModel ¿¡ ÀÇÇØ »ý¼ºµÇ´Â
°ü·Ã Ç׸ñ:
EventListenerList

treeDidChange

public void treeDidChange()
Æ®¸®ÀÇ º¯°æÀÌ, °æ°è¸¦ »çÀÌÁî º¯°æÇÒ Çʿ䰡 ÀÖÀ» ¸¸Å­ Å©Áö¸¸, Àü°³µÈ ³ëµå ¼¼Æ®¸¦ »èÁ¦ÇÒ Á¤µµ°¡ ¾Æ´Ñ °æ¿ì¿¡ º¸³»Áý´Ï´Ù (¿¹¸¦ µé¾î, ³ëµå°¡ Àü°³µÇ´ÂÁö ¼ö³³µÇ¾úÀ» ¶§, ¶Ç´Â ³ëµå°¡ Æ®¸®¿¡ »ðÀԵǾúÀ» ¶§). ÀÌ ¸Þ¼Òµå¸¦ È£ÃâÇÒ ÇÊ¿ä´Â ¾ø°í, ÇÊ¿äÇÑ °æ¿ì´Â UI °¡ È£ÃâÇÕ´Ï´Ù.


setVisibleRowCount

public void setVisibleRowCount(int newCount)
Ç¥½ÃÇÏ´Â Çà¼ö¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â Æ®¸®°¡ JScrollPane ¿¡ ÀúÀåµÇ°í ÀÖ´Â °æ¿ì¸¸ ±â´ÉÇØ, ½ºÅ©·Î¸£ÆäÀÎÀÇ ÀûÀýÇÑ »çÀÌÁ Á¶Á¤ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
newCount - Ç¥½ÃÇÏ´Â Çà¼ö

getVisibleRowCount

public int getVisibleRowCount()
Ç¥½Ã area¿¡ Ç¥½ÃµÇ°í ÀÖ´Â Çà¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
Ç¥½ÃµÈ Çà¼ö

getNextMatch

public TreePath  getNextMatch(String  prefix,
                             int startingRow,
                             Position.Bias  bias)
prefix ·Î ½ÃÀ۵Ǵ ´ÙÀ½ÀÇ Æ®¸® ¿ä¼Ò¿¡ÀÇ TreePath ¸¦ µ¹·ÁÁÝ´Ï´Ù. TreePath ·ÎºÎÅÍ Ä³¸¯ÅÍ ¶óÀο¡ÀÇ º¯È¯À» ó¸®ÇÏ·Á¸é ,convertValueToText ¸¦ »ç¿ëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
prefix - ÀÏÄ¡¸¦ Á¶»çÇϴ ij¸¯ÅÍ ¶óÀÎ
startingRow - °Ë»öÀ» °³½ÃÇÏ´Â Çà
bias - °Ë»ö ¹æÇâ. Position.Bias.Forward ¶Ç´Â Position.Bias.Backward
¹Ýȯ°ª:
prefix ·Î ½ÃÀ۵Ǵ ´ÙÀ½ÀÇ Æ®¸® ¿ä¼Ò¿¡ÀÇ TreePath. ¾ø´Â °æ¿ì´Â null
¿¹¿Ü:
IllegalArgumentException - prefix °¡ null ÀÇ °æ¿ì, ȤÀº startingRow °¡ ¹üÀ§¿ÜÀÇ °æ¿ì
µµÀÔµÈ ¹öÁ¯:
1.4

getPreferredScrollableViewportSize

public Dimension  getPreferredScrollableViewportSize()
JTree ÀÇ ÀûÀýÇÑ Ç¥½Ã »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. ³ôÀÌ´Â getVisibleRowCount ·ÎºÎÅÍ °áÁ¤ÇÒ ¼ö ÀÖ¾î ÆøÀº ÇöÀçÀÇ ÀûÀýÇÑ ÆøÀÔ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Scrollable ³»ÀÇ getPreferredScrollableViewportSize
¹Ýȯ°ª:
ÀûÀýÇÑ »çÀÌÁ º¸°ü À¯ÁöÇÏ´Â Dimension ¿ÀºêÁ§Æ®
°ü·Ã Ç׸ñ:
JComponent.getPreferredSize()

getScrollableUnitIncrement

public int getScrollableUnitIncrement(Rectangle  visibleRect,
                                      int orientation,
                                      int direction)
½ºÅ©·Ñ½Ã¿¡ ÁõºÐ ÇÏ´Â ¾çÀ» µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¾çÀº ¿ÏÀüÇÏ°Ô Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº ÃÖÃʷΠǥ½ÃµÇ°í ÀÖ´Â ÇàÀÇ ³ôÀÌ, ¶Ç´Â ±× ÇàÀÌ ¿ÏÀüÇÏ°Ô Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì´Â ½ºÅ©·Ñ ÇÒ ¹æÇâ¿¡ ÀÖ´Â ´ÙÀ½ÀÇ ÇàÀÇ ³ôÀÌÀÔ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Scrollable ³»ÀÇ getScrollableUnitIncrement
ÆÄ¶ó¹ÌÅÍ:
visibleRect - ºäÆ÷Æ®³»ÀÇ °¡½ÃÀÇ ºä area
orientation - SwingConstants.VERTICAL ¶Ç´Â SwingConstants.HORIZONTAL
direction - »ó¶Ç´Â¿ÞÂÊÀ¸·Î ½ºÅ©·Ñ ÇÏ´Â °æ¿ì´Â 0 º¸´Ù ÀÛ°í, ¾Æ·¡ ¶Ç´Â ¿À¸¥ÂÊÀ¸·Î ½ºÅ©·Ñ ÇÏ´Â °æ¿ì´Â 0 º¸´Ù Å©´Ù
¹Ýȯ°ª:
ÁöÁ¤µÈ ¹æÇâÀ¸·Î ½ºÅ©·ÑÇϱâ À§ÇÑ ¡¸À¯´ÏÆ®¡¹ÁõºÐÄ¡
°ü·Ã Ç׸ñ:
JScrollBar.setUnitIncrement(int)

getScrollableBlockIncrement

public int getScrollableBlockIncrement(Rectangle  visibleRect,
                                       int orientation,
                                       int direction)
¡¸ºí·Ï¡¹ÁõºÐÄ¡ÀÇ ¾çÀ» µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¾çÀº orientation ¿¡ ±Ù°ÅÇÑ visibleRect ÀÇ ³ôÀÌ ¶Ç´Â ÆøÀÔ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Scrollable ³»ÀÇ getScrollableBlockIncrement
ÆÄ¶ó¹ÌÅÍ:
visibleRect - ºäÆ÷Æ®³»ÀÇ °¡½ÃÀÇ ºä area
orientation - SwingConstants.VERTICAL ¶Ç´Â SwingConstants.HORIZONTAL
direction - »ó¶Ç´Â¿ÞÂÊÀ¸·Î ½ºÅ©·Ñ ÇÏ´Â °æ¿ì´Â 0 º¸´Ù ÀÛ°í, ¾Æ·¡ ¶Ç´Â ¿À¸¥ÂÊÀ¸·Î ½ºÅ©·Ñ ÇÏ´Â °æ¿ì´Â 0 º¸´Ù Å©´Ù
¹Ýȯ°ª:
ÁöÁ¤µÈ ¹æÇâÀ¸·Î ½ºÅ©·ÑÇϱâ À§ÇÑ ¡¸ºí·Ï¡¹ÁõºÐÄ¡
°ü·Ã Ç׸ñ:
JScrollBar.setBlockIncrement(int)

getScrollableTracksViewportWidth

public boolean getScrollableTracksViewportWidth()
Æ®¸®ÀÇ ÀûÀýÇÑ ÆøÀÌ ºäÆ÷Æ®ÀÇ Æøº¸´Ù ÀÛÁö ¾ÊÀº ÇÑ, false ¸¦ µ¹·ÁÁÖ¾î, ºäÆ÷Æ®ÀÇ ÆøÀÌ Å×À̺íÀÇ ÆøÀ» °áÁ¤ÇÏÁö ¾Ê´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. Áï, Æ®¸®°¡ ºäÆ÷Æ®º¸´Ù ÀÛ°Ô ¾È µÇ°Ô ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Scrollable ³»ÀÇ getScrollableTracksViewportWidth
¹Ýȯ°ª:
false
°ü·Ã Ç׸ñ:
Scrollable.getScrollableTracksViewportWidth()

getScrollableTracksViewportHeight

public boolean getScrollableTracksViewportHeight()
Æ®¸®ÀÇ ÀûÀýÇÑ ³ôÀ̰¡ ºäÆ÷Æ®ÀÇ ³ôÀ̺¸´Ù ÀÛÁö ¾ÊÀº ÇÑ, false ¸¦ µ¹·ÁÁÖ¾î, ºäÆ÷Æ®ÀÇ ³ôÀ̰¡ Å×À̺íÀÇ ³ôÀ̸¦ °áÁ¤ÇÏÁö ¾Ê´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. Áï, Æ®¸®°¡ ºäÆ÷Æ®º¸´Ù ÀÛ°Ô ¾È µÇ°Ô ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Scrollable ³»ÀÇ getScrollableTracksViewportHeight
¹Ýȯ°ª:
false
°ü·Ã Ç׸ñ:
Scrollable.getScrollableTracksViewportHeight()

setExpandedState

protected void setExpandedState(TreePath  path,
                                boolean state)
ÀÌ JTree ÀÇ Àü°³ »óŸ¦ ¼³Á¤ÇÕ´Ï´Ù. state °¡ true ÀÇ °æ¿ì,path ÀÇ ¸ðµç ºÎ¸ð ¹× ÆÐ½º¿¡ Àü°³ÀÇ ¸¶Å©¸¦ ºÙÀÏ ¼ö ÀÖ½À´Ï´Ù. state °¡ false ÀÇ °æ¿ì,path ÀÇ ¸ðµç ºÎ¸ð´Â EXPANDED ·Î ³ªÅ¸³³´Ï´Ù¸¸,path ÀÚü´Â ¼ö³³µÇ°í ÀÖ´Â °ÍÀÌ ³ªÅ¸³³´Ï´Ù.

À̰ÍÀº TreeWillExpandListener ¿¡ °ÅºÎµÇ´Â °æ¿ì´Â ½ÇÆÐÇÕ´Ï´Ù.


getDescendantToggledPaths

protected Enumeration  getDescendantToggledPaths(TreePath  parent)
parent ÀÇ ÇÏÀ§ ³ëµåÀ̸ç, Àü°³µÇ°í ÀÖ´Â TreePaths ÀÇ Enumeration ¸¦ µ¹·ÁÁÝ´Ï´Ù.


removeDescendantToggledPaths

protected void removeDescendantToggledPaths(Enumeration  toRemove)
toRemove ¿¡ ÀÖ´Â Àü°³µÇ°í ÀÖ´Â TreePaths ÀÇ ÇÏÀ§ ³ëµå¸¦ »èÁ¦ÇÕ´Ï´Ù.


clearToggledPaths

protected void clearToggledPaths()
±³Ã¼µÈ Æ®¸® ÆÐ½ºÀÇ Ä³½¬¸¦ Ŭ¸®¾î ÇÕ´Ï´Ù. À̰ÍÀº TreeExpansionListener À̺¥Æ®¸¦ ¼ÛÃâÇÏÁö ¾Ê½À´Ï´Ù.


createTreeModelListener

protected TreeModelListener  createTreeModelListener()
TreeModelHandler ÀÇ ÀνºÅϽº¸¦ »ý¼ºÇØ µ¹·ÁÁÝ´Ï´Ù. µ¹·ÁÁÖ¾îÁø ¿ÀºêÁ§Æ®´Â TreeModel °¡ º¯°æµÇ¾úÀ» ¶§¿¡ Àü°³ »óŸ¦ °»½ÅÇÕ´Ï´Ù.

Àü°³ »óÅÂÀÇ ÀÚ¼¼ÇÑ °ÍÀº »ó±âÀÇ JTree ÀÇ ¼³¸íÀ» ÂüÁ¶ÇØ ÁÖ¼¼¿ä.


removeDescendantSelectedPaths

protected boolean removeDescendantSelectedPaths(TreePath  path,
                                                boolean includePath)
path ÀÇ ÇÏÀ§ ³ëµåÀÎ ¼±ÅÃµÈ ¸ðµç ÆÐ½º¸¦ »èÁ¦ÇÕ´Ï´Ù. includePath °¡ true ·Î path °¡ ¼±Åõǰí ÀÖ´Â °æ¿ì´Â ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦µË´Ï´Ù.

¹Ýȯ°ª:
ÇÏÀ§ ³ëµå°¡ ¼±ÅõǾúÀ» °æ¿ì´Â true
µµÀÔµÈ ¹öÁ¯:
1.3

paramString

protected String  paramString()
ÀÌ JTree ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â µð¹ö±× Àü¿ëÀ̸ç, µ¹·ÁÁÖ¾îÁö´Â ij¸¯ÅÍ ¶óÀÎÀÇ ³»¿ë ¹× Çü½ÄÀº ±¸Çö¿¡ µû¶ó¼­ ´Ù¸¨´Ï´Ù. µ¹·ÁÁÖ¾îÁö´Â ij¸¯ÅÍ ¶óÀÎÀº ºñ¾úÀ» °æ¿ì°¡ ÀÖ½À´Ï´Ù¸¸,null ·Î´Â µÇÁö ¾Ê½À´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ paramString
¹Ýȯ°ª:
ÀÌ JTree ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇö

getAccessibleContext

public AccessibleContext  getAccessibleContext()
ÀÌ JTree ¿¡ °ü·ÃÇÑ AccessibleContext ¸¦ µ¹·ÁÁÝ´Ï´Ù. JTree ÀÇ °æ¿ì, AccessibleContext ´Â AccessibleJTree ÀÇ Çü½ÄÀ» ÃëÇÕ´Ï´Ù. Çʿ信 µû¶ó¼­ ½Å±ÔÀÇ AccessibleJTree ÀνºÅϽº°¡ ÀÛ¼ºµË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º Accessible ³»ÀÇ getAccessibleContext
¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º JComponent ³»ÀÇ getAccessibleContext
¹Ýȯ°ª:
ÀÌ JTree ÀÇ AccessibleContext ·Î¼­ ±â´ÉÇÏ´Â AccessibleJTree

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.