javax.swing.plaf.basic
Class BasicTreeUI

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI 
      extended by javax.swing.plaf.TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI 
          extended by javax.swing.plaf.basic.BasicTreeUI
Direct Known Subclasses:
MetalTreeUI sample code for javax.swing.plaf.metal.MetalTreeUI definition code for javax.swing.plaf.metal.MetalTreeUI

public class BasicTreeUI
extends TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

The basic L&F for a hierarchical data structure.


Nested Class Summary
 class BasicTreeUI.CellEditorHandler sample code for javax.swing.plaf.basic.BasicTreeUI.CellEditorHandler definition code for javax.swing.plaf.basic.BasicTreeUI.CellEditorHandler
          Listener responsible for getting cell editing events and updating the tree accordingly.
 class BasicTreeUI.ComponentHandler sample code for javax.swing.plaf.basic.BasicTreeUI.ComponentHandler definition code for javax.swing.plaf.basic.BasicTreeUI.ComponentHandler
          Updates the preferred size when scrolling (if necessary).
 class BasicTreeUI.FocusHandler sample code for javax.swing.plaf.basic.BasicTreeUI.FocusHandler definition code for javax.swing.plaf.basic.BasicTreeUI.FocusHandler
          Repaints the lead selection row when focus is lost/gained.
 class BasicTreeUI.KeyHandler sample code for javax.swing.plaf.basic.BasicTreeUI.KeyHandler definition code for javax.swing.plaf.basic.BasicTreeUI.KeyHandler
          This is used to get mutliple key down events to appropriately generate events.
 class BasicTreeUI.MouseHandler sample code for javax.swing.plaf.basic.BasicTreeUI.MouseHandler definition code for javax.swing.plaf.basic.BasicTreeUI.MouseHandler
          TreeMouseListener is responsible for updating the selection based on mouse events.
 class BasicTreeUI.MouseInputHandler sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler
          MouseInputHandler handles passing all mouse events, including mouse motion events, until the mouse is released to the destination it is constructed with.
 class BasicTreeUI.NodeDimensionsHandler sample code for javax.swing.plaf.basic.BasicTreeUI.NodeDimensionsHandler definition code for javax.swing.plaf.basic.BasicTreeUI.NodeDimensionsHandler
          Class responsible for getting size of node, method is forwarded to BasicTreeUI method.
 class BasicTreeUI.PropertyChangeHandler sample code for javax.swing.plaf.basic.BasicTreeUI.PropertyChangeHandler definition code for javax.swing.plaf.basic.BasicTreeUI.PropertyChangeHandler
          PropertyChangeListener for the tree.
 class BasicTreeUI.SelectionModelPropertyChangeHandler sample code for javax.swing.plaf.basic.BasicTreeUI.SelectionModelPropertyChangeHandler definition code for javax.swing.plaf.basic.BasicTreeUI.SelectionModelPropertyChangeHandler
          Listener on the TreeSelectionModel, resets the row selection if any of the properties of the model change.
 class BasicTreeUI.TreeCancelEditingAction sample code for javax.swing.plaf.basic.BasicTreeUI.TreeCancelEditingAction definition code for javax.swing.plaf.basic.BasicTreeUI.TreeCancelEditingAction
          ActionListener that invokes cancelEditing when action performed.
 class BasicTreeUI.TreeExpansionHandler sample code for javax.swing.plaf.basic.BasicTreeUI.TreeExpansionHandler definition code for javax.swing.plaf.basic.BasicTreeUI.TreeExpansionHandler
          Updates the TreeState in response to nodes expanding/collapsing.
 class BasicTreeUI.TreeHomeAction sample code for javax.swing.plaf.basic.BasicTreeUI.TreeHomeAction definition code for javax.swing.plaf.basic.BasicTreeUI.TreeHomeAction
          TreeHomeAction is used to handle end/home actions.
 class BasicTreeUI.TreeIncrementAction sample code for javax.swing.plaf.basic.BasicTreeUI.TreeIncrementAction definition code for javax.swing.plaf.basic.BasicTreeUI.TreeIncrementAction
          TreeIncrementAction is used to handle up/down actions.
 class BasicTreeUI.TreeModelHandler sample code for javax.swing.plaf.basic.BasicTreeUI.TreeModelHandler definition code for javax.swing.plaf.basic.BasicTreeUI.TreeModelHandler
          Forwards all TreeModel events to the TreeState.
 class BasicTreeUI.TreePageAction sample code for javax.swing.plaf.basic.BasicTreeUI.TreePageAction definition code for javax.swing.plaf.basic.BasicTreeUI.TreePageAction
          TreePageAction handles page up and page down events.
 class BasicTreeUI.TreeSelectionHandler sample code for javax.swing.plaf.basic.BasicTreeUI.TreeSelectionHandler definition code for javax.swing.plaf.basic.BasicTreeUI.TreeSelectionHandler
          Listens for changes in the selection model and updates the display accordingly.
 class BasicTreeUI.TreeToggleAction sample code for javax.swing.plaf.basic.BasicTreeUI.TreeToggleAction definition code for javax.swing.plaf.basic.BasicTreeUI.TreeToggleAction
          For the first selected row expandedness will be toggled.
 class BasicTreeUI.TreeTraverseAction sample code for javax.swing.plaf.basic.BasicTreeUI.TreeTraverseAction definition code for javax.swing.plaf.basic.BasicTreeUI.TreeTraverseAction
          TreeTraverseAction is the action used for left/right keys.
 
Field Summary
protected  TreeCellEditor sample code for javax.swing.tree.TreeCellEditor definition code for javax.swing.tree.TreeCellEditor cellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.cellEditor definition code for javax.swing.plaf.basic.BasicTreeUI.cellEditor
          Editor for the tree.
protected  Icon sample code for javax.swing.Icon definition code for javax.swing.Icon collapsedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.collapsedIcon definition code for javax.swing.plaf.basic.BasicTreeUI.collapsedIcon
           
protected  boolean createdCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.createdCellEditor definition code for javax.swing.plaf.basic.BasicTreeUI.createdCellEditor
          Set to true if editor that is currently in the tree was created by this instance.
protected  boolean createdRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.createdRenderer definition code for javax.swing.plaf.basic.BasicTreeUI.createdRenderer
          Set to true if the renderer that is currently in the tree was created by this instance.
protected  TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer currentCellRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.currentCellRenderer definition code for javax.swing.plaf.basic.BasicTreeUI.currentCellRenderer
          Renderer that is being used to do the actual cell drawing.
protected  int depthOffset sample code for javax.swing.plaf.basic.BasicTreeUI.depthOffset definition code for javax.swing.plaf.basic.BasicTreeUI.depthOffset
          How much the depth should be offset to properly calculate x locations.
protected  Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable <TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath ,Boolean sample code for java.lang.Boolean definition code for java.lang.Boolean > drawingCache sample code for javax.swing.plaf.basic.BasicTreeUI.drawingCache definition code for javax.swing.plaf.basic.BasicTreeUI.drawingCache
          Used for minimizing the drawing of vertical lines.
protected  Component sample code for java.awt.Component definition code for java.awt.Component editingComponent sample code for javax.swing.plaf.basic.BasicTreeUI.editingComponent definition code for javax.swing.plaf.basic.BasicTreeUI.editingComponent
          When editing, this will be the Component that is doing the actual editing.
protected  TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath editingPath sample code for javax.swing.plaf.basic.BasicTreeUI.editingPath definition code for javax.swing.plaf.basic.BasicTreeUI.editingPath
          Path that is being edited.
protected  int editingRow sample code for javax.swing.plaf.basic.BasicTreeUI.editingRow definition code for javax.swing.plaf.basic.BasicTreeUI.editingRow
          Row that is being edited.
protected  boolean editorHasDifferentSize sample code for javax.swing.plaf.basic.BasicTreeUI.editorHasDifferentSize definition code for javax.swing.plaf.basic.BasicTreeUI.editorHasDifferentSize
          Set to true if the editor has a different size than the renderer.
protected  Icon sample code for javax.swing.Icon definition code for javax.swing.Icon expandedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.expandedIcon definition code for javax.swing.plaf.basic.BasicTreeUI.expandedIcon
           
protected  boolean largeModel sample code for javax.swing.plaf.basic.BasicTreeUI.largeModel definition code for javax.swing.plaf.basic.BasicTreeUI.largeModel
          True if doing optimizations for a largeModel.
protected  int lastSelectedRow sample code for javax.swing.plaf.basic.BasicTreeUI.lastSelectedRow definition code for javax.swing.plaf.basic.BasicTreeUI.lastSelectedRow
          Index of the row that was last selected.
protected  int leftChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.leftChildIndent definition code for javax.swing.plaf.basic.BasicTreeUI.leftChildIndent
          Distance between left margin and where vertical dashes will be drawn.
protected  AbstractLayoutCache.NodeDimensions sample code for javax.swing.tree.AbstractLayoutCache.NodeDimensions definition code for javax.swing.tree.AbstractLayoutCache.NodeDimensions nodeDimensions sample code for javax.swing.plaf.basic.BasicTreeUI.nodeDimensions definition code for javax.swing.plaf.basic.BasicTreeUI.nodeDimensions
          Reponsible for telling the TreeState the size needed for a node.
protected  Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension preferredMinSize sample code for javax.swing.plaf.basic.BasicTreeUI.preferredMinSize definition code for javax.swing.plaf.basic.BasicTreeUI.preferredMinSize
          Minimum preferred size.
protected  Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension preferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.preferredSize definition code for javax.swing.plaf.basic.BasicTreeUI.preferredSize
          Size needed to completely display all the nodes.
protected  CellRendererPane sample code for javax.swing.CellRendererPane definition code for javax.swing.CellRendererPane rendererPane sample code for javax.swing.plaf.basic.BasicTreeUI.rendererPane definition code for javax.swing.plaf.basic.BasicTreeUI.rendererPane
          Used to paint the TreeCellRenderer.
protected  int rightChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.rightChildIndent definition code for javax.swing.plaf.basic.BasicTreeUI.rightChildIndent
          Distance to add to leftChildIndent to determine where cell contents will be drawn.
protected  boolean stopEditingInCompleteEditing sample code for javax.swing.plaf.basic.BasicTreeUI.stopEditingInCompleteEditing definition code for javax.swing.plaf.basic.BasicTreeUI.stopEditingInCompleteEditing
          Set to false when editing and shouldSelectCell() returns true meaning the node should be selected before editing, used in completeEditing.
protected  int totalChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.totalChildIndent definition code for javax.swing.plaf.basic.BasicTreeUI.totalChildIndent
          Total distance that will be indented.
protected  JTree sample code for javax.swing.JTree definition code for javax.swing.JTree tree sample code for javax.swing.plaf.basic.BasicTreeUI.tree definition code for javax.swing.plaf.basic.BasicTreeUI.tree
          Component that we're going to be drawing into.
protected  TreeModel sample code for javax.swing.tree.TreeModel definition code for javax.swing.tree.TreeModel treeModel sample code for javax.swing.plaf.basic.BasicTreeUI.treeModel definition code for javax.swing.plaf.basic.BasicTreeUI.treeModel
          Used to determine what to display.
protected  TreeSelectionModel sample code for javax.swing.tree.TreeSelectionModel definition code for javax.swing.tree.TreeSelectionModel treeSelectionModel sample code for javax.swing.plaf.basic.BasicTreeUI.treeSelectionModel definition code for javax.swing.plaf.basic.BasicTreeUI.treeSelectionModel
          Model maintaing the selection.
protected  AbstractLayoutCache sample code for javax.swing.tree.AbstractLayoutCache definition code for javax.swing.tree.AbstractLayoutCache treeState sample code for javax.swing.plaf.basic.BasicTreeUI.treeState definition code for javax.swing.plaf.basic.BasicTreeUI.treeState
          Object responsible for handling sizing and expanded issues.
protected  boolean validCachedPreferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.validCachedPreferredSize definition code for javax.swing.plaf.basic.BasicTreeUI.validCachedPreferredSize
          Is the preferredSize valid?
 
Constructor Summary
BasicTreeUI sample code for javax.swing.plaf.basic.BasicTreeUI.BasicTreeUI() definition code for javax.swing.plaf.basic.BasicTreeUI.BasicTreeUI() ()
           
 
Method Summary
 void cancelEditing sample code for javax.swing.plaf.basic.BasicTreeUI.cancelEditing(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.cancelEditing(javax.swing.JTree) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
          Cancels the current editing session.
protected  void checkForClickInExpandControl sample code for javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(javax.swing.tree.TreePath, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(javax.swing.tree.TreePath, int, int) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path, int mouseX, int mouseY)
          If the mouseX and mouseY are in the expand/collapse region of the row, this will toggle the row.
protected  void completeEditing sample code for javax.swing.plaf.basic.BasicTreeUI.completeEditing() definition code for javax.swing.plaf.basic.BasicTreeUI.completeEditing() ()
          Messages to stop the editing session.
protected  void completeEditing sample code for javax.swing.plaf.basic.BasicTreeUI.completeEditing(boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.completeEditing(boolean, boolean, boolean) (boolean messageStop, boolean messageCancel, boolean messageTree)
          Stops the editing session.
protected  void completeUIInstall sample code for javax.swing.plaf.basic.BasicTreeUI.completeUIInstall() definition code for javax.swing.plaf.basic.BasicTreeUI.completeUIInstall() ()
          Invoked from installUI after all the defaults/listeners have been installed.
protected  void completeUIUninstall sample code for javax.swing.plaf.basic.BasicTreeUI.completeUIUninstall() definition code for javax.swing.plaf.basic.BasicTreeUI.completeUIUninstall() ()
           
protected  void configureLayoutCache sample code for javax.swing.plaf.basic.BasicTreeUI.configureLayoutCache() definition code for javax.swing.plaf.basic.BasicTreeUI.configureLayoutCache() ()
          Resets the TreeState instance based on the tree we're providing the look and feel for.
protected  CellEditorListener sample code for javax.swing.event.CellEditorListener definition code for javax.swing.event.CellEditorListener createCellEditorListener sample code for javax.swing.plaf.basic.BasicTreeUI.createCellEditorListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createCellEditorListener() ()
          Creates a listener to handle events from the current editor.
protected  CellRendererPane sample code for javax.swing.CellRendererPane definition code for javax.swing.CellRendererPane createCellRendererPane sample code for javax.swing.plaf.basic.BasicTreeUI.createCellRendererPane() definition code for javax.swing.plaf.basic.BasicTreeUI.createCellRendererPane() ()
          Returns the renderer pane that renderer components are placed in.
protected  ComponentListener sample code for java.awt.event.ComponentListener definition code for java.awt.event.ComponentListener createComponentListener sample code for javax.swing.plaf.basic.BasicTreeUI.createComponentListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createComponentListener() ()
          Creates and returns a new ComponentHandler.
protected  TreeCellEditor sample code for javax.swing.tree.TreeCellEditor definition code for javax.swing.tree.TreeCellEditor createDefaultCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.createDefaultCellEditor() definition code for javax.swing.plaf.basic.BasicTreeUI.createDefaultCellEditor() ()
          Creates a default cell editor.
protected  TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer createDefaultCellRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.createDefaultCellRenderer() definition code for javax.swing.plaf.basic.BasicTreeUI.createDefaultCellRenderer() ()
          Returns the default cell renderer that is used to do the stamping of each node.
protected  FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener createFocusListener sample code for javax.swing.plaf.basic.BasicTreeUI.createFocusListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createFocusListener() ()
          Creates a listener that is responsible for updating the display when focus is lost/gained.
protected  KeyListener sample code for java.awt.event.KeyListener definition code for java.awt.event.KeyListener createKeyListener sample code for javax.swing.plaf.basic.BasicTreeUI.createKeyListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createKeyListener() ()
          Creates the listener reponsible for getting key events from the tree.
protected  AbstractLayoutCache sample code for javax.swing.tree.AbstractLayoutCache definition code for javax.swing.tree.AbstractLayoutCache createLayoutCache sample code for javax.swing.plaf.basic.BasicTreeUI.createLayoutCache() definition code for javax.swing.plaf.basic.BasicTreeUI.createLayoutCache() ()
          Creates the object responsible for managing what is expanded, as well as the size of nodes.
protected  MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener createMouseListener sample code for javax.swing.plaf.basic.BasicTreeUI.createMouseListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createMouseListener() ()
          Creates the listener responsible for updating the selection based on mouse events.
protected  AbstractLayoutCache.NodeDimensions sample code for javax.swing.tree.AbstractLayoutCache.NodeDimensions definition code for javax.swing.tree.AbstractLayoutCache.NodeDimensions createNodeDimensions sample code for javax.swing.plaf.basic.BasicTreeUI.createNodeDimensions() definition code for javax.swing.plaf.basic.BasicTreeUI.createNodeDimensions() ()
          Creates an instance of NodeDimensions that is able to determine the size of a given node in the tree.
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicTreeUI.createPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createPropertyChangeListener() ()
          Creates a listener that is responsible that updates the UI based on how the tree changes.
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener createSelectionModelPropertyChangeListener sample code for javax.swing.plaf.basic.BasicTreeUI.createSelectionModelPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createSelectionModelPropertyChangeListener() ()
          Creates the listener responsible for getting property change events from the selection model.
protected  TreeExpansionListener sample code for javax.swing.event.TreeExpansionListener definition code for javax.swing.event.TreeExpansionListener createTreeExpansionListener sample code for javax.swing.plaf.basic.BasicTreeUI.createTreeExpansionListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createTreeExpansionListener() ()
          Creates and returns the object responsible for updating the treestate when nodes expanded state changes.
protected  TreeModelListener sample code for javax.swing.event.TreeModelListener definition code for javax.swing.event.TreeModelListener createTreeModelListener sample code for javax.swing.plaf.basic.BasicTreeUI.createTreeModelListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createTreeModelListener() ()
          Returns a listener that can update the tree when the model changes.
protected  TreeSelectionListener sample code for javax.swing.event.TreeSelectionListener definition code for javax.swing.event.TreeSelectionListener createTreeSelectionListener sample code for javax.swing.plaf.basic.BasicTreeUI.createTreeSelectionListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createTreeSelectionListener() ()
          Creates the listener that updates the display based on selection change methods.
static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI createUI sample code for javax.swing.plaf.basic.BasicTreeUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.createUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  x)
           
protected  void drawCentered sample code for javax.swing.plaf.basic.BasicTreeUI.drawCentered(java.awt.Component, java.awt.Graphics, javax.swing.Icon, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.drawCentered(java.awt.Component, java.awt.Graphics, javax.swing.Icon, int, int) (Component sample code for java.awt.Component definition code for java.awt.Component  c, Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  graphics, Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon, int x, int y)
           
protected  void drawDashedHorizontalLine sample code for javax.swing.plaf.basic.BasicTreeUI.drawDashedHorizontalLine(java.awt.Graphics, int, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.drawDashedHorizontalLine(java.awt.Graphics, int, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int y, int x1, int x2)
           
protected  void drawDashedVerticalLine sample code for javax.swing.plaf.basic.BasicTreeUI.drawDashedVerticalLine(java.awt.Graphics, int, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.drawDashedVerticalLine(java.awt.Graphics, int, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int x, int y1, int y2)
           
protected  void ensureRowsAreVisible sample code for javax.swing.plaf.basic.BasicTreeUI.ensureRowsAreVisible(int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.ensureRowsAreVisible(int, int) (int beginRow, int endRow)
          Ensures that the rows identified by beginRow through endRow are visible.
protected  TreeCellEditor sample code for javax.swing.tree.TreeCellEditor definition code for javax.swing.tree.TreeCellEditor getCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.getCellEditor() definition code for javax.swing.plaf.basic.BasicTreeUI.getCellEditor() ()
           
protected  TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer getCellRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.getCellRenderer() definition code for javax.swing.plaf.basic.BasicTreeUI.getCellRenderer() ()
          Return currentCellRenderer, which will either be the trees renderer, or defaultCellRenderer, which ever wasn't null.
 TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath getClosestPathForLocation sample code for javax.swing.plaf.basic.BasicTreeUI.getClosestPathForLocation(javax.swing.JTree, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.getClosestPathForLocation(javax.swing.JTree, int, int) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree, int x, int y)
          Returns the path to the node that is closest to x,y.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getCollapsedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.getCollapsedIcon() definition code for javax.swing.plaf.basic.BasicTreeUI.getCollapsedIcon() ()
           
 TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath getEditingPath sample code for javax.swing.plaf.basic.BasicTreeUI.getEditingPath(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.getEditingPath(javax.swing.JTree) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
          Returns the path to the element that is being edited.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getExpandedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.getExpandedIcon() definition code for javax.swing.plaf.basic.BasicTreeUI.getExpandedIcon() ()
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color getHashColor sample code for javax.swing.plaf.basic.BasicTreeUI.getHashColor() definition code for javax.swing.plaf.basic.BasicTreeUI.getHashColor() ()
           
protected  int getHorizontalLegBuffer sample code for javax.swing.plaf.basic.BasicTreeUI.getHorizontalLegBuffer() definition code for javax.swing.plaf.basic.BasicTreeUI.getHorizontalLegBuffer() ()
          The horizontal element of legs between nodes starts at the right of the left-hand side of the child node by default.
protected  TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath getLastChildPath sample code for javax.swing.plaf.basic.BasicTreeUI.getLastChildPath(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.getLastChildPath(javax.swing.tree.TreePath) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  parent)
          Returns a path to the last child of parent.
 int getLeftChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.getLeftChildIndent() definition code for javax.swing.plaf.basic.BasicTreeUI.getLeftChildIndent() ()
           
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMaximumSize sample code for javax.swing.plaf.basic.BasicTreeUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.getMaximumSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Returns the maximum size for this component, which will be the preferred size if the instance is currently in a JTree, or 0, 0.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMinimumSize sample code for javax.swing.plaf.basic.BasicTreeUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.getMinimumSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Returns the minimum size for this component.
protected  TreeModel sample code for javax.swing.tree.TreeModel definition code for javax.swing.tree.TreeModel getModel sample code for javax.swing.plaf.basic.BasicTreeUI.getModel() definition code for javax.swing.plaf.basic.BasicTreeUI.getModel() ()
           
 Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getPathBounds sample code for javax.swing.plaf.basic.BasicTreeUI.getPathBounds(javax.swing.JTree, javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.getPathBounds(javax.swing.JTree, javax.swing.tree.TreePath) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree, TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
          Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.
 TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath getPathForRow sample code for javax.swing.plaf.basic.BasicTreeUI.getPathForRow(javax.swing.JTree, int) definition code for javax.swing.plaf.basic.BasicTreeUI.getPathForRow(javax.swing.JTree, int) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree, int row)
          Returns the path for passed in row.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getPreferredMinSize sample code for javax.swing.plaf.basic.BasicTreeUI.getPreferredMinSize() definition code for javax.swing.plaf.basic.BasicTreeUI.getPreferredMinSize() ()
          Returns the minimum preferred size.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getPreferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Returns the preferred size to properly display the tree, this is a cover method for getPreferredSize(c, false).
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getPreferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(javax.swing.JComponent, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(javax.swing.JComponent, boolean) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c, boolean checkConsistancy)
          Returns the preferred size to represent the tree in c.
 int getRightChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.getRightChildIndent() definition code for javax.swing.plaf.basic.BasicTreeUI.getRightChildIndent() ()
           
 int getRowCount sample code for javax.swing.plaf.basic.BasicTreeUI.getRowCount(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.getRowCount(javax.swing.JTree) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
          Returns the number of rows that are being displayed.
 int getRowForPath sample code for javax.swing.plaf.basic.BasicTreeUI.getRowForPath(javax.swing.JTree, javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.getRowForPath(javax.swing.JTree, javax.swing.tree.TreePath) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree, TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
          Returns the row that the last item identified in path is visible at.
protected  int getRowHeight sample code for javax.swing.plaf.basic.BasicTreeUI.getRowHeight() definition code for javax.swing.plaf.basic.BasicTreeUI.getRowHeight() ()
           
protected  int getRowX sample code for javax.swing.plaf.basic.BasicTreeUI.getRowX(int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.getRowX(int, int) (int row, int depth)
          Returns the location, along the x-axis, to render a particular row at.
protected  TreeSelectionModel sample code for javax.swing.tree.TreeSelectionModel definition code for javax.swing.tree.TreeSelectionModel getSelectionModel sample code for javax.swing.plaf.basic.BasicTreeUI.getSelectionModel() definition code for javax.swing.plaf.basic.BasicTreeUI.getSelectionModel() ()
           
protected  boolean getShowsRootHandles sample code for javax.swing.plaf.basic.BasicTreeUI.getShowsRootHandles() definition code for javax.swing.plaf.basic.BasicTreeUI.getShowsRootHandles() ()
           
protected  int getVerticalLegBuffer sample code for javax.swing.plaf.basic.BasicTreeUI.getVerticalLegBuffer() definition code for javax.swing.plaf.basic.BasicTreeUI.getVerticalLegBuffer() ()
          The vertical element of legs between nodes starts at the bottom of the parent node by default.
protected  void handleExpandControlClick sample code for javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(javax.swing.tree.TreePath, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(javax.swing.tree.TreePath, int, int) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path, int mouseX, int mouseY)
          Messaged when the user clicks the particular row, this invokes toggleExpandState.
protected  void installComponents sample code for javax.swing.plaf.basic.BasicTreeUI.installComponents() definition code for javax.swing.plaf.basic.BasicTreeUI.installComponents() ()
          Intalls the subcomponents of the tree, which is the renderer pane.
protected  void installDefaults sample code for javax.swing.plaf.basic.BasicTreeUI.installDefaults() definition code for javax.swing.plaf.basic.BasicTreeUI.installDefaults() ()
           
protected  void installKeyboardActions sample code for javax.swing.plaf.basic.BasicTreeUI.installKeyboardActions() definition code for javax.swing.plaf.basic.BasicTreeUI.installKeyboardActions() ()
           
protected  void installListeners sample code for javax.swing.plaf.basic.BasicTreeUI.installListeners() definition code for javax.swing.plaf.basic.BasicTreeUI.installListeners() ()
           
 void installUI sample code for javax.swing.plaf.basic.BasicTreeUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.installUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Configures the specified component appropriate for the look and feel.
protected  boolean isEditable sample code for javax.swing.plaf.basic.BasicTreeUI.isEditable() definition code for javax.swing.plaf.basic.BasicTreeUI.isEditable() ()
           
 boolean isEditing sample code for javax.swing.plaf.basic.BasicTreeUI.isEditing(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.isEditing(javax.swing.JTree) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
          Returns true if the tree is being edited.
protected  boolean isLargeModel sample code for javax.swing.plaf.basic.BasicTreeUI.isLargeModel() definition code for javax.swing.plaf.basic.BasicTreeUI.isLargeModel() ()
           
protected  boolean isLeaf sample code for javax.swing.plaf.basic.BasicTreeUI.isLeaf(int) definition code for javax.swing.plaf.basic.BasicTreeUI.isLeaf(int) (int row)
           
protected  boolean isLocationInExpandControl sample code for javax.swing.plaf.basic.BasicTreeUI.isLocationInExpandControl(javax.swing.tree.TreePath, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.isLocationInExpandControl(javax.swing.tree.TreePath, int, int) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path, int mouseX, int mouseY)
          Returns true if mouseX and mouseY fall in the area of row that is used to expand/collapse the node and the node at row does not represent a leaf.
protected  boolean isMultiSelectEvent sample code for javax.swing.plaf.basic.BasicTreeUI.isMultiSelectEvent(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.isMultiSelectEvent(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
          Returning true signifies a mouse event on the node should select from the anchor point.
protected  boolean isRootVisible sample code for javax.swing.plaf.basic.BasicTreeUI.isRootVisible() definition code for javax.swing.plaf.basic.BasicTreeUI.isRootVisible() ()
           
protected  boolean isToggleEvent sample code for javax.swing.plaf.basic.BasicTreeUI.isToggleEvent(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.isToggleEvent(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
          Returning true indicates the row under the mouse should be toggled based on the event.
protected  boolean isToggleSelectionEvent sample code for javax.swing.plaf.basic.BasicTreeUI.isToggleSelectionEvent(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.isToggleSelectionEvent(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
          Returning true signifies a mouse event on the node should toggle the selection of only the row under mouse.
 void paint sample code for javax.swing.plaf.basic.BasicTreeUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.paint(java.awt.Graphics, javax.swing.JComponent) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Paints the specified component appropriate for the look and feel.
protected  void paintExpandControl sample code for javax.swing.plaf.basic.BasicTreeUI.paintExpandControl(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.paintExpandControl(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  clipBounds, Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  bounds, TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          Paints the expand (toggle) part of a row.
protected  void paintHorizontalLine sample code for javax.swing.plaf.basic.BasicTreeUI.paintHorizontalLine(java.awt.Graphics, javax.swing.JComponent, int, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.paintHorizontalLine(java.awt.Graphics, javax.swing.JComponent, int, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c, int y, int left, int right)
          Paints a horizontal line.
protected  void paintHorizontalPartOfLeg sample code for javax.swing.plaf.basic.BasicTreeUI.paintHorizontalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.paintHorizontalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  clipBounds, Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  bounds, TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          Paints the horizontal part of the leg.
protected  void paintRow sample code for javax.swing.plaf.basic.BasicTreeUI.paintRow(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.paintRow(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  clipBounds, Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  bounds, TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          Paints the renderer part of a row.
protected  void paintVerticalLine sample code for javax.swing.plaf.basic.BasicTreeUI.paintVerticalLine(java.awt.Graphics, javax.swing.JComponent, int, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.paintVerticalLine(java.awt.Graphics, javax.swing.JComponent, int, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c, int x, int top, int bottom)
          Paints a vertical line.
protected  void paintVerticalPartOfLeg sample code for javax.swing.plaf.basic.BasicTreeUI.paintVerticalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.paintVerticalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, javax.swing.tree.TreePath) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  clipBounds, Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets, TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
          Paints the vertical part of the leg.
protected  void pathWasCollapsed sample code for javax.swing.plaf.basic.BasicTreeUI.pathWasCollapsed(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.pathWasCollapsed(javax.swing.tree.TreePath) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
          Messaged from the VisibleTreeNode after it has collapsed.
protected  void pathWasExpanded sample code for javax.swing.plaf.basic.BasicTreeUI.pathWasExpanded(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.pathWasExpanded(javax.swing.tree.TreePath) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
          Messaged from the VisibleTreeNode after it has been expanded.
protected  void prepareForUIInstall sample code for javax.swing.plaf.basic.BasicTreeUI.prepareForUIInstall() definition code for javax.swing.plaf.basic.BasicTreeUI.prepareForUIInstall() ()
          Invoked after the tree instance variable has been set, but before any defaults/listeners have been installed.
protected  void prepareForUIUninstall sample code for javax.swing.plaf.basic.BasicTreeUI.prepareForUIUninstall() definition code for javax.swing.plaf.basic.BasicTreeUI.prepareForUIUninstall() ()
           
protected  void selectPathForEvent sample code for javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(javax.swing.tree.TreePath, java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(javax.swing.tree.TreePath, java.awt.event.MouseEvent) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path, MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
          Messaged to update the selection based on a MouseEvent over a particular row.
protected  void setCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.setCellEditor(javax.swing.tree.TreeCellEditor) definition code for javax.swing.plaf.basic.BasicTreeUI.setCellEditor(javax.swing.tree.TreeCellEditor) (TreeCellEditor sample code for javax.swing.tree.TreeCellEditor definition code for javax.swing.tree.TreeCellEditor  editor)
          Sets the cell editor.
protected  void setCellRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(javax.swing.tree.TreeCellRenderer) definition code for javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(javax.swing.tree.TreeCellRenderer) (TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer  tcr)
          Sets the TreeCellRenderer to tcr.
 void setCollapsedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.setCollapsedIcon(javax.swing.Icon) definition code for javax.swing.plaf.basic.BasicTreeUI.setCollapsedIcon(javax.swing.Icon) (Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newG)
           
protected  void setEditable sample code for javax.swing.plaf.basic.BasicTreeUI.setEditable(boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.setEditable(boolean) (boolean newValue)
          Configures the receiver to allow, or not allow, editing.
 void setExpandedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.setExpandedIcon(javax.swing.Icon) definition code for javax.swing.plaf.basic.BasicTreeUI.setExpandedIcon(javax.swing.Icon) (Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newG)
           
protected  void setHashColor sample code for javax.swing.plaf.basic.BasicTreeUI.setHashColor(java.awt.Color) definition code for javax.swing.plaf.basic.BasicTreeUI.setHashColor(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  color)
           
protected  void setLargeModel sample code for javax.swing.plaf.basic.BasicTreeUI.setLargeModel(boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.setLargeModel(boolean) (boolean largeModel)
          Updates the componentListener, if necessary.
 void setLeftChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.setLeftChildIndent(int) definition code for javax.swing.plaf.basic.BasicTreeUI.setLeftChildIndent(int) (int newAmount)
           
protected  void setModel sample code for javax.swing.plaf.basic.BasicTreeUI.setModel(javax.swing.tree.TreeModel) definition code for javax.swing.plaf.basic.BasicTreeUI.setModel(javax.swing.tree.TreeModel) (TreeModel sample code for javax.swing.tree.TreeModel definition code for javax.swing.tree.TreeModel  model)
          Sets the TreeModel.
 void setPreferredMinSize sample code for javax.swing.plaf.basic.BasicTreeUI.setPreferredMinSize(java.awt.Dimension) definition code for javax.swing.plaf.basic.BasicTreeUI.setPreferredMinSize(java.awt.Dimension) (Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  newSize)
          Sets the preferred minimum size.
 void setRightChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.setRightChildIndent(int) definition code for javax.swing.plaf.basic.BasicTreeUI.setRightChildIndent(int) (int newAmount)
           
protected  void setRootVisible sample code for javax.swing.plaf.basic.BasicTreeUI.setRootVisible(boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.setRootVisible(boolean) (boolean newValue)
          Sets the root to being visible.
protected  void setRowHeight sample code for javax.swing.plaf.basic.BasicTreeUI.setRowHeight(int) definition code for javax.swing.plaf.basic.BasicTreeUI.setRowHeight(int) (int rowHeight)
          Sets the row height, this is forwarded to the treeState.
protected  void setSelectionModel sample code for javax.swing.plaf.basic.BasicTreeUI.setSelectionModel(javax.swing.tree.TreeSelectionModel) definition code for javax.swing.plaf.basic.BasicTreeUI.setSelectionModel(javax.swing.tree.TreeSelectionModel) (TreeSelectionModel sample code for javax.swing.tree.TreeSelectionModel definition code for javax.swing.tree.TreeSelectionModel  newLSM)
          Resets the selection model.
protected  void setShowsRootHandles sample code for javax.swing.plaf.basic.BasicTreeUI.setShowsRootHandles(boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.setShowsRootHandles(boolean) (boolean newValue)
          Determines whether the node handles are to be displayed.
protected  boolean shouldPaintExpandControl sample code for javax.swing.plaf.basic.BasicTreeUI.shouldPaintExpandControl(javax.swing.tree.TreePath, int, boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.shouldPaintExpandControl(javax.swing.tree.TreePath, int, boolean, boolean, boolean) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          Returns true if the expand (toggle) control should be drawn for the specified row.
protected  boolean startEditing sample code for javax.swing.plaf.basic.BasicTreeUI.startEditing(javax.swing.tree.TreePath, java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.startEditing(javax.swing.tree.TreePath, java.awt.event.MouseEvent) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path, MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
          Will start editing for node if there is a cellEditor and shouldSelectCell returns true.
 void startEditingAtPath sample code for javax.swing.plaf.basic.BasicTreeUI.startEditingAtPath(javax.swing.JTree, javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.startEditingAtPath(javax.swing.JTree, javax.swing.tree.TreePath) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree, TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
          Selects the last item in path and tries to edit it.
 boolean stopEditing sample code for javax.swing.plaf.basic.BasicTreeUI.stopEditing(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.stopEditing(javax.swing.JTree) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
          Stops the current editing session.
protected  void toggleExpandState sample code for javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(javax.swing.tree.TreePath) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
          Expands path if it is not expanded, or collapses row if it is expanded.
protected  void uninstallComponents sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallComponents() definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallComponents() ()
          Uninstalls the renderer pane.
protected  void uninstallDefaults sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallDefaults() ()
           
protected  void uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallKeyboardActions() definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallKeyboardActions() ()
           
protected  void uninstallListeners sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallListeners() ()
           
 void uninstallUI sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Reverses configuration which was done on the specified component during installUI.
protected  void updateCachedPreferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.updateCachedPreferredSize() definition code for javax.swing.plaf.basic.BasicTreeUI.updateCachedPreferredSize() ()
          Updates the preferredSize instance variable, which is returned from getPreferredSize().
protected  void updateCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.updateCellEditor() definition code for javax.swing.plaf.basic.BasicTreeUI.updateCellEditor() ()
          Updates the cellEditor based on the editability of the JTree that we're contained in.
protected  void updateDepthOffset sample code for javax.swing.plaf.basic.BasicTreeUI.updateDepthOffset() definition code for javax.swing.plaf.basic.BasicTreeUI.updateDepthOffset() ()
          Updates how much each depth should be offset by.
protected  void updateExpandedDescendants sample code for javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(javax.swing.tree.TreePath) (TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
          Updates the expanded state of all the descendants of path by getting the expanded descendants from the tree and forwarding to the tree state.
protected  void updateLayoutCacheExpandedNodes sample code for javax.swing.plaf.basic.BasicTreeUI.updateLayoutCacheExpandedNodes() definition code for javax.swing.plaf.basic.BasicTreeUI.updateLayoutCacheExpandedNodes() ()
          Makes all the nodes that are expanded in JTree expanded in LayoutCache.
protected  void updateRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.updateRenderer() definition code for javax.swing.plaf.basic.BasicTreeUI.updateRenderer() ()
          Messaged from the tree we're in when the renderer has changed.
protected  void updateSize sample code for javax.swing.plaf.basic.BasicTreeUI.updateSize() definition code for javax.swing.plaf.basic.BasicTreeUI.updateSize() ()
          Marks the cached size as being invalid, and messages the tree with treeDidChange.
 
Methods inherited from class javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
contains sample code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) definition code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) , getAccessibleChild sample code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) definition code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) , getAccessibleChildrenCount sample code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) , update sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

collapsedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.collapsedIcon

protected transient Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  collapsedIcon

expandedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.expandedIcon

protected transient Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  expandedIcon

leftChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.leftChildIndent

protected int leftChildIndent
Distance between left margin and where vertical dashes will be drawn.


rightChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.rightChildIndent

protected int rightChildIndent
Distance to add to leftChildIndent to determine where cell contents will be drawn.


totalChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.totalChildIndent

protected int totalChildIndent
Total distance that will be indented. The sum of leftChildIndent and rightChildIndent.


preferredMinSize sample code for javax.swing.plaf.basic.BasicTreeUI.preferredMinSize

protected Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  preferredMinSize
Minimum preferred size.


lastSelectedRow sample code for javax.swing.plaf.basic.BasicTreeUI.lastSelectedRow

protected int lastSelectedRow
Index of the row that was last selected.


tree sample code for javax.swing.plaf.basic.BasicTreeUI.tree

protected JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree
Component that we're going to be drawing into.


currentCellRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.currentCellRenderer

protected transient TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer  currentCellRenderer
Renderer that is being used to do the actual cell drawing.


createdRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.createdRenderer

protected boolean createdRenderer
Set to true if the renderer that is currently in the tree was created by this instance.


cellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.cellEditor

protected transient TreeCellEditor sample code for javax.swing.tree.TreeCellEditor definition code for javax.swing.tree.TreeCellEditor  cellEditor
Editor for the tree.


createdCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.createdCellEditor

protected boolean createdCellEditor
Set to true if editor that is currently in the tree was created by this instance.


stopEditingInCompleteEditing sample code for javax.swing.plaf.basic.BasicTreeUI.stopEditingInCompleteEditing

protected boolean stopEditingInCompleteEditing
Set to false when editing and shouldSelectCell() returns true meaning the node should be selected before editing, used in completeEditing.


rendererPane sample code for javax.swing.plaf.basic.BasicTreeUI.rendererPane

protected CellRendererPane sample code for javax.swing.CellRendererPane definition code for javax.swing.CellRendererPane  rendererPane
Used to paint the TreeCellRenderer.


preferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.preferredSize

protected Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  preferredSize
Size needed to completely display all the nodes.


validCachedPreferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.validCachedPreferredSize

protected boolean validCachedPreferredSize
Is the preferredSize valid?


treeState sample code for javax.swing.plaf.basic.BasicTreeUI.treeState

protected AbstractLayoutCache sample code for javax.swing.tree.AbstractLayoutCache definition code for javax.swing.tree.AbstractLayoutCache  treeState
Object responsible for handling sizing and expanded issues.


drawingCache sample code for javax.swing.plaf.basic.BasicTreeUI.drawingCache

protected Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable <TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath ,Boolean sample code for java.lang.Boolean definition code for java.lang.Boolean > drawingCache
Used for minimizing the drawing of vertical lines.


largeModel sample code for javax.swing.plaf.basic.BasicTreeUI.largeModel

protected boolean largeModel
True if doing optimizations for a largeModel. Subclasses that don't support this may wish to override createLayoutCache to not return a FixedHeightLayoutCache instance.


nodeDimensions sample code for javax.swing.plaf.basic.BasicTreeUI.nodeDimensions

protected AbstractLayoutCache.NodeDimensions sample code for javax.swing.tree.AbstractLayoutCache.NodeDimensions definition code for javax.swing.tree.AbstractLayoutCache.NodeDimensions  nodeDimensions
Reponsible for telling the TreeState the size needed for a node.


treeModel sample code for javax.swing.plaf.basic.BasicTreeUI.treeModel

protected TreeModel sample code for javax.swing.tree.TreeModel definition code for javax.swing.tree.TreeModel  treeModel
Used to determine what to display.


treeSelectionModel sample code for javax.swing.plaf.basic.BasicTreeUI.treeSelectionModel

protected TreeSelectionModel sample code for javax.swing.tree.TreeSelectionModel definition code for javax.swing.tree.TreeSelectionModel  treeSelectionModel
Model maintaing the selection.


depthOffset sample code for javax.swing.plaf.basic.BasicTreeUI.depthOffset

protected int depthOffset
How much the depth should be offset to properly calculate x locations. This is based on whether or not the root is visible, and if the root handles are visible.


editingComponent sample code for javax.swing.plaf.basic.BasicTreeUI.editingComponent

protected Component sample code for java.awt.Component definition code for java.awt.Component  editingComponent
When editing, this will be the Component that is doing the actual editing.


editingPath sample code for javax.swing.plaf.basic.BasicTreeUI.editingPath

protected TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  editingPath
Path that is being edited.


editingRow sample code for javax.swing.plaf.basic.BasicTreeUI.editingRow

protected int editingRow
Row that is being edited. Should only be referenced if editingComponent is not null.


editorHasDifferentSize sample code for javax.swing.plaf.basic.BasicTreeUI.editorHasDifferentSize

protected boolean editorHasDifferentSize
Set to true if the editor has a different size than the renderer.

Constructor Detail

BasicTreeUI sample code for javax.swing.plaf.basic.BasicTreeUI() definition code for javax.swing.plaf.basic.BasicTreeUI()

public BasicTreeUI()
Method Detail

createUI sample code for javax.swing.plaf.basic.BasicTreeUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.createUI(javax.swing.JComponent)

public static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI  createUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  x)

getHashColor sample code for javax.swing.plaf.basic.BasicTreeUI.getHashColor() definition code for javax.swing.plaf.basic.BasicTreeUI.getHashColor()

protected Color sample code for java.awt.Color definition code for java.awt.Color  getHashColor()

setHashColor sample code for javax.swing.plaf.basic.BasicTreeUI.setHashColor(java.awt.Color) definition code for javax.swing.plaf.basic.BasicTreeUI.setHashColor(java.awt.Color)

protected void setHashColor(Color sample code for java.awt.Color definition code for java.awt.Color  color)

setLeftChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.setLeftChildIndent(int) definition code for javax.swing.plaf.basic.BasicTreeUI.setLeftChildIndent(int)

public void setLeftChildIndent(int newAmount)

getLeftChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.getLeftChildIndent() definition code for javax.swing.plaf.basic.BasicTreeUI.getLeftChildIndent()

public int getLeftChildIndent()

setRightChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.setRightChildIndent(int) definition code for javax.swing.plaf.basic.BasicTreeUI.setRightChildIndent(int)

public void setRightChildIndent(int newAmount)

getRightChildIndent sample code for javax.swing.plaf.basic.BasicTreeUI.getRightChildIndent() definition code for javax.swing.plaf.basic.BasicTreeUI.getRightChildIndent()

public int getRightChildIndent()

setExpandedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.setExpandedIcon(javax.swing.Icon) definition code for javax.swing.plaf.basic.BasicTreeUI.setExpandedIcon(javax.swing.Icon)

public void setExpandedIcon(Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newG)

getExpandedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.getExpandedIcon() definition code for javax.swing.plaf.basic.BasicTreeUI.getExpandedIcon()

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getExpandedIcon()

setCollapsedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.setCollapsedIcon(javax.swing.Icon) definition code for javax.swing.plaf.basic.BasicTreeUI.setCollapsedIcon(javax.swing.Icon)

public void setCollapsedIcon(Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newG)

getCollapsedIcon sample code for javax.swing.plaf.basic.BasicTreeUI.getCollapsedIcon() definition code for javax.swing.plaf.basic.BasicTreeUI.getCollapsedIcon()

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getCollapsedIcon()

setLargeModel sample code for javax.swing.plaf.basic.BasicTreeUI.setLargeModel(boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.setLargeModel(boolean)

protected void setLargeModel(boolean largeModel)
Updates the componentListener, if necessary.


isLargeModel sample code for javax.swing.plaf.basic.BasicTreeUI.isLargeModel() definition code for javax.swing.plaf.basic.BasicTreeUI.isLargeModel()

protected boolean isLargeModel()

setRowHeight sample code for javax.swing.plaf.basic.BasicTreeUI.setRowHeight(int) definition code for javax.swing.plaf.basic.BasicTreeUI.setRowHeight(int)

protected void setRowHeight(int rowHeight)
Sets the row height, this is forwarded to the treeState.


getRowHeight sample code for javax.swing.plaf.basic.BasicTreeUI.getRowHeight() definition code for javax.swing.plaf.basic.BasicTreeUI.getRowHeight()

protected int getRowHeight()

setCellRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(javax.swing.tree.TreeCellRenderer) definition code for javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(javax.swing.tree.TreeCellRenderer)

protected void setCellRenderer(TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer  tcr)
Sets the TreeCellRenderer to tcr. This invokes updateRenderer.


getCellRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.getCellRenderer() definition code for javax.swing.plaf.basic.BasicTreeUI.getCellRenderer()

protected TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer  getCellRenderer()
Return currentCellRenderer, which will either be the trees renderer, or defaultCellRenderer, which ever wasn't null.


setModel sample code for javax.swing.plaf.basic.BasicTreeUI.setModel(javax.swing.tree.TreeModel) definition code for javax.swing.plaf.basic.BasicTreeUI.setModel(javax.swing.tree.TreeModel)

protected void setModel(TreeModel sample code for javax.swing.tree.TreeModel definition code for javax.swing.tree.TreeModel  model)
Sets the TreeModel.


getModel sample code for javax.swing.plaf.basic.BasicTreeUI.getModel() definition code for javax.swing.plaf.basic.BasicTreeUI.getModel()

protected TreeModel sample code for javax.swing.tree.TreeModel definition code for javax.swing.tree.TreeModel  getModel()

setRootVisible sample code for javax.swing.plaf.basic.BasicTreeUI.setRootVisible(boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.setRootVisible(boolean)

protected void setRootVisible(boolean newValue)
Sets the root to being visible.


isRootVisible sample code for javax.swing.plaf.basic.BasicTreeUI.isRootVisible() definition code for javax.swing.plaf.basic.BasicTreeUI.isRootVisible()

protected boolean isRootVisible()

setShowsRootHandles sample code for javax.swing.plaf.basic.BasicTreeUI.setShowsRootHandles(boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.setShowsRootHandles(boolean)

protected void setShowsRootHandles(boolean newValue)
Determines whether the node handles are to be displayed.


getShowsRootHandles sample code for javax.swing.plaf.basic.BasicTreeUI.getShowsRootHandles() definition code for javax.swing.plaf.basic.BasicTreeUI.getShowsRootHandles()

protected boolean getShowsRootHandles()

setCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.setCellEditor(javax.swing.tree.TreeCellEditor) definition code for javax.swing.plaf.basic.BasicTreeUI.setCellEditor(javax.swing.tree.TreeCellEditor)

protected void setCellEditor(TreeCellEditor sample code for javax.swing.tree.TreeCellEditor definition code for javax.swing.tree.TreeCellEditor  editor)
Sets the cell editor.


getCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.getCellEditor() definition code for javax.swing.plaf.basic.BasicTreeUI.getCellEditor()

protected TreeCellEditor sample code for javax.swing.tree.TreeCellEditor definition code for javax.swing.tree.TreeCellEditor  getCellEditor()

setEditable sample code for javax.swing.plaf.basic.BasicTreeUI.setEditable(boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.setEditable(boolean)

protected void setEditable(boolean newValue)
Configures the receiver to allow, or not allow, editing.


isEditable sample code for javax.swing.plaf.basic.BasicTreeUI.isEditable() definition code for javax.swing.plaf.basic.BasicTreeUI.isEditable()

protected boolean isEditable()

setSelectionModel sample code for javax.swing.plaf.basic.BasicTreeUI.setSelectionModel(javax.swing.tree.TreeSelectionModel) definition code for javax.swing.plaf.basic.BasicTreeUI.setSelectionModel(javax.swing.tree.TreeSelectionModel)

protected void setSelectionModel(TreeSelectionModel sample code for javax.swing.tree.TreeSelectionModel definition code for javax.swing.tree.TreeSelectionModel  newLSM)
Resets the selection model. The appropriate listener are installed on the model.


getSelectionModel sample code for javax.swing.plaf.basic.BasicTreeUI.getSelectionModel() definition code for javax.swing.plaf.basic.BasicTreeUI.getSelectionModel()

protected TreeSelectionModel sample code for javax.swing.tree.TreeSelectionModel definition code for javax.swing.tree.TreeSelectionModel  getSelectionModel()

getPathBounds sample code for javax.swing.plaf.basic.BasicTreeUI.getPathBounds(javax.swing.JTree, javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.getPathBounds(javax.swing.JTree, javax.swing.tree.TreePath)

public Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getPathBounds(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree,
                               TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. Will return null if any component in path is currently valid.

Specified by:
getPathBounds sample code for javax.swing.plaf.TreeUI.getPathBounds(javax.swing.JTree, javax.swing.tree.TreePath) definition code for javax.swing.plaf.TreeUI.getPathBounds(javax.swing.JTree, javax.swing.tree.TreePath) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

getPathForRow sample code for javax.swing.plaf.basic.BasicTreeUI.getPathForRow(javax.swing.JTree, int) definition code for javax.swing.plaf.basic.BasicTreeUI.getPathForRow(javax.swing.JTree, int)

public TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  getPathForRow(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree,
                              int row)
Returns the path for passed in row. If row is not visible null is returned.

Specified by:
getPathForRow sample code for javax.swing.plaf.TreeUI.getPathForRow(javax.swing.JTree, int) definition code for javax.swing.plaf.TreeUI.getPathForRow(javax.swing.JTree, int) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

getRowForPath sample code for javax.swing.plaf.basic.BasicTreeUI.getRowForPath(javax.swing.JTree, javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.getRowForPath(javax.swing.JTree, javax.swing.tree.TreePath)

public int getRowForPath(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree,
                         TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
Returns the row that the last item identified in path is visible at. Will return -1 if any of the elements in path are not currently visible.

Specified by:
getRowForPath sample code for javax.swing.plaf.TreeUI.getRowForPath(javax.swing.JTree, javax.swing.tree.TreePath) definition code for javax.swing.plaf.TreeUI.getRowForPath(javax.swing.JTree, javax.swing.tree.TreePath) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

getRowCount sample code for javax.swing.plaf.basic.BasicTreeUI.getRowCount(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.getRowCount(javax.swing.JTree)

public int getRowCount(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
Returns the number of rows that are being displayed.

Specified by:
getRowCount sample code for javax.swing.plaf.TreeUI.getRowCount(javax.swing.JTree) definition code for javax.swing.plaf.TreeUI.getRowCount(javax.swing.JTree) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

getClosestPathForLocation sample code for javax.swing.plaf.basic.BasicTreeUI.getClosestPathForLocation(javax.swing.JTree, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.getClosestPathForLocation(javax.swing.JTree, int, int)

public TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  getClosestPathForLocation(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree,
                                          int x,
                                          int y)
Returns the path to the node that is closest to x,y. If there is nothing currently visible this will return null, otherwise it'll always return a valid path. If you need to test if the returned object is exactly at x, y you should get the bounds for the returned path and test x, y against that.

Specified by:
getClosestPathForLocation sample code for javax.swing.plaf.TreeUI.getClosestPathForLocation(javax.swing.JTree, int, int) definition code for javax.swing.plaf.TreeUI.getClosestPathForLocation(javax.swing.JTree, int, int) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

isEditing sample code for javax.swing.plaf.basic.BasicTreeUI.isEditing(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.isEditing(javax.swing.JTree)

public boolean isEditing(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
Returns true if the tree is being edited. The item that is being edited can be returned by getEditingPath().

Specified by:
isEditing sample code for javax.swing.plaf.TreeUI.isEditing(javax.swing.JTree) definition code for javax.swing.plaf.TreeUI.isEditing(javax.swing.JTree) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

stopEditing sample code for javax.swing.plaf.basic.BasicTreeUI.stopEditing(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.stopEditing(javax.swing.JTree)

public boolean stopEditing(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
Stops the current editing session. This has no effect if the tree isn't being edited. Returns true if the editor allows the editing session to stop.

Specified by:
stopEditing sample code for javax.swing.plaf.TreeUI.stopEditing(javax.swing.JTree) definition code for javax.swing.plaf.TreeUI.stopEditing(javax.swing.JTree) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

cancelEditing sample code for javax.swing.plaf.basic.BasicTreeUI.cancelEditing(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.cancelEditing(javax.swing.JTree)

public void cancelEditing(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
Cancels the current editing session.

Specified by:
cancelEditing sample code for javax.swing.plaf.TreeUI.cancelEditing(javax.swing.JTree) definition code for javax.swing.plaf.TreeUI.cancelEditing(javax.swing.JTree) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

startEditingAtPath sample code for javax.swing.plaf.basic.BasicTreeUI.startEditingAtPath(javax.swing.JTree, javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.startEditingAtPath(javax.swing.JTree, javax.swing.tree.TreePath)

public void startEditingAtPath(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree,
                               TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
Selects the last item in path and tries to edit it. Editing will fail if the CellEditor won't allow it for the selected item.

Specified by:
startEditingAtPath sample code for javax.swing.plaf.TreeUI.startEditingAtPath(javax.swing.JTree, javax.swing.tree.TreePath) definition code for javax.swing.plaf.TreeUI.startEditingAtPath(javax.swing.JTree, javax.swing.tree.TreePath) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

getEditingPath sample code for javax.swing.plaf.basic.BasicTreeUI.getEditingPath(javax.swing.JTree) definition code for javax.swing.plaf.basic.BasicTreeUI.getEditingPath(javax.swing.JTree)

public TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  getEditingPath(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree)
Returns the path to the element that is being edited.

Specified by:
getEditingPath sample code for javax.swing.plaf.TreeUI.getEditingPath(javax.swing.JTree) definition code for javax.swing.plaf.TreeUI.getEditingPath(javax.swing.JTree) in class TreeUI sample code for javax.swing.plaf.TreeUI definition code for javax.swing.plaf.TreeUI

installUI sample code for javax.swing.plaf.basic.BasicTreeUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.installUI(javax.swing.JComponent)

public void installUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent)
Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:
  1. Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
  6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  7. Initialize any appropriate instance data.

Overrides:
installUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component where this UI delegate is being installed
See Also:
ComponentUI.uninstallUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) , JComponent.setUI(javax.swing.plaf.ComponentUI) sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

prepareForUIInstall sample code for javax.swing.plaf.basic.BasicTreeUI.prepareForUIInstall() definition code for javax.swing.plaf.basic.BasicTreeUI.prepareForUIInstall()

protected void prepareForUIInstall()
Invoked after the tree instance variable has been set, but before any defaults/listeners have been installed.


completeUIInstall sample code for javax.swing.plaf.basic.BasicTreeUI.completeUIInstall() definition code for javax.swing.plaf.basic.BasicTreeUI.completeUIInstall()

protected void completeUIInstall()
Invoked from installUI after all the defaults/listeners have been installed.


installDefaults sample code for javax.swing.plaf.basic.BasicTreeUI.installDefaults() definition code for javax.swing.plaf.basic.BasicTreeUI.installDefaults()

protected void installDefaults()

installListeners sample code for javax.swing.plaf.basic.BasicTreeUI.installListeners() definition code for javax.swing.plaf.basic.BasicTreeUI.installListeners()

protected void installListeners()

installKeyboardActions sample code for javax.swing.plaf.basic.BasicTreeUI.installKeyboardActions() definition code for javax.swing.plaf.basic.BasicTreeUI.installKeyboardActions()

protected void installKeyboardActions()

installComponents sample code for javax.swing.plaf.basic.BasicTreeUI.installComponents() definition code for javax.swing.plaf.basic.BasicTreeUI.installComponents()

protected void installComponents()
Intalls the subcomponents of the tree, which is the renderer pane.


createNodeDimensions sample code for javax.swing.plaf.basic.BasicTreeUI.createNodeDimensions() definition code for javax.swing.plaf.basic.BasicTreeUI.createNodeDimensions()

protected AbstractLayoutCache.NodeDimensions sample code for javax.swing.tree.AbstractLayoutCache.NodeDimensions definition code for javax.swing.tree.AbstractLayoutCache.NodeDimensions  createNodeDimensions()
Creates an instance of NodeDimensions that is able to determine the size of a given node in the tree.


createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicTreeUI.createPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createPropertyChangeListener()

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  createPropertyChangeListener()
Creates a listener that is responsible that updates the UI based on how the tree changes.


createMouseListener sample code for javax.swing.plaf.basic.BasicTreeUI.createMouseListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createMouseListener()

protected MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener  createMouseListener()
Creates the listener responsible for updating the selection based on mouse events.


createFocusListener sample code for javax.swing.plaf.basic.BasicTreeUI.createFocusListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createFocusListener()

protected FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  createFocusListener()
Creates a listener that is responsible for updating the display when focus is lost/gained.


createKeyListener sample code for javax.swing.plaf.basic.BasicTreeUI.createKeyListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createKeyListener()

protected KeyListener sample code for java.awt.event.KeyListener definition code for java.awt.event.KeyListener  createKeyListener()
Creates the listener reponsible for getting key events from the tree.


createSelectionModelPropertyChangeListener sample code for javax.swing.plaf.basic.BasicTreeUI.createSelectionModelPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createSelectionModelPropertyChangeListener()

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  createSelectionModelPropertyChangeListener()
Creates the listener responsible for getting property change events from the selection model.


createTreeSelectionListener sample code for javax.swing.plaf.basic.BasicTreeUI.createTreeSelectionListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createTreeSelectionListener()

protected TreeSelectionListener sample code for javax.swing.event.TreeSelectionListener definition code for javax.swing.event.TreeSelectionListener  createTreeSelectionListener()
Creates the listener that updates the display based on selection change methods.


createCellEditorListener sample code for javax.swing.plaf.basic.BasicTreeUI.createCellEditorListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createCellEditorListener()

protected CellEditorListener sample code for javax.swing.event.CellEditorListener definition code for javax.swing.event.CellEditorListener  createCellEditorListener()
Creates a listener to handle events from the current editor.


createComponentListener sample code for javax.swing.plaf.basic.BasicTreeUI.createComponentListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createComponentListener()

protected ComponentListener sample code for java.awt.event.ComponentListener definition code for java.awt.event.ComponentListener  createComponentListener()
Creates and returns a new ComponentHandler. This is used for the large model to mark the validCachedPreferredSize as invalid when the component moves.


createTreeExpansionListener sample code for javax.swing.plaf.basic.BasicTreeUI.createTreeExpansionListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createTreeExpansionListener()

protected TreeExpansionListener sample code for javax.swing.event.TreeExpansionListener definition code for javax.swing.event.TreeExpansionListener  createTreeExpansionListener()
Creates and returns the object responsible for updating the treestate when nodes expanded state changes.


createLayoutCache sample code for javax.swing.plaf.basic.BasicTreeUI.createLayoutCache() definition code for javax.swing.plaf.basic.BasicTreeUI.createLayoutCache()

protected AbstractLayoutCache sample code for javax.swing.tree.AbstractLayoutCache definition code for javax.swing.tree.AbstractLayoutCache  createLayoutCache()
Creates the object responsible for managing what is expanded, as well as the size of nodes.


createCellRendererPane sample code for javax.swing.plaf.basic.BasicTreeUI.createCellRendererPane() definition code for javax.swing.plaf.basic.BasicTreeUI.createCellRendererPane()

protected CellRendererPane sample code for javax.swing.CellRendererPane definition code for javax.swing.CellRendererPane  createCellRendererPane()
Returns the renderer pane that renderer components are placed in.


createDefaultCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.createDefaultCellEditor() definition code for javax.swing.plaf.basic.BasicTreeUI.createDefaultCellEditor()

protected TreeCellEditor sample code for javax.swing.tree.TreeCellEditor definition code for javax.swing.tree.TreeCellEditor  createDefaultCellEditor()
Creates a default cell editor.


createDefaultCellRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.createDefaultCellRenderer() definition code for javax.swing.plaf.basic.BasicTreeUI.createDefaultCellRenderer()

protected TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer  createDefaultCellRenderer()
Returns the default cell renderer that is used to do the stamping of each node.


createTreeModelListener sample code for javax.swing.plaf.basic.BasicTreeUI.createTreeModelListener() definition code for javax.swing.plaf.basic.BasicTreeUI.createTreeModelListener()

protected TreeModelListener sample code for javax.swing.event.TreeModelListener definition code for javax.swing.event.TreeModelListener  createTreeModelListener()
Returns a listener that can update the tree when the model changes.


uninstallUI sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallUI(javax.swing.JComponent)

public void uninstallUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent)
Reverses configuration which was done on the specified component during installUI. This method is invoked when this UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in installUI, being careful to leave the JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:
  1. Remove any UI-set borders from the component.
  2. Remove any UI-set layout managers on the component.
  3. Remove any UI-added sub-components from the component.
  4. Remove any UI-added event/property listeners from the component.
  5. Remove any UI-installed keyboard UI from the component.
  6. Nullify any allocated instance data objects to allow for GC.

Overrides:
uninstallUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.installUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

prepareForUIUninstall sample code for javax.swing.plaf.basic.BasicTreeUI.prepareForUIUninstall() definition code for javax.swing.plaf.basic.BasicTreeUI.prepareForUIUninstall()

protected void prepareForUIUninstall()

completeUIUninstall sample code for javax.swing.plaf.basic.BasicTreeUI.completeUIUninstall() definition code for javax.swing.plaf.basic.BasicTreeUI.completeUIUninstall()

protected void completeUIUninstall()

uninstallDefaults sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallDefaults()

protected void uninstallDefaults()

uninstallListeners sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallListeners()

protected void uninstallListeners()

uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallKeyboardActions() definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallKeyboardActions()

protected void uninstallKeyboardActions()

uninstallComponents sample code for javax.swing.plaf.basic.BasicTreeUI.uninstallComponents() definition code for javax.swing.plaf.basic.BasicTreeUI.uninstallComponents()

protected void uninstallComponents()
Uninstalls the renderer pane.


paint sample code for javax.swing.plaf.basic.BasicTreeUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.paint(java.awt.Graphics, javax.swing.JComponent)

public void paint(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                  JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
Paints the specified component appropriate for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.

Overrides:
paint sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
g - the Graphics context in which to paint
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)

paintHorizontalPartOfLeg sample code for javax.swing.plaf.basic.BasicTreeUI.paintHorizontalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.paintHorizontalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean)

protected void paintHorizontalPartOfLeg(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                        Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  clipBounds,
                                        Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets,
                                        Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  bounds,
                                        TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path,
                                        int row,
                                        boolean isExpanded,
                                        boolean hasBeenExpanded,
                                        boolean isLeaf)
Paints the horizontal part of the leg. The receiver should NOT modify clipBounds, or insets.

NOTE: parentRow can be -1 if the root is not visible.


paintVerticalPartOfLeg sample code for javax.swing.plaf.basic.BasicTreeUI.paintVerticalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.paintVerticalPartOfLeg(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, javax.swing.tree.TreePath)

protected void paintVerticalPartOfLeg(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                      Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  clipBounds,
                                      Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets,
                                      TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
Paints the vertical part of the leg. The receiver should NOT modify clipBounds, insets.


paintExpandControl sample code for javax.swing.plaf.basic.BasicTreeUI.paintExpandControl(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.paintExpandControl(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean)

protected void paintExpandControl(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  clipBounds,
                                  Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets,
                                  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  bounds,
                                  TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path,
                                  int row,
                                  boolean isExpanded,
                                  boolean hasBeenExpanded,
                                  boolean isLeaf)
Paints the expand (toggle) part of a row. The receiver should NOT modify clipBounds, or insets.


paintRow sample code for javax.swing.plaf.basic.BasicTreeUI.paintRow(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.paintRow(java.awt.Graphics, java.awt.Rectangle, java.awt.Insets, java.awt.Rectangle, javax.swing.tree.TreePath, int, boolean, boolean, boolean)

protected void paintRow(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                        Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  clipBounds,
                        Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets,
                        Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  bounds,
                        TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path,
                        int row,
                        boolean isExpanded,
                        boolean hasBeenExpanded,
                        boolean isLeaf)
Paints the renderer part of a row. The receiver should NOT modify clipBounds, or insets.


shouldPaintExpandControl sample code for javax.swing.plaf.basic.BasicTreeUI.shouldPaintExpandControl(javax.swing.tree.TreePath, int, boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.shouldPaintExpandControl(javax.swing.tree.TreePath, int, boolean, boolean, boolean)

protected boolean shouldPaintExpandControl(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path,
                                           int row,
                                           boolean isExpanded,
                                           boolean hasBeenExpanded,
                                           boolean isLeaf)
Returns true if the expand (toggle) control should be drawn for the specified row.


paintVerticalLine sample code for javax.swing.plaf.basic.BasicTreeUI.paintVerticalLine(java.awt.Graphics, javax.swing.JComponent, int, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.paintVerticalLine(java.awt.Graphics, javax.swing.JComponent, int, int, int)

protected void paintVerticalLine(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                 JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c,
                                 int x,
                                 int top,
                                 int bottom)
Paints a vertical line.


paintHorizontalLine sample code for javax.swing.plaf.basic.BasicTreeUI.paintHorizontalLine(java.awt.Graphics, javax.swing.JComponent, int, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.paintHorizontalLine(java.awt.Graphics, javax.swing.JComponent, int, int, int)

protected void paintHorizontalLine(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                   JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c,
                                   int y,
                                   int left,
                                   int right)
Paints a horizontal line.


getVerticalLegBuffer sample code for javax.swing.plaf.basic.BasicTreeUI.getVerticalLegBuffer() definition code for javax.swing.plaf.basic.BasicTreeUI.getVerticalLegBuffer()

protected int getVerticalLegBuffer()
The vertical element of legs between nodes starts at the bottom of the parent node by default. This method makes the leg start below that.


getHorizontalLegBuffer sample code for javax.swing.plaf.basic.BasicTreeUI.getHorizontalLegBuffer() definition code for javax.swing.plaf.basic.BasicTreeUI.getHorizontalLegBuffer()

protected int getHorizontalLegBuffer()
The horizontal element of legs between nodes starts at the right of the left-hand side of the child node by default. This method makes the leg end before that.


drawCentered sample code for javax.swing.plaf.basic.BasicTreeUI.drawCentered(java.awt.Component, java.awt.Graphics, javax.swing.Icon, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.drawCentered(java.awt.Component, java.awt.Graphics, javax.swing.Icon, int, int)

protected void drawCentered(Component sample code for java.awt.Component definition code for java.awt.Component  c,
                            Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  graphics,
                            Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon,
                            int x,
                            int y)

drawDashedHorizontalLine sample code for javax.swing.plaf.basic.BasicTreeUI.drawDashedHorizontalLine(java.awt.Graphics, int, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.drawDashedHorizontalLine(java.awt.Graphics, int, int, int)

protected void drawDashedHorizontalLine(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                        int y,
                                        int x1,
                                        int x2)

drawDashedVerticalLine sample code for javax.swing.plaf.basic.BasicTreeUI.drawDashedVerticalLine(java.awt.Graphics, int, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.drawDashedVerticalLine(java.awt.Graphics, int, int, int)

protected void drawDashedVerticalLine(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                      int x,
                                      int y1,
                                      int y2)

getRowX sample code for javax.swing.plaf.basic.BasicTreeUI.getRowX(int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.getRowX(int, int)

protected int getRowX(int row,
                      int depth)
Returns the location, along the x-axis, to render a particular row at. The return value does not include any Insets specified on the JTree. This does not check for the validity of the row or depth, it is assumed to be correct and will not throw an Exception if the row or depth doesn't match that of the tree.

Parameters:
row - Row to return x location for
depth - Depth of the row
Returns:
amount to indent the given row.
Since:
1.5

updateLayoutCacheExpandedNodes sample code for javax.swing.plaf.basic.BasicTreeUI.updateLayoutCacheExpandedNodes() definition code for javax.swing.plaf.basic.BasicTreeUI.updateLayoutCacheExpandedNodes()

protected void updateLayoutCacheExpandedNodes()
Makes all the nodes that are expanded in JTree expanded in LayoutCache. This invokes updateExpandedDescendants with the root path.


updateExpandedDescendants sample code for javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(javax.swing.tree.TreePath)

protected void updateExpandedDescendants(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
Updates the expanded state of all the descendants of path by getting the expanded descendants from the tree and forwarding to the tree state.


getLastChildPath sample code for javax.swing.plaf.basic.BasicTreeUI.getLastChildPath(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.getLastChildPath(javax.swing.tree.TreePath)

protected TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  getLastChildPath(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  parent)
Returns a path to the last child of parent.


updateDepthOffset sample code for javax.swing.plaf.basic.BasicTreeUI.updateDepthOffset() definition code for javax.swing.plaf.basic.BasicTreeUI.updateDepthOffset()

protected void updateDepthOffset()
Updates how much each depth should be offset by.


updateCellEditor sample code for javax.swing.plaf.basic.BasicTreeUI.updateCellEditor() definition code for javax.swing.plaf.basic.BasicTreeUI.updateCellEditor()

protected void updateCellEditor()
Updates the cellEditor based on the editability of the JTree that we're contained in. If the tree is editable but doesn't have a cellEditor, a basic one will be used.


updateRenderer sample code for javax.swing.plaf.basic.BasicTreeUI.updateRenderer() definition code for javax.swing.plaf.basic.BasicTreeUI.updateRenderer()

protected void updateRenderer()
Messaged from the tree we're in when the renderer has changed.


configureLayoutCache sample code for javax.swing.plaf.basic.BasicTreeUI.configureLayoutCache() definition code for javax.swing.plaf.basic.BasicTreeUI.configureLayoutCache()

protected void configureLayoutCache()
Resets the TreeState instance based on the tree we're providing the look and feel for.


updateSize sample code for javax.swing.plaf.basic.BasicTreeUI.updateSize() definition code for javax.swing.plaf.basic.BasicTreeUI.updateSize()

protected void updateSize()
Marks the cached size as being invalid, and messages the tree with treeDidChange.


updateCachedPreferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.updateCachedPreferredSize() definition code for javax.swing.plaf.basic.BasicTreeUI.updateCachedPreferredSize()

protected void updateCachedPreferredSize()
Updates the preferredSize instance variable, which is returned from getPreferredSize().

For left to right orientations, the size is determined from the current AbstractLayoutCache. For RTL orientations, the preferred size becomes the width minus the minimum x position.


pathWasExpanded sample code for javax.swing.plaf.basic.BasicTreeUI.pathWasExpanded(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.pathWasExpanded(javax.swing.tree.TreePath)

protected void pathWasExpanded(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
Messaged from the VisibleTreeNode after it has been expanded.


pathWasCollapsed sample code for javax.swing.plaf.basic.BasicTreeUI.pathWasCollapsed(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.pathWasCollapsed(javax.swing.tree.TreePath)

protected void pathWasCollapsed(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
Messaged from the VisibleTreeNode after it has collapsed.


ensureRowsAreVisible sample code for javax.swing.plaf.basic.BasicTreeUI.ensureRowsAreVisible(int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.ensureRowsAreVisible(int, int)

protected void ensureRowsAreVisible(int beginRow,
                                    int endRow)
Ensures that the rows identified by beginRow through endRow are visible.


setPreferredMinSize sample code for javax.swing.plaf.basic.BasicTreeUI.setPreferredMinSize(java.awt.Dimension) definition code for javax.swing.plaf.basic.BasicTreeUI.setPreferredMinSize(java.awt.Dimension)

public void setPreferredMinSize(Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  newSize)
Sets the preferred minimum size.


getPreferredMinSize sample code for javax.swing.plaf.basic.BasicTreeUI.getPreferredMinSize() definition code for javax.swing.plaf.basic.BasicTreeUI.getPreferredMinSize()

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getPreferredMinSize()
Returns the minimum preferred size.


getPreferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(javax.swing.JComponent)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getPreferredSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Returns the preferred size to properly display the tree, this is a cover method for getPreferredSize(c, false).

Overrides:
getPreferredSize sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
JComponent.getPreferredSize() sample code for javax.swing.JComponent.getPreferredSize() definition code for javax.swing.JComponent.getPreferredSize() , LayoutManager.preferredLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.preferredLayoutSize(java.awt.Container)

getPreferredSize sample code for javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(javax.swing.JComponent, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(javax.swing.JComponent, boolean)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getPreferredSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c,
                                  boolean checkConsistancy)
Returns the preferred size to represent the tree in c. If checkConsistancy is true checkConsistancy is messaged first.


getMinimumSize sample code for javax.swing.plaf.basic.BasicTreeUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.getMinimumSize(javax.swing.JComponent)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMinimumSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Returns the minimum size for this component. Which will be the min preferred size or 0, 0.

Overrides:
getMinimumSize sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Returns:
a Dimension object or null
See Also:
JComponent.getMinimumSize() sample code for javax.swing.JComponent.getMinimumSize() definition code for javax.swing.JComponent.getMinimumSize() , LayoutManager.minimumLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) , ComponentUI.getPreferredSize(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent)

getMaximumSize sample code for javax.swing.plaf.basic.BasicTreeUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTreeUI.getMaximumSize(javax.swing.JComponent)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMaximumSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Returns the maximum size for this component, which will be the preferred size if the instance is currently in a JTree, or 0, 0.

Overrides:
getMaximumSize sample code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Returns:
a Dimension object or null
See Also:
JComponent.getMaximumSize() sample code for javax.swing.JComponent.getMaximumSize() definition code for javax.swing.JComponent.getMaximumSize() , LayoutManager2.maximumLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager2.maximumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager2.maximumLayoutSize(java.awt.Container)

completeEditing sample code for javax.swing.plaf.basic.BasicTreeUI.completeEditing() definition code for javax.swing.plaf.basic.BasicTreeUI.completeEditing()

protected void completeEditing()
Messages to stop the editing session. If the UI the receiver is providing the look and feel for returns true from getInvokesStopCellEditing, stopCellEditing will invoked on the current editor. Then completeEditing will be messaged with false, true, false to cancel any lingering editing.


completeEditing sample code for javax.swing.plaf.basic.BasicTreeUI.completeEditing(boolean, boolean, boolean) definition code for javax.swing.plaf.basic.BasicTreeUI.completeEditing(boolean, boolean, boolean)

protected void completeEditing(boolean messageStop,
                               boolean messageCancel,
                               boolean messageTree)
Stops the editing session. If messageStop is true the editor is messaged with stopEditing, if messageCancel is true the editor is messaged with cancelEditing. If messageTree is true the treeModel is messaged with valueForPathChanged.


startEditing sample code for javax.swing.plaf.basic.BasicTreeUI.startEditing(javax.swing.tree.TreePath, java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.startEditing(javax.swing.tree.TreePath, java.awt.event.MouseEvent)

protected boolean startEditing(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path,
                               MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
Will start editing for node if there is a cellEditor and shouldSelectCell returns true.

This assumes that path is valid and visible.


checkForClickInExpandControl sample code for javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(javax.swing.tree.TreePath, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(javax.swing.tree.TreePath, int, int)

protected void checkForClickInExpandControl(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path,
                                            int mouseX,
                                            int mouseY)
If the mouseX and mouseY are in the expand/collapse region of the row, this will toggle the row.


isLocationInExpandControl sample code for javax.swing.plaf.basic.BasicTreeUI.isLocationInExpandControl(javax.swing.tree.TreePath, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.isLocationInExpandControl(javax.swing.tree.TreePath, int, int)

protected boolean isLocationInExpandControl(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path,
                                            int mouseX,
                                            int mouseY)
Returns true if mouseX and mouseY fall in the area of row that is used to expand/collapse the node and the node at row does not represent a leaf.


handleExpandControlClick sample code for javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(javax.swing.tree.TreePath, int, int) definition code for javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(javax.swing.tree.TreePath, int, int)

protected void handleExpandControlClick(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path,
                                        int mouseX,
                                        int mouseY)
Messaged when the user clicks the particular row, this invokes toggleExpandState.


toggleExpandState sample code for javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(javax.swing.tree.TreePath) definition code for javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(javax.swing.tree.TreePath)

protected void toggleExpandState(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path)
Expands path if it is not expanded, or collapses row if it is expanded. If expanding a path and JTree scrolls on expand, ensureRowsAreVisible is invoked to scroll as many of the children to visible as possible (tries to scroll to last visible descendant of path).


isToggleSelectionEvent sample code for javax.swing.plaf.basic.BasicTreeUI.isToggleSelectionEvent(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.isToggleSelectionEvent(java.awt.event.MouseEvent)

protected boolean isToggleSelectionEvent(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
Returning true signifies a mouse event on the node should toggle the selection of only the row under mouse.


isMultiSelectEvent sample code for javax.swing.plaf.basic.BasicTreeUI.isMultiSelectEvent(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.isMultiSelectEvent(java.awt.event.MouseEvent)

protected boolean isMultiSelectEvent(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
Returning true signifies a mouse event on the node should select from the anchor point.


isToggleEvent sample code for javax.swing.plaf.basic.BasicTreeUI.isToggleEvent(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.isToggleEvent(java.awt.event.MouseEvent)

protected boolean isToggleEvent(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
Returning true indicates the row under the mouse should be toggled based on the event. This is invoked after checkForClickInExpandControl, implying the location is not in the expand (toggle) control


selectPathForEvent sample code for javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(javax.swing.tree.TreePath, java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(javax.swing.tree.TreePath, java.awt.event.MouseEvent)

protected void selectPathForEvent(TreePath sample code for javax.swing.tree.TreePath definition code for javax.swing.tree.TreePath  path,
                                  MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
Messaged to update the selection based on a MouseEvent over a particular row. If the event is a toggle selection event, the row is either selected, or deselected. If the event identifies a multi selection event, the selection is updated from the anchor point. Otherwise the row is selected, and if the event specified a toggle event the row is expanded/collapsed.


isLeaf sample code for javax.swing.plaf.basic.BasicTreeUI.isLeaf(int) definition code for javax.swing.plaf.basic.BasicTreeUI.isLeaf(int)

protected boolean isLeaf(int row)
Returns:
true if the node at row is a leaf.