javax.swing.tree
Class AbstractLayoutCache.NodeDimensions

java.lang.Object
  extended by javax.swing.tree.AbstractLayoutCache.NodeDimensions
Direct Known Subclasses:
BasicTreeUI.NodeDimensionsHandler
Enclosing class:
AbstractLayoutCache

public abstract static class AbstractLayoutCache.NodeDimensions
extends Object

class NodeDimensions


Constructor Summary
AbstractLayoutCache.NodeDimensions()
          Creates NodeDimensions object.
 
Method Summary
abstract  Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
          Get the node dimensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLayoutCache.NodeDimensions

public AbstractLayoutCache.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 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