AbstractLayoutCache (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
abstract [Rectangle](../../../java/awt/Rectangle.html "class in java.awt")
[getBounds](../../../javax/swing/tree/AbstractLayoutCache.html#getBounds-javax.swing.tree.TreePath-java.awt.Rectangle-)([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path,[Rectangle](../../../java/awt/Rectangle.html "class in java.awt") placeIn)
Returns a rectangle giving the bounds needed to draw path.
abstract boolean
[getExpandedState](../../../javax/swing/tree/AbstractLayoutCache.html#getExpandedState-javax.swing.tree.TreePath-)([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Returns true if the path is expanded, and visible.
[TreeModel](../../../javax/swing/tree/TreeModel.html "interface in javax.swing.tree")
[getModel](../../../javax/swing/tree/AbstractLayoutCache.html#getModel--)()
Returns the TreeModel
that is providing the data.
[AbstractLayoutCache.NodeDimensions](../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html "class in javax.swing.tree")
[getNodeDimensions](../../../javax/swing/tree/AbstractLayoutCache.html#getNodeDimensions--)()
Returns the object that renders nodes in the tree, and which is responsible for calculating the dimensions of individual nodes.
protected [Rectangle](../../../java/awt/Rectangle.html "class in java.awt")
[getNodeDimensions](../../../javax/swing/tree/AbstractLayoutCache.html#getNodeDimensions-java.lang.Object-int-int-boolean-java.awt.Rectangle-)([Object](../../../java/lang/Object.html "class in java.lang") value, int row, int depth, boolean expanded,[Rectangle](../../../java/awt/Rectangle.html "class in java.awt") placeIn)
Returns, by reference in placeIn
, the size needed to represent value
.
abstract [TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")
[getPathClosestTo](../../../javax/swing/tree/AbstractLayoutCache.html#getPathClosestTo-int-int-)(int x, int y)
Returns the path to the node that is closest to x,y.
abstract [TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")
[getPathForRow](../../../javax/swing/tree/AbstractLayoutCache.html#getPathForRow-int-)(int row)
Returns the path for passed in row.
int
[getPreferredHeight](../../../javax/swing/tree/AbstractLayoutCache.html#getPreferredHeight--)()
Returns the preferred height.
int
[getPreferredWidth](../../../javax/swing/tree/AbstractLayoutCache.html#getPreferredWidth-java.awt.Rectangle-)([Rectangle](../../../java/awt/Rectangle.html "class in java.awt") bounds)
Returns the preferred width for the passed in region.
abstract int
[getRowCount](../../../javax/swing/tree/AbstractLayoutCache.html#getRowCount--)()
Number of rows being displayed.
abstract int
[getRowForPath](../../../javax/swing/tree/AbstractLayoutCache.html#getRowForPath-javax.swing.tree.TreePath-)([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.
int
[getRowHeight](../../../javax/swing/tree/AbstractLayoutCache.html#getRowHeight--)()
Returns the height of each row.
int[]
[getRowsForPaths](../../../javax/swing/tree/AbstractLayoutCache.html#getRowsForPaths-javax.swing.tree.TreePath:A-)([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")[] paths)
Returns the rows that the TreePath
instances inpath
are being displayed at.
[TreeSelectionModel](../../../javax/swing/tree/TreeSelectionModel.html "interface in javax.swing.tree")
[getSelectionModel](../../../javax/swing/tree/AbstractLayoutCache.html#getSelectionModel--)()
Returns the model used to maintain the selection.
abstract int
[getVisibleChildCount](../../../javax/swing/tree/AbstractLayoutCache.html#getVisibleChildCount-javax.swing.tree.TreePath-)([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Returns the number of visible children for row.
abstract [Enumeration](../../../java/util/Enumeration.html "interface in java.util")<[TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")>
[getVisiblePathsFrom](../../../javax/swing/tree/AbstractLayoutCache.html#getVisiblePathsFrom-javax.swing.tree.TreePath-)([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Returns an Enumerator
that increments over the visible paths starting at the passed in location.
abstract void
[invalidatePathBounds](../../../javax/swing/tree/AbstractLayoutCache.html#invalidatePathBounds-javax.swing.tree.TreePath-)([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Instructs the LayoutCache
that the bounds forpath
are invalid, and need to be updated.
abstract void
[invalidateSizes](../../../javax/swing/tree/AbstractLayoutCache.html#invalidateSizes--)()
Informs the TreeState
that it needs to recalculate all the sizes it is referencing.
abstract boolean
[isExpanded](../../../javax/swing/tree/AbstractLayoutCache.html#isExpanded-javax.swing.tree.TreePath-)([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Returns true if the value identified by row is currently expanded.
protected boolean
[isFixedRowHeight](../../../javax/swing/tree/AbstractLayoutCache.html#isFixedRowHeight--)()
Returns true if the height of each row is a fixed size.
boolean
[isRootVisible](../../../javax/swing/tree/AbstractLayoutCache.html#isRootVisible--)()
Returns true if the root node of the tree is displayed.
abstract void
[setExpandedState](../../../javax/swing/tree/AbstractLayoutCache.html#setExpandedState-javax.swing.tree.TreePath-boolean-)([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path, boolean isExpanded)
Marks the path path
expanded state toisExpanded
.
void
[setModel](../../../javax/swing/tree/AbstractLayoutCache.html#setModel-javax.swing.tree.TreeModel-)([TreeModel](../../../javax/swing/tree/TreeModel.html "interface in javax.swing.tree") newModel)
Sets the TreeModel
that will provide the data.
void
[setNodeDimensions](../../../javax/swing/tree/AbstractLayoutCache.html#setNodeDimensions-javax.swing.tree.AbstractLayoutCache.NodeDimensions-)([AbstractLayoutCache.NodeDimensions](../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html "class in javax.swing.tree") nd)
Sets the renderer that is responsible for drawing nodes in the tree and which is therefore responsible for calculating the dimensions of individual nodes.
void
[setRootVisible](../../../javax/swing/tree/AbstractLayoutCache.html#setRootVisible-boolean-)(boolean rootVisible)
Determines whether or not the root node from the TreeModel
is visible.
void
[setRowHeight](../../../javax/swing/tree/AbstractLayoutCache.html#setRowHeight-int-)(int rowHeight)
Sets the height of each cell.
void
[setSelectionModel](../../../javax/swing/tree/AbstractLayoutCache.html#setSelectionModel-javax.swing.tree.TreeSelectionModel-)([TreeSelectionModel](../../../javax/swing/tree/TreeSelectionModel.html "interface in javax.swing.tree") newLSM)
Sets the TreeSelectionModel
used to manage the selection to new LSM.
abstract void
[treeNodesChanged](../../../javax/swing/tree/AbstractLayoutCache.html#treeNodesChanged-javax.swing.event.TreeModelEvent-)([TreeModelEvent](../../../javax/swing/event/TreeModelEvent.html "class in javax.swing.event") e)
Invoked after a node (or a set of siblings) has changed in some way.
abstract void
[treeNodesInserted](../../../javax/swing/tree/AbstractLayoutCache.html#treeNodesInserted-javax.swing.event.TreeModelEvent-)([TreeModelEvent](../../../javax/swing/event/TreeModelEvent.html "class in javax.swing.event") e)
Invoked after nodes have been inserted into the tree.
abstract void
[treeNodesRemoved](../../../javax/swing/tree/AbstractLayoutCache.html#treeNodesRemoved-javax.swing.event.TreeModelEvent-)([TreeModelEvent](../../../javax/swing/event/TreeModelEvent.html "class in javax.swing.event") e)
Invoked after nodes have been removed from the tree.
abstract void
[treeStructureChanged](../../../javax/swing/tree/AbstractLayoutCache.html#treeStructureChanged-javax.swing.event.TreeModelEvent-)([TreeModelEvent](../../../javax/swing/event/TreeModelEvent.html "class in javax.swing.event") e)
Invoked after the tree has drastically changed structure from a given node down.