javax.swing.tree
Class AbstractLayoutCache.NodeDimensions

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.tree.AbstractLayoutCache.NodeDimensions
Direct Known Subclasses:
BasicTreeUI.NodeDimensionsHandler sample code for javax.swing.plaf.basic.BasicTreeUI.NodeDimensionsHandler definition code for javax.swing.plaf.basic.BasicTreeUI.NodeDimensionsHandler
Enclosing class:
AbstractLayoutCache sample code for javax.swing.tree.AbstractLayoutCache definition code for javax.swing.tree.AbstractLayoutCache

public abstract static class AbstractLayoutCache.NodeDimensions
extends Object sample code for java.lang.Object definition code for java.lang.Object

Used by AbstractLayoutCache to determine the size and x origin of a particular node.


Constructor Summary
AbstractLayoutCache.NodeDimensions sample code for javax.swing.tree.AbstractLayoutCache.NodeDimensions.AbstractLayoutCache.NodeDimensions() definition code for javax.swing.tree.AbstractLayoutCache.NodeDimensions.AbstractLayoutCache.NodeDimensions() ()
           
 
Method Summary
abstract  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getNodeDimensions sample code for javax.swing.tree.AbstractLayoutCache.NodeDimensions.getNodeDimensions(java.lang.Object, int, int, boolean, java.awt.Rectangle) definition code for javax.swing.tree.AbstractLayoutCache.NodeDimensions.getNodeDimensions(java.lang.Object, int, int, boolean, java.awt.Rectangle) (Object sample code for java.lang.Object definition code for java.lang.Object  value, int row, int depth, boolean expanded, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  bounds)
          Returns, by reference in bounds, the size and x origin to place value at.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

AbstractLayoutCache.NodeDimensions sample code for javax.swing.tree.AbstractLayoutCache.NodeDimensions() definition code for javax.swing.tree.AbstractLayoutCache.NodeDimensions()

public AbstractLayoutCache.NodeDimensions()
Method Detail

getNodeDimensions sample code for javax.swing.tree.AbstractLayoutCache.NodeDimensions.getNodeDimensions(java.lang.Object, int, int, boolean, java.awt.Rectangle) definition code for javax.swing.tree.AbstractLayoutCache.NodeDimensions.getNodeDimensions(java.lang.Object, int, int, boolean, java.awt.Rectangle)

public abstract Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getNodeDimensions(Object sample code for java.lang.Object definition code for java.lang.Object  value,
                                            int row,
                                            int depth,
                                            boolean expanded,
                                            Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  bounds)
Returns, by reference in bounds, the size and x origin to place value at. The calling method is responsible for determining the Y location. If bounds is null, a newly created Rectangle should be returned, otherwise the value should be placed in bounds and returned.

Parameters:
value - the value to be represented
row - row being queried
depth - the depth of the row
expanded - true if row is expanded, false otherwise
bounds - a Rectangle containing the size needed to represent value
Returns:
a Rectangle containing the node dimensions, or null if node has no dimension