java.lang.Object
javax.swing.tree.AbstractLayoutCache
javax.swing.tree.VariableHeightLayoutCache
- All Implemented Interfaces:
RowMapper
NOTE: This will become more open in a future release.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans
package.
Please see XMLEncoder
.
-
Nested Class Summary
Nested classes/interfaces declared in class javax.swing.tree.AbstractLayoutCache
AbstractLayoutCache.NodeDimensions
-
Field Summary
Fields declared in class javax.swing.tree.AbstractLayoutCache
nodeDimensions, rootVisible, rowHeight, treeModel, treeSelectionModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theRectangle
enclosing the label portion into which the item identified bypath
will be drawn.boolean
getExpandedState
(TreePath path) Returns true if the path is expanded, and visible.getPathClosestTo
(int x, int y) Returns the path to the node that is closest to x,y.getPathForRow
(int row) Returns the path forrow
.int
Returns the preferred height.int
getPreferredWidth
(Rectangle bounds) Returns the preferred width and height for the region invisibleRegion
.int
Returns the number of visible rows.int
getRowForPath
(TreePath path) Returns the row where the last item identified in path is visible.int
getVisibleChildCount
(TreePath path) Returns the number of visible children forpath
.getVisiblePathsFrom
(TreePath path) Returns anEnumerator
that increments over the visible paths starting at the passed in location.void
invalidatePathBounds
(TreePath path) Instructs theLayoutCache
that the bounds forpath
are invalid, and need to be updated.void
Informs theTreeState
that it needs to recalculate all the sizes it is referencing.boolean
isExpanded
(TreePath path) Returns true if the value identified bypath
is currently expanded.void
setExpandedState
(TreePath path, boolean isExpanded) Marks the pathpath
expanded state toisExpanded
.void
Sets theTreeModel
that will provide the data.void
Sets the renderer that is responsible for drawing nodes in the tree.void
setRootVisible
(boolean rootVisible) Determines whether or not the root node from theTreeModel
is visible.void