javax.swing.tree

Class AbstractLayoutCache.NodeDimensions

public abstract static class AbstractLayoutCache.NodeDimensions extends Object

class NodeDimensions
Constructor Summary
NodeDimensions()
Creates NodeDimensions object.
Method Summary
abstract RectanglegetNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
Get the node dimensions.

Constructor Detail

NodeDimensions

public NodeDimensions()
Creates NodeDimensions object.

Method Detail

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 {@link FixedHeightLayoutCache}. If the method is not overridden and the property is not set, the InternalError is thrown.

Parameters: value the last node in the path row the node row depth the indentation depth expanded true if this node is expanded, false otherwise bounds the area where the tree is displayed