API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.tree. FixedHeightLayoutCache View Source
Author(s)
Scott Violet
Since
Version
1.25 11/17/05
Serial
Hierarchy
 Object
      AbstractLayoutCache
          FixedHeightLayoutCache
Implements
Subclasses
Description
public class FixedHeightLayoutCache
  NOTE: This will become more open in a future release.
See also:   
Constructors
public FixedHeightLayoutCache ()
Methods
Hide/Show inherited methods
public Rectangle getBounds (TreePath path, Rectangle placeIn) [Specified in AbstractLayoutCache]
  Returns a rectangle giving the bounds needed to draw path.
public boolean getExpandedState (TreePath path) [Specified in AbstractLayoutCache]
Returns true if the path is expanded, and visible.
public TreeModel getModel () [Inherited From AbstractLayoutCache]
  Returns the TreeModel that is providing the data.
public NodeDimensions getNodeDimensions () [Inherited From AbstractLayoutCache]
  Returns the object that renders nodes in the tree, and which is responsible for calculating the dimensions of individual nodes.
protected Rectangle getNodeDimensions (Object value, int row, int depth, boolean expanded, Rectangle placeIn) [Inherited From AbstractLayoutCache]
  Returns, by reference in placeIn, the size needed to represent value.
public TreePath getPathClosestTo (int x, int y) [Specified in AbstractLayoutCache]
  Returns the path to the node that is closest to x,y.
public TreePath getPathForRow (int row) [Specified in AbstractLayoutCache]
  Returns the path for passed in row.
public int getPreferredHeight () [Inherited From AbstractLayoutCache]
  Returns the preferred height.
public int getPreferredWidth (Rectangle bounds) [Inherited From AbstractLayoutCache]
  Returns the preferred width for the passed in region.
public int getRowCount () [Specified in AbstractLayoutCache]
Returns the number of visible rows.
public int getRowForPath (TreePath path) [Specified in AbstractLayoutCache]
  Returns the row that the last item identified in path is visible at.
public int getRowHeight () [Inherited From AbstractLayoutCache]
  Returns the height of each row.
public int getRowsForPaths (TreePath paths) [Inherited From AbstractLayoutCache]
  Returns the rows that the TreePath instances in path are being displayed at.
public TreeSelectionModel getSelectionModel () [Inherited From AbstractLayoutCache]
  Returns the model used to maintain the selection.
public int getVisibleChildCount (TreePath path) [Specified in AbstractLayoutCache]
Returns the number of visible children for row.
public Enumeration<TreePath> getVisiblePathsFrom (TreePath path) [Specified in AbstractLayoutCache]
  Returns an Enumerator that increments over the visible paths starting at the passed in location.
public void invalidatePathBounds (TreePath path) [Specified in AbstractLayoutCache]
Does nothing, FixedHeightLayoutCache doesn't cache width, and that is all that could change.
public void invalidateSizes () [Specified in AbstractLayoutCache]
Informs the TreeState that it needs to recalculate all the sizes it is referencing.
public boolean isExpanded (TreePath path) [Specified in AbstractLayoutCache]
Returns true if the value identified by row is currently expanded.
protected boolean isFixedRowHeight () [Inherited From AbstractLayoutCache]
Returns true if the height of each row is a fixed size.
public boolean isRootVisible () [Inherited From AbstractLayoutCache]
  Returns true if the root node of the tree is displayed.
public void setExpandedState (TreePath path, boolean isExpanded) [Specified in AbstractLayoutCache]
Marks the path path expanded state to isExpanded.
public void setModel (TreeModel newModel) [Overrides AbstractLayoutCache]
  Sets the TreeModel that will provide the data.
public void setNodeDimensions (NodeDimensions nd) [Inherited From AbstractLayoutCache]
  Sets the renderer that is responsible for drawing nodes in the tree and which is threfore responsible for calculating the dimensions of individual nodes.
public void setRootVisible (boolean rootVisible) [Overrides AbstractLayoutCache]
  Determines whether or not the root node from the TreeModel is visible.
public void setRowHeight (int rowHeight) [Overrides AbstractLayoutCache]
  Sets the height of each cell.
public void setSelectionModel (TreeSelectionModel newLSM) [Inherited From AbstractLayoutCache]
  Sets the TreeSelectionModel used to manage the selection to new LSM.
public void treeNodesChanged (TreeModelEvent e) [Specified in AbstractLayoutCache]
  Invoked after a node (or a set of siblings) has changed in some way.
public void treeNodesInserted (TreeModelEvent e) [Specified in AbstractLayoutCache]
  Invoked after nodes have been inserted into the tree.
public void treeNodesRemoved (TreeModelEvent e) [Specified in AbstractLayoutCache]
  Invoked after nodes have been removed from the tree.
public void treeStructureChanged (TreeModelEvent e) [Specified in AbstractLayoutCache]
  Invoked after the tree has drastically changed structure from a given node down.
Fields
Hide/Show inherited fields
protected NodeDimensions nodeDimensions [Inherited From AbstractLayoutCache]
Object responsible for getting the size of a node.
protected boolean rootVisible [Inherited From AbstractLayoutCache]
True if the root node is displayed, false if its children are the highest visible nodes.
protected int rowHeight [Inherited From AbstractLayoutCache]
  Height to use for each row.
protected TreeModel treeModel [Inherited From AbstractLayoutCache]
Model providing information.
protected TreeSelectionModel treeSelectionModel [Inherited From AbstractLayoutCache]
Selection model.
Nested Classes
  AbstractLayoutCache.NodeDimensions
Used by AbstractLayoutCache to determine the size and x origin of a particular node.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar