javax.swing.tree
Class AbstractLayoutCache.NodeDimensions
java.lang.Object
javax.swing.tree.AbstractLayoutCache.NodeDimensions
- Direct Known Subclasses:
- BasicTreeUI.NodeDimensionsHandler
- Enclosing class:
- AbstractLayoutCache
public abstract static class AbstractLayoutCache.NodeDimensions
- extends Object
class NodeDimensions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLayoutCache.NodeDimensions
public AbstractLayoutCache.NodeDimensions()
- Creates
NodeDimensions
object.
getNodeDimensions
public abstract Rectangle getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle bounds)
- Get the node dimensions. The NodeDimensions property must be set (unless
the method is overridden, like if
FixedHeightLayoutCache
. If the
method is not overridden and the property is not set, the InternalError is
thrown.
- Parameters:
value
- the last node in the pathrow
- the node rowdepth
- the indentation depthexpanded
- true if this node is expanded, false otherwisebounds
- the area where the tree is displayed