VariableHeightLayoutCache (Java Platform SE 7 ) (original) (raw)
Modifier and Type
Method and Description
[Rectangle](../../../java/awt/Rectangle.html "class in java.awt")
**[getBounds](../../../javax/swing/tree/VariableHeightLayoutCache.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 the Rectangle
enclosing the label portion into which the item identified by path
will be drawn.
boolean
**[getExpandedState](../../../javax/swing/tree/VariableHeightLayoutCache.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.
[TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")
**[getPathClosestTo](../../../javax/swing/tree/VariableHeightLayoutCache.html#getPathClosestTo%28int,%20int%29)**(int x, int y)
Returns the path to the node that is closest to x,y.
[TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")
**[getPathForRow](../../../javax/swing/tree/VariableHeightLayoutCache.html#getPathForRow%28int%29)**(int row)
Returns the path for row
.
int
**[getPreferredHeight](../../../javax/swing/tree/VariableHeightLayoutCache.html#getPreferredHeight%28%29)**()
Returns the preferred height.
int
**[getPreferredWidth](../../../javax/swing/tree/VariableHeightLayoutCache.html#getPreferredWidth%28java.awt.Rectangle%29)**([Rectangle](../../../java/awt/Rectangle.html "class in java.awt") bounds)
Returns the preferred width and height for the region invisibleRegion
.
int
**[getRowCount](../../../javax/swing/tree/VariableHeightLayoutCache.html#getRowCount%28%29)**()
Returns the number of visible rows.
int
**[getRowForPath](../../../javax/swing/tree/VariableHeightLayoutCache.html#getRowForPath%28javax.swing.tree.TreePath%29)**([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)
Returns the row where the last item identified in path is visible.
int
**[getVisibleChildCount](../../../javax/swing/tree/VariableHeightLayoutCache.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 path
.
[Enumeration](../../../java/util/Enumeration.html "interface in java.util")<[TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")>
**[getVisiblePathsFrom](../../../javax/swing/tree/VariableHeightLayoutCache.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.
void
**[invalidatePathBounds](../../../javax/swing/tree/VariableHeightLayoutCache.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.
void
**[invalidateSizes](../../../javax/swing/tree/VariableHeightLayoutCache.html#invalidateSizes%28%29)**()
Informs the TreeState
that it needs to recalculate all the sizes it is referencing.
boolean
**[isExpanded](../../../javax/swing/tree/VariableHeightLayoutCache.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 path
is currently expanded.
void
**[setExpandedState](../../../javax/swing/tree/VariableHeightLayoutCache.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/VariableHeightLayoutCache.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/VariableHeightLayoutCache.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.
void
**[setRootVisible](../../../javax/swing/tree/VariableHeightLayoutCache.html#setRootVisible%28boolean%29)**(boolean rootVisible)
Determines whether or not the root node from the TreeModel
is visible.
void
**[setRowHeight](../../../javax/swing/tree/VariableHeightLayoutCache.html#setRowHeight%28int%29)**(int rowHeight)
Sets the height of each cell.
void
**[treeNodesChanged](../../../javax/swing/tree/VariableHeightLayoutCache.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.
void
**[treeNodesInserted](../../../javax/swing/tree/VariableHeightLayoutCache.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.
void
**[treeNodesRemoved](../../../javax/swing/tree/VariableHeightLayoutCache.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.
void
**[treeStructureChanged](../../../javax/swing/tree/VariableHeightLayoutCache.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.