FixedHeightLayoutCache (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/FixedHeightLayoutCache.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.

boolean

**[getExpandedState](../../../javax/swing/tree/FixedHeightLayoutCache.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/FixedHeightLayoutCache.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/FixedHeightLayoutCache.html#getPathForRow%28int%29)**(int row)

Returns the path for passed in row.

int

**[getRowCount](../../../javax/swing/tree/FixedHeightLayoutCache.html#getRowCount%28%29)**()

Returns the number of visible rows.

int

**[getRowForPath](../../../javax/swing/tree/FixedHeightLayoutCache.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

**[getVisibleChildCount](../../../javax/swing/tree/FixedHeightLayoutCache.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.

[Enumeration](../../../java/util/Enumeration.html "interface in java.util")<[TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree")>

**[getVisiblePathsFrom](../../../javax/swing/tree/FixedHeightLayoutCache.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/FixedHeightLayoutCache.html#invalidatePathBounds%28javax.swing.tree.TreePath%29)**([TreePath](../../../javax/swing/tree/TreePath.html "class in javax.swing.tree") path)

Does nothing, FixedHeightLayoutCache doesn't cache width, and that is all that could change.

void

**[invalidateSizes](../../../javax/swing/tree/FixedHeightLayoutCache.html#invalidateSizes%28%29)**()

Informs the TreeState that it needs to recalculate all the sizes it is referencing.

boolean

**[isExpanded](../../../javax/swing/tree/FixedHeightLayoutCache.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.

void

**[setExpandedState](../../../javax/swing/tree/FixedHeightLayoutCache.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/FixedHeightLayoutCache.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

**[setRootVisible](../../../javax/swing/tree/FixedHeightLayoutCache.html#setRootVisible%28boolean%29)**(boolean rootVisible)

Determines whether or not the root node from the TreeModel is visible.

void

**[setRowHeight](../../../javax/swing/tree/FixedHeightLayoutCache.html#setRowHeight%28int%29)**(int rowHeight)

Sets the height of each cell.

void

**[treeNodesChanged](../../../javax/swing/tree/FixedHeightLayoutCache.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/FixedHeightLayoutCache.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/FixedHeightLayoutCache.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/FixedHeightLayoutCache.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.