API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.tree. AbstractLayoutCache View Source
Author(s)
Scott Violet
Since
Version
1.18 11/17/05
Serial
Hierarchy
 Object
      AbstractLayoutCache
Implements
 RowMapper
Subclasses
Description
publicabstract abstract class AbstractLayoutCache
  Warning: Serialized objects of this class will not be compatible with future Swing releases.
See also:   
Constructors
public AbstractLayoutCache ()
Methods
Hide/Show inherited methods
publicabstract Rectangle getBounds (TreePath path, Rectangle placeIn)
  Returns a rectangle giving the bounds needed to draw path.
publicabstract boolean getExpandedState (TreePath path)
  Returns true if the path is expanded, and visible.
public TreeModel getModel ()
  Returns the TreeModel that is providing the data.
public NodeDimensions getNodeDimensions ()
  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)
  Returns, by reference in placeIn, the size needed to represent value.
publicabstract TreePath getPathClosestTo (int x, int y)
  Returns the path to the node that is closest to x,y.
publicabstract TreePath getPathForRow (int row)
  Returns the path for passed in row.
public int getPreferredHeight ()
  Returns the preferred height.
public int getPreferredWidth (Rectangle bounds)
  Returns the preferred width for the passed in region.
publicabstract int getRowCount ()
  Number of rows being displayed.
publicabstract int getRowForPath (TreePath path)
  Returns the row that the last item identified in path is visible at.
public int getRowHeight ()
  Returns the height of each row.
public int getRowsForPaths (TreePath paths) [Specified in RowMapper]
  Returns the rows that the TreePath instances in path are being displayed at.
public TreeSelectionModel getSelectionModel ()
  Returns the model used to maintain the selection.
publicabstract int getVisibleChildCount (TreePath path)
  Returns the number of visible children for row.
publicabstract Enumeration<TreePath> getVisiblePathsFrom (TreePath path)
  Returns an Enumerator that increments over the visible paths starting at the passed in location.
publicabstract void invalidatePathBounds (TreePath path)
  Instructs the LayoutCache that the bounds for path are invalid, and need to be updated.
publicabstract void invalidateSizes ()
Informs the TreeState that it needs to recalculate all the sizes it is referencing.
publicabstract boolean isExpanded (TreePath path)
Returns true if the value identified by row is currently expanded.
protected boolean isFixedRowHeight ()
Returns true if the height of each row is a fixed size.
public boolean isRootVisible ()
  Returns true if the root node of the tree is displayed.
publicabstract void setExpandedState (TreePath path, boolean isExpanded)
  Marks the path path expanded state to isExpanded.
public void setModel (TreeModel newModel)
  Sets the TreeModel that will provide the data.
public void setNodeDimensions (NodeDimensions nd)
  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)
  Determines whether or not the root node from the TreeModel is visible.
public void setRowHeight (int rowHeight)
  Sets the height of each cell.
public void setSelectionModel (TreeSelectionModel newLSM)
  Sets the TreeSelectionModel used to manage the selection to new LSM.
publicabstract void treeNodesChanged (TreeModelEvent e)
  Invoked after a node (or a set of siblings) has changed in some way.
publicabstract void treeNodesInserted (TreeModelEvent e)
  Invoked after nodes have been inserted into the tree.
publicabstract void treeNodesRemoved (TreeModelEvent e)
  Invoked after nodes have been removed from the tree.
publicabstract void treeStructureChanged (TreeModelEvent e)
  Invoked after the tree has drastically changed structure from a given node down.
Fields
Hide/Show inherited fields
protected NodeDimensions nodeDimensions
Object responsible for getting the size of a node.
protected boolean rootVisible
True if the root node is displayed, false if its children are the highest visible nodes.
protected int rowHeight
  Height to use for each row.
protected TreeModel treeModel
Model providing information.
protected TreeSelectionModel treeSelectionModel
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