BasicTreeUI (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
void
[cancelEditing](../../../../javax/swing/plaf/basic/BasicTreeUI.html#cancelEditing-javax.swing.JTree-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree)
Cancels the current editing session.
protected void
[checkForClickInExpandControl](../../../../javax/swing/plaf/basic/BasicTreeUI.html#checkForClickInExpandControl-javax.swing.tree.TreePath-int-int-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") 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](../../../../javax/swing/plaf/basic/BasicTreeUI.html#completeEditing--)()
Messages to stop the editing session.
protected void
[completeEditing](../../../../javax/swing/plaf/basic/BasicTreeUI.html#completeEditing-boolean-boolean-boolean-)(boolean messageStop, boolean messageCancel, boolean messageTree)
Stops the editing session.
protected void
[completeUIInstall](../../../../javax/swing/plaf/basic/BasicTreeUI.html#completeUIInstall--)()
Invoked from installUI after all the defaults/listeners have been installed.
protected void
[completeUIUninstall](../../../../javax/swing/plaf/basic/BasicTreeUI.html#completeUIUninstall--)()
protected void
[configureLayoutCache](../../../../javax/swing/plaf/basic/BasicTreeUI.html#configureLayoutCache--)()
Resets the TreeState instance based on the tree we're providing the look and feel for.
protected [CellEditorListener](../../../../javax/swing/event/CellEditorListener.html "interface in javax.swing.event")
[createCellEditorListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createCellEditorListener--)()
Creates a listener to handle events from the current editor.
protected [CellRendererPane](../../../../javax/swing/CellRendererPane.html "class in javax.swing")
[createCellRendererPane](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createCellRendererPane--)()
Returns the renderer pane that renderer components are placed in.
protected [ComponentListener](../../../../java/awt/event/ComponentListener.html "interface in java.awt.event")
[createComponentListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createComponentListener--)()
Creates and returns a new ComponentHandler.
protected [TreeCellEditor](../../../../javax/swing/tree/TreeCellEditor.html "interface in javax.swing.tree")
[createDefaultCellEditor](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createDefaultCellEditor--)()
Creates a default cell editor.
protected [TreeCellRenderer](../../../../javax/swing/tree/TreeCellRenderer.html "interface in javax.swing.tree")
[createDefaultCellRenderer](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createDefaultCellRenderer--)()
Returns the default cell renderer that is used to do the stamping of each node.
protected [FocusListener](../../../../java/awt/event/FocusListener.html "interface in java.awt.event")
[createFocusListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createFocusListener--)()
Creates a listener that is responsible for updating the display when focus is lost/gained.
protected [KeyListener](../../../../java/awt/event/KeyListener.html "interface in java.awt.event")
[createKeyListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createKeyListener--)()
Creates the listener reponsible for getting key events from the tree.
protected [AbstractLayoutCache](../../../../javax/swing/tree/AbstractLayoutCache.html "class in javax.swing.tree")
[createLayoutCache](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createLayoutCache--)()
Creates the object responsible for managing what is expanded, as well as the size of nodes.
protected [MouseListener](../../../../java/awt/event/MouseListener.html "interface in java.awt.event")
[createMouseListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createMouseListener--)()
Creates the listener responsible for updating the selection based on mouse events.
protected [AbstractLayoutCache.NodeDimensions](../../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html "class in javax.swing.tree")
[createNodeDimensions](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createNodeDimensions--)()
Creates an instance of NodeDimensions that is able to determine the size of a given node in the tree.
protected [PropertyChangeListener](../../../../java/beans/PropertyChangeListener.html "interface in java.beans")
[createPropertyChangeListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createPropertyChangeListener--)()
Creates a listener that is responsible that updates the UI based on how the tree changes.
protected [PropertyChangeListener](../../../../java/beans/PropertyChangeListener.html "interface in java.beans")
[createSelectionModelPropertyChangeListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createSelectionModelPropertyChangeListener--)()
Creates the listener responsible for getting property change events from the selection model.
protected [TreeExpansionListener](../../../../javax/swing/event/TreeExpansionListener.html "interface in javax.swing.event")
[createTreeExpansionListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createTreeExpansionListener--)()
Creates and returns the object responsible for updating the treestate when nodes expanded state changes.
protected [TreeModelListener](../../../../javax/swing/event/TreeModelListener.html "interface in javax.swing.event")
[createTreeModelListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createTreeModelListener--)()
Returns a listener that can update the tree when the model changes.
protected [TreeSelectionListener](../../../../javax/swing/event/TreeSelectionListener.html "interface in javax.swing.event")
[createTreeSelectionListener](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createTreeSelectionListener--)()
Creates the listener that updates the display based on selection change methods.
static [ComponentUI](../../../../javax/swing/plaf/ComponentUI.html "class in javax.swing.plaf")
[createUI](../../../../javax/swing/plaf/basic/BasicTreeUI.html#createUI-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") x)
protected void
[drawCentered](../../../../javax/swing/plaf/basic/BasicTreeUI.html#drawCentered-java.awt.Component-java.awt.Graphics-javax.swing.Icon-int-int-)([Component](../../../../java/awt/Component.html "class in java.awt") c,[Graphics](../../../../java/awt/Graphics.html "class in java.awt") graphics,[Icon](../../../../javax/swing/Icon.html "interface in javax.swing") icon, int x, int y)
protected void
[drawDashedHorizontalLine](../../../../javax/swing/plaf/basic/BasicTreeUI.html#drawDashedHorizontalLine-java.awt.Graphics-int-int-int-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g, int y, int x1, int x2)
protected void
[drawDashedVerticalLine](../../../../javax/swing/plaf/basic/BasicTreeUI.html#drawDashedVerticalLine-java.awt.Graphics-int-int-int-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g, int x, int y1, int y2)
protected void
[ensureRowsAreVisible](../../../../javax/swing/plaf/basic/BasicTreeUI.html#ensureRowsAreVisible-int-int-)(int beginRow, int endRow)
Ensures that the rows identified by beginRow through endRow are visible.
int
[getBaseline](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getBaseline-javax.swing.JComponent-int-int-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c, int width, int height)
Returns the baseline.
[Component.BaselineResizeBehavior](../../../../java/awt/Component.BaselineResizeBehavior.html "enum in java.awt")
[getBaselineResizeBehavior](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getBaselineResizeBehavior-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Returns an enum indicating how the baseline of the component changes as the size changes.
protected [TreeCellEditor](../../../../javax/swing/tree/TreeCellEditor.html "interface in javax.swing.tree")
[getCellEditor](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getCellEditor--)()
protected [TreeCellRenderer](../../../../javax/swing/tree/TreeCellRenderer.html "interface in javax.swing.tree")
[getCellRenderer](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getCellRenderer--)()
Return currentCellRenderer, which will either be the trees renderer, or defaultCellRenderer, which ever wasn't null.
[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")
[getClosestPathForLocation](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getClosestPathForLocation-javax.swing.JTree-int-int-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree, int x, int y)
Returns the path to the node that is closest to x,y.
[Icon](../../../../javax/swing/Icon.html "interface in javax.swing")
[getCollapsedIcon](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getCollapsedIcon--)()
protected [Rectangle](../../../../java/awt/Rectangle.html "class in java.awt")
[getDropLineRect](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getDropLineRect-javax.swing.JTree.DropLocation-)([JTree.DropLocation](../../../../javax/swing/JTree.DropLocation.html "class in javax.swing") loc)
Returns a unbounding box for the drop line.
[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")
[getEditingPath](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getEditingPath-javax.swing.JTree-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree)
Returns the path to the element that is being edited.
[Icon](../../../../javax/swing/Icon.html "interface in javax.swing")
[getExpandedIcon](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getExpandedIcon--)()
protected [Color](../../../../java/awt/Color.html "class in java.awt")
[getHashColor](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getHashColor--)()
protected int
[getHorizontalLegBuffer](../../../../javax/swing/plaf/basic/BasicTreeUI.html#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](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")
[getLastChildPath](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getLastChildPath-javax.swing.tree.TreePath-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") parent)
Returns a path to the last child of parent
.
protected int
[getLeadSelectionRow](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getLeadSelectionRow--)()
Returns the lead row of the selection.
int
[getLeftChildIndent](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getLeftChildIndent--)()
[Dimension](../../../../java/awt/Dimension.html "class in java.awt")
[getMaximumSize](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getMaximumSize-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") 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](../../../../java/awt/Dimension.html "class in java.awt")
[getMinimumSize](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getMinimumSize-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Returns the minimum size for this component.
protected [TreeModel](../../../../javax/swing/tree/TreeModel.html "interface in javax.swing.tree")
[getModel](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getModel--)()
[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt")
[getPathBounds](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getPathBounds-javax.swing.JTree-javax.swing.tree.TreePath-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree,[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.
[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")
[getPathForRow](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getPathForRow-javax.swing.JTree-int-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree, int row)
Returns the path for passed in row.
[Dimension](../../../../java/awt/Dimension.html "class in java.awt")
[getPreferredMinSize](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getPreferredMinSize--)()
Returns the minimum preferred size.
[Dimension](../../../../java/awt/Dimension.html "class in java.awt")
[getPreferredSize](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getPreferredSize-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Returns the preferred size to properly display the tree, this is a cover method for getPreferredSize(c, true).
[Dimension](../../../../java/awt/Dimension.html "class in java.awt")
[getPreferredSize](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getPreferredSize-javax.swing.JComponent-boolean-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c, boolean checkConsistency)
Returns the preferred size to represent the tree in_c_.
int
[getRightChildIndent](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getRightChildIndent--)()
int
[getRowCount](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getRowCount-javax.swing.JTree-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree)
Returns the number of rows that are being displayed.
int
[getRowForPath](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getRowForPath-javax.swing.JTree-javax.swing.tree.TreePath-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree,[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Returns the row that the last item identified in path is visible at.
protected int
[getRowHeight](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getRowHeight--)()
protected int
[getRowX](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getRowX-int-int-)(int row, int depth)
Returns the location, along the x-axis, to render a particular row at.
protected [TreeSelectionModel](../../../../javax/swing/tree/TreeSelectionModel.html "interface in javax.swing.tree")
[getSelectionModel](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getSelectionModel--)()
protected boolean
[getShowsRootHandles](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getShowsRootHandles--)()
protected int
[getVerticalLegBuffer](../../../../javax/swing/plaf/basic/BasicTreeUI.html#getVerticalLegBuffer--)()
The vertical element of legs between nodes starts at the bottom of the parent node by default.
protected void
[handleExpandControlClick](../../../../javax/swing/plaf/basic/BasicTreeUI.html#handleExpandControlClick-javax.swing.tree.TreePath-int-int-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path, int mouseX, int mouseY)
Messaged when the user clicks the particular row, this invokes toggleExpandState.
protected void
[installComponents](../../../../javax/swing/plaf/basic/BasicTreeUI.html#installComponents--)()
Intalls the subcomponents of the tree, which is the renderer pane.
protected void
[installDefaults](../../../../javax/swing/plaf/basic/BasicTreeUI.html#installDefaults--)()
protected void
[installKeyboardActions](../../../../javax/swing/plaf/basic/BasicTreeUI.html#installKeyboardActions--)()
protected void
[installListeners](../../../../javax/swing/plaf/basic/BasicTreeUI.html#installListeners--)()
void
[installUI](../../../../javax/swing/plaf/basic/BasicTreeUI.html#installUI-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Configures the specified component appropriately for the look and feel.
protected boolean
[isDropLine](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isDropLine-javax.swing.JTree.DropLocation-)([JTree.DropLocation](../../../../javax/swing/JTree.DropLocation.html "class in javax.swing") loc)
Tells if a DropLocation
should be indicated by a line between nodes.
protected boolean
[isEditable](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isEditable--)()
boolean
[isEditing](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isEditing-javax.swing.JTree-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree)
Returns true if the tree is being edited.
protected boolean
[isLargeModel](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isLargeModel--)()
protected boolean
[isLeaf](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isLeaf-int-)(int row)
protected boolean
[isLocationInExpandControl](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isLocationInExpandControl-javax.swing.tree.TreePath-int-int-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") 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](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isMultiSelectEvent-java.awt.event.MouseEvent-)([MouseEvent](../../../../java/awt/event/MouseEvent.html "class in java.awt.event") event)
Returning true signifies a mouse event on the node should select from the anchor point.
protected boolean
[isRootVisible](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isRootVisible--)()
protected boolean
[isToggleEvent](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isToggleEvent-java.awt.event.MouseEvent-)([MouseEvent](../../../../java/awt/event/MouseEvent.html "class in java.awt.event") event)
Returning true indicates the row under the mouse should be toggled based on the event.
protected boolean
[isToggleSelectionEvent](../../../../javax/swing/plaf/basic/BasicTreeUI.html#isToggleSelectionEvent-java.awt.event.MouseEvent-)([MouseEvent](../../../../java/awt/event/MouseEvent.html "class in java.awt.event") event)
Returning true signifies a mouse event on the node should toggle the selection of only the row under mouse.
void
[paint](../../../../javax/swing/plaf/basic/BasicTreeUI.html#paint-java.awt.Graphics-javax.swing.JComponent-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g,[JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Paints the specified component appropriately for the look and feel.
protected void
[paintDropLine](../../../../javax/swing/plaf/basic/BasicTreeUI.html#paintDropLine-java.awt.Graphics-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g)
Paints the drop line.
protected void
[paintExpandControl](../../../../javax/swing/plaf/basic/BasicTreeUI.html#paintExpandControl-java.awt.Graphics-java.awt.Rectangle-java.awt.Insets-java.awt.Rectangle-javax.swing.tree.TreePath-int-boolean-boolean-boolean-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g,[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt") clipBounds,[Insets](../../../../java/awt/Insets.html "class in java.awt") insets,[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt") bounds,[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
Paints the expand (toggle) part of a row.
protected void
[paintHorizontalLine](../../../../javax/swing/plaf/basic/BasicTreeUI.html#paintHorizontalLine-java.awt.Graphics-javax.swing.JComponent-int-int-int-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g,[JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c, int y, int left, int right)
Paints a horizontal line.
protected void
[paintHorizontalPartOfLeg](../../../../javax/swing/plaf/basic/BasicTreeUI.html#paintHorizontalPartOfLeg-java.awt.Graphics-java.awt.Rectangle-java.awt.Insets-java.awt.Rectangle-javax.swing.tree.TreePath-int-boolean-boolean-boolean-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g,[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt") clipBounds,[Insets](../../../../java/awt/Insets.html "class in java.awt") insets,[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt") bounds,[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
Paints the horizontal part of the leg.
protected void
[paintRow](../../../../javax/swing/plaf/basic/BasicTreeUI.html#paintRow-java.awt.Graphics-java.awt.Rectangle-java.awt.Insets-java.awt.Rectangle-javax.swing.tree.TreePath-int-boolean-boolean-boolean-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g,[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt") clipBounds,[Insets](../../../../java/awt/Insets.html "class in java.awt") insets,[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt") bounds,[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
Paints the renderer part of a row.
protected void
[paintVerticalLine](../../../../javax/swing/plaf/basic/BasicTreeUI.html#paintVerticalLine-java.awt.Graphics-javax.swing.JComponent-int-int-int-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g,[JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c, int x, int top, int bottom)
Paints a vertical line.
protected void
[paintVerticalPartOfLeg](../../../../javax/swing/plaf/basic/BasicTreeUI.html#paintVerticalPartOfLeg-java.awt.Graphics-java.awt.Rectangle-java.awt.Insets-javax.swing.tree.TreePath-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g,[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt") clipBounds,[Insets](../../../../java/awt/Insets.html "class in java.awt") insets,[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Paints the vertical part of the leg.
protected void
[pathWasCollapsed](../../../../javax/swing/plaf/basic/BasicTreeUI.html#pathWasCollapsed-javax.swing.tree.TreePath-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Messaged from the VisibleTreeNode after it has collapsed.
protected void
[pathWasExpanded](../../../../javax/swing/plaf/basic/BasicTreeUI.html#pathWasExpanded-javax.swing.tree.TreePath-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Messaged from the VisibleTreeNode after it has been expanded.
protected void
[prepareForUIInstall](../../../../javax/swing/plaf/basic/BasicTreeUI.html#prepareForUIInstall--)()
Invoked after the tree
instance variable has been set, but before any defaults/listeners have been installed.
protected void
[prepareForUIUninstall](../../../../javax/swing/plaf/basic/BasicTreeUI.html#prepareForUIUninstall--)()
protected void
[selectPathForEvent](../../../../javax/swing/plaf/basic/BasicTreeUI.html#selectPathForEvent-javax.swing.tree.TreePath-java.awt.event.MouseEvent-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path,[MouseEvent](../../../../java/awt/event/MouseEvent.html "class in java.awt.event") event)
Messaged to update the selection based on a MouseEvent over a particular row.
protected void
[setCellEditor](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setCellEditor-javax.swing.tree.TreeCellEditor-)([TreeCellEditor](../../../../javax/swing/tree/TreeCellEditor.html "interface in javax.swing.tree") editor)
Sets the cell editor.
protected void
[setCellRenderer](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setCellRenderer-javax.swing.tree.TreeCellRenderer-)([TreeCellRenderer](../../../../javax/swing/tree/TreeCellRenderer.html "interface in javax.swing.tree") tcr)
Sets the TreeCellRenderer to tcr
.
void
[setCollapsedIcon](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setCollapsedIcon-javax.swing.Icon-)([Icon](../../../../javax/swing/Icon.html "interface in javax.swing") newG)
protected void
[setEditable](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setEditable-boolean-)(boolean newValue)
Configures the receiver to allow, or not allow, editing.
void
[setExpandedIcon](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setExpandedIcon-javax.swing.Icon-)([Icon](../../../../javax/swing/Icon.html "interface in javax.swing") newG)
protected void
[setHashColor](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setHashColor-java.awt.Color-)([Color](../../../../java/awt/Color.html "class in java.awt") color)
protected void
[setLargeModel](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setLargeModel-boolean-)(boolean largeModel)
Updates the componentListener, if necessary.
void
[setLeftChildIndent](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setLeftChildIndent-int-)(int newAmount)
protected void
[setModel](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setModel-javax.swing.tree.TreeModel-)([TreeModel](../../../../javax/swing/tree/TreeModel.html "interface in javax.swing.tree") model)
Sets the TreeModel.
void
[setPreferredMinSize](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setPreferredMinSize-java.awt.Dimension-)([Dimension](../../../../java/awt/Dimension.html "class in java.awt") newSize)
Sets the preferred minimum size.
void
[setRightChildIndent](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setRightChildIndent-int-)(int newAmount)
protected void
[setRootVisible](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setRootVisible-boolean-)(boolean newValue)
Sets the root to being visible.
protected void
[setRowHeight](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setRowHeight-int-)(int rowHeight)
Sets the row height, this is forwarded to the treeState.
protected void
[setSelectionModel](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setSelectionModel-javax.swing.tree.TreeSelectionModel-)([TreeSelectionModel](../../../../javax/swing/tree/TreeSelectionModel.html "interface in javax.swing.tree") newLSM)
Resets the selection model.
protected void
[setShowsRootHandles](../../../../javax/swing/plaf/basic/BasicTreeUI.html#setShowsRootHandles-boolean-)(boolean newValue)
Determines whether the node handles are to be displayed.
protected boolean
[shouldPaintExpandControl](../../../../javax/swing/plaf/basic/BasicTreeUI.html#shouldPaintExpandControl-javax.swing.tree.TreePath-int-boolean-boolean-boolean-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") 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](../../../../javax/swing/plaf/basic/BasicTreeUI.html#startEditing-javax.swing.tree.TreePath-java.awt.event.MouseEvent-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path,[MouseEvent](../../../../java/awt/event/MouseEvent.html "class in java.awt.event") event)
Will start editing for node if there is a cellEditor and shouldSelectCell returns true.
void
[startEditingAtPath](../../../../javax/swing/plaf/basic/BasicTreeUI.html#startEditingAtPath-javax.swing.JTree-javax.swing.tree.TreePath-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree,[TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Selects the last item in path and tries to edit it.
boolean
[stopEditing](../../../../javax/swing/plaf/basic/BasicTreeUI.html#stopEditing-javax.swing.JTree-)([JTree](../../../../javax/swing/JTree.html "class in javax.swing") tree)
Stops the current editing session.
protected void
[toggleExpandState](../../../../javax/swing/plaf/basic/BasicTreeUI.html#toggleExpandState-javax.swing.tree.TreePath-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Expands path if it is not expanded, or collapses row if it is expanded.
protected void
[uninstallComponents](../../../../javax/swing/plaf/basic/BasicTreeUI.html#uninstallComponents--)()
Uninstalls the renderer pane.
protected void
[uninstallDefaults](../../../../javax/swing/plaf/basic/BasicTreeUI.html#uninstallDefaults--)()
protected void
[uninstallKeyboardActions](../../../../javax/swing/plaf/basic/BasicTreeUI.html#uninstallKeyboardActions--)()
protected void
[uninstallListeners](../../../../javax/swing/plaf/basic/BasicTreeUI.html#uninstallListeners--)()
void
[uninstallUI](../../../../javax/swing/plaf/basic/BasicTreeUI.html#uninstallUI-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Reverses configuration which was done on the specified component duringinstallUI
.
protected void
[updateCachedPreferredSize](../../../../javax/swing/plaf/basic/BasicTreeUI.html#updateCachedPreferredSize--)()
Updates the preferredSize
instance variable, which is returned from getPreferredSize()
.
protected void
[updateCellEditor](../../../../javax/swing/plaf/basic/BasicTreeUI.html#updateCellEditor--)()
Updates the cellEditor based on the editability of the JTree that we're contained in.
protected void
[updateDepthOffset](../../../../javax/swing/plaf/basic/BasicTreeUI.html#updateDepthOffset--)()
Updates how much each depth should be offset by.
protected void
[updateExpandedDescendants](../../../../javax/swing/plaf/basic/BasicTreeUI.html#updateExpandedDescendants-javax.swing.tree.TreePath-)([TreePath](../../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") 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](../../../../javax/swing/plaf/basic/BasicTreeUI.html#updateLayoutCacheExpandedNodes--)()
Makes all the nodes that are expanded in JTree expanded in LayoutCache.
protected void
[updateLeadSelectionRow](../../../../javax/swing/plaf/basic/BasicTreeUI.html#updateLeadSelectionRow--)()
Updates the lead row of the selection.
protected void
[updateRenderer](../../../../javax/swing/plaf/basic/BasicTreeUI.html#updateRenderer--)()
Messaged from the tree we're in when the renderer has changed.
protected void
[updateSize](../../../../javax/swing/plaf/basic/BasicTreeUI.html#updateSize--)()
Marks the cached size as being invalid, and messages the tree with treeDidChange
.