javax.swing.tree
public abstract class AbstractLayoutCache extends Object implements RowMapper
Nested Class Summary | |
---|---|
abstract static class | AbstractLayoutCache.NodeDimensions
class NodeDimensions |
Field Summary | |
---|---|
protected AbstractLayoutCache.NodeDimensions | nodeDimensions
nodeDimensions |
protected boolean | rootVisible
rootVisible |
protected int | rowHeight
rowHeight |
protected TreeModel | treeModel
treeModel |
protected TreeSelectionModel | treeSelectionModel
treeSelectionModel |
Constructor Summary | |
---|---|
AbstractLayoutCache()
Constructor AbstractLayoutCache |
Method Summary | |
---|---|
abstract Rectangle | getBounds(TreePath value0, Rectangle value1)
getBounds
|
abstract boolean | getExpandedState(TreePath path)
getExpandedState
|
TreeModel | getModel()
Returns the model that provides the tree data.
|
AbstractLayoutCache.NodeDimensions | getNodeDimensions()
getNodeDimensions
|
protected Rectangle | getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
Get the node dimensions. |
abstract TreePath | getPathClosestTo(int value0, int value1)
getPathClosestTo
|
abstract TreePath | getPathForRow(int row)
getPathForRow
|
int | getPreferredHeight()
Get the sum of heights for all rows. |
int | getPreferredWidth(Rectangle rect)
Get the maximal width. |
abstract int | getRowCount()
getRowCount
|
abstract int | getRowForPath(TreePath path)
getRowForPath
|
int | getRowHeight()
getRowHeight
|
int[] | getRowsForPaths(TreePath[] paths)
Get the tree row numbers for the given pathes. |
TreeSelectionModel | getSelectionModel()
getSelectionModel
|
abstract int | getVisibleChildCount(TreePath path)
getVisibleChildCount
|
abstract Enumeration<TreePath> | getVisiblePathsFrom(TreePath path)
getVisiblePathsFrom
|
abstract void | invalidatePathBounds(TreePath path)
invalidatePathBounds
|
abstract void | invalidateSizes()
invalidateSizes |
abstract boolean | isExpanded(TreePath value0)
isExpanded
|
protected boolean | isFixedRowHeight()
Returns true if this layout supposes that all rows have the fixed
height.
|
boolean | isRootVisible()
isRootVisible
|
abstract void | setExpandedState(TreePath value0, boolean value1)
setExpandedState
|
void | setModel(TreeModel model)
Sets the model that provides the tree data.
|
void | setNodeDimensions(AbstractLayoutCache.NodeDimensions dimensions)
setNodeDimensions
|
void | setRootVisible(boolean visible)
setRootVisible
|
void | setRowHeight(int height)
setRowHeight
|
void | setSelectionModel(TreeSelectionModel model)
setSelectionModel
|
abstract void | treeNodesChanged(TreeModelEvent event)
treeNodesChanged
|
abstract void | treeNodesInserted(TreeModelEvent event)
treeNodesInserted
|
abstract void | treeNodesRemoved(TreeModelEvent event)
treeNodesRemoved
|
abstract void | treeStructureChanged(TreeModelEvent event)
treeStructureChanged
|
Parameters: value0 TODO value1 TODO
Returns: Rectangle
Parameters: path the tree path
Returns: boolean
Returns: the model
Returns: NodeDimensions
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
Parameters: value0 TODO value1 TODO
Returns: the tree path
Parameters: row the row
Returns: the tree path
Parameters: rect the rectangle that is used during the method work
Returns: the number of rows
Parameters: path the tree path
Returns: the row
Returns: the row height
Parameters: paths the tree paths the array of the tree pathes.
Returns: the array of the matching tree rows.
Returns: the model
Parameters: path the tree path
Returns: int
Parameters: path the tree path
Returns: Enumeration
Parameters: path the tree path
Parameters: value0 TODO
Returns: boolean
Returns: boolean true if all rows in the tree must have the fixed height (false by default).
Returns: true
if root is visible,
false
otherwise
Parameters: value0 TODO value1 TODO
Parameters: model the model
Parameters: dimensions TODO
Parameters: visible true
if root should be visible,
false
otherwise
Parameters: height the row height
Parameters: model the model
Parameters: event the event to send
Parameters: event the event to send
Parameters: event the event to send
Parameters: event the event to send