javax.swing.tree
Class AbstractLayoutCache
- RowMapper
class AbstractLayoutCache
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
getNodeDimensions
protected 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.
value
- the last node in the pathrow
- the node rowdepth
- the indentation depthexpanded
- true if this node is expanded, false otherwisebounds
- the area where the tree is displayed
getPathClosestTo
public abstract TreePath getPathClosestTo(int value0,
int value1)
getPathClosestTo
value0
- TODOvalue1
- TODO
getRowCount
public abstract int getRowCount()
getRowCount
getRowsForPaths
public int[] getRowsForPaths(TreePath[] paths)
Get the tree row numbers for the given pathes. This method performs
the "bulk" conversion that may be faster than mapping pathes one by
one. To have the benefit from the bulk conversion, the method must be
overridden in the derived classes. The default method delegates work
to the
getRowForPath(TreePath)
.
- getRowsForPaths in interface RowMapper
paths
- the tree paths the array of the tree pathes.
- the array of the matching tree rows.
isFixedRowHeight
protected boolean isFixedRowHeight()
Returns true if this layout supposes that all rows have the fixed
height.
- boolean true if all rows in the tree must have the fixed
height (false by default).
isRootVisible
public boolean isRootVisible()
isRootVisible
true
if root is visible,
false
otherwise
setExpandedState
public abstract void setExpandedState(TreePath value0,
boolean value1)
setExpandedState
value0
- TODOvalue1
- TODO
setModel
public void setModel(TreeModel model)
Sets the model that provides the tree data.
setRootVisible
public void setRootVisible(boolean visible)
setRootVisible
visible
- true
if root should be visible,
false
otherwise
setRowHeight
public void setRowHeight(int height)
setRowHeight
AbstractLayoutCache.java --
Copyright (C) 2002, 2004, 2006, Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.