AbstractLayoutCache (Java Platform SE 7 ) (original) (raw)
Modifier and Type
Method and Description
abstract [Rectangle](../../../java/awt/Rectangle.html "class in java.awt")
**[getBounds](../../../javax/swing/tree/AbstractLayoutCache.html#getBounds%28javax.swing.tree.TreePath,%20java.awt.Rectangle%29)**([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%28javax.swing.tree.TreePath%29)**([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%28%29)**()
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%28%29)**()
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%28java.lang.Object,%20int,%20int,%20boolean,%20java.awt.Rectangle%29)**([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%28int,%20int%29)**(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%28int%29)**(int row)
Returns the path for passed in row.
int
**[getPreferredHeight](../../../javax/swing/tree/AbstractLayoutCache.html#getPreferredHeight%28%29)**()
Returns the preferred height.
int
**[getPreferredWidth](../../../javax/swing/tree/AbstractLayoutCache.html#getPreferredWidth%28java.awt.Rectangle%29)**([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%28%29)**()
Number of rows being displayed.
abstract int
**[getRowForPath](../../../javax/swing/tree/AbstractLayoutCache.html#getRowForPath%28javax.swing.tree.TreePath%29)**([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%28%29)**()
Returns the height of each row.
int[]
**[getRowsForPaths](../../../javax/swing/tree/AbstractLayoutCache.html#getRowsForPaths%28javax.swing.tree.TreePath[]%29)**([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%28%29)**()
Returns the model used to maintain the selection.
abstract int
**[getVisibleChildCount](../../../javax/swing/tree/AbstractLayoutCache.html#getVisibleChildCount%28javax.swing.tree.TreePath%29)**([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%28javax.swing.tree.TreePath%29)**([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%28javax.swing.tree.TreePath%29)**([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%28%29)**()
Informs the TreeState
that it needs to recalculate all the sizes it is referencing.
abstract boolean
**[isExpanded](../../../javax/swing/tree/AbstractLayoutCache.html#isExpanded%28javax.swing.tree.TreePath%29)**([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%28%29)**()
Returns true if the height of each row is a fixed size.
boolean
**[isRootVisible](../../../javax/swing/tree/AbstractLayoutCache.html#isRootVisible%28%29)**()
Returns true if the root node of the tree is displayed.
abstract void
**[setExpandedState](../../../javax/swing/tree/AbstractLayoutCache.html#setExpandedState%28javax.swing.tree.TreePath,%20boolean%29)**([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%28javax.swing.tree.TreeModel%29)**([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%28javax.swing.tree.AbstractLayoutCache.NodeDimensions%29)**([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 threfore responsible for calculating the dimensions of individual nodes.
void
**[setRootVisible](../../../javax/swing/tree/AbstractLayoutCache.html#setRootVisible%28boolean%29)**(boolean rootVisible)
Determines whether or not the root node from the TreeModel
is visible.
void
**[setRowHeight](../../../javax/swing/tree/AbstractLayoutCache.html#setRowHeight%28int%29)**(int rowHeight)
Sets the height of each cell.
void
**[setSelectionModel](../../../javax/swing/tree/AbstractLayoutCache.html#setSelectionModel%28javax.swing.tree.TreeSelectionModel%29)**([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%28javax.swing.event.TreeModelEvent%29)**([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%28javax.swing.event.TreeModelEvent%29)**([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%28javax.swing.event.TreeModelEvent%29)**([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%28javax.swing.event.TreeModelEvent%29)**([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.