API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf. TreeUI View Source
Author(s)
Rob Davis
Scott Violet
Since
Version
1.25 11/17/05
Serial
Hierarchy
 Object
      ComponentUI
          TreeUI
Implements
Subclasses
Description
publicabstract abstract class TreeUI
Pluggable look and feel interface for JTree.
See also:   
Constructors
public TreeUI ()
Methods
Hide/Show inherited methods
publicabstract void cancelEditing (JTree tree)
  Cancels the current editing session.
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
publicstatic ComponentUI createUI (JComponent c) [Inherited From ComponentUI]
  Returns an instance of the UI delegate for the specified component.
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From ComponentUI]
  Returns the ith Accessible child of the object.
public int getAccessibleChildrenCount (JComponent c) [Inherited From ComponentUI]
  Returns the number of accessible children in the object.
public int getBaseline (JComponent c, int width, int height) [Inherited From ComponentUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Inherited From ComponentUI]
  Returns an enum indicating how the baseline of he component changes as the size changes.
publicabstract TreePath getClosestPathForLocation (JTree tree, int x, int y)
  Returns the path to the node that is closest to x,y.
publicabstract TreePath getEditingPath (JTree tree)
Returns the path to the element that is being edited.
public Dimension getMaximumSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's maximum size appropriate for the look and feel.
public Dimension getMinimumSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's minimum size appropriate for the look and feel.
publicabstract Rectangle getPathBounds (JTree tree, TreePath path)
  Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.
publicabstract TreePath getPathForRow (JTree tree, int row)
  Returns the path for passed in row.
public Dimension getPreferredSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's preferred size appropriate for the look and feel.
publicabstract int getRowCount (JTree tree)
Returns the number of rows that are being displayed.
publicabstract int getRowForPath (JTree tree, TreePath path)
  Returns the row that the last item identified in path is visible at.
public void installUI (JComponent c) [Inherited From ComponentUI]
  Configures the specified component appropriate for the look and feel.
publicabstract boolean isEditing (JTree tree)
  Returns true if the tree is being edited.
public void paint (Graphics g, JComponent c) [Inherited From ComponentUI]
  Paints the specified component appropriate for the look and feel.
publicabstract void startEditingAtPath (JTree tree, TreePath path)
  Selects the last item in path and tries to edit it.
publicabstract boolean stopEditing (JTree tree)
  Stops the current editing session.
public void uninstallUI (JComponent c) [Inherited From ComponentUI]
  Reverses configuration which was done on the specified component during installUI.
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar