infovis.tree
Class LeafCountColumn
java.lang.Object
infovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.BasicColumn
infovis.column.LiteralColumn
infovis.column.IntColumn
infovis.tree.TreeIntColumn
infovis.tree.LeafCountColumn
- All Implemented Interfaces:
- IntComparator, Column, NumberColumn, Metadata, Constants, RowComparator, Serializable, EventListener, TreeModelListener
public class LeafCountColumn
- extends TreeIntColumn
Class for computing and maintaining the number of leaves
for each node in a tree.
- Version:
- $Revision: 1.6 $
- Author:
- Jean-Daniel Fekete
- See Also:
- Serialized Form
Field Summary |
static String |
LEAF_COUNT_COLUMN
Name of the Column referencing the number of leaves descendant
of a node. |
Fields inherited from interface infovis.metadata.Constants |
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Method Summary |
static LeafCountColumn |
findColumn(Tree tree)
Returns the TreeCountColumn associated with the specified
tree, creating it if necessary. |
static LeafCountColumn |
getColumn(Tree tree)
Returns the TreeCountColumn associated with the specified
tree or null. |
void |
update()
Method called when the tree is changed. |
Methods inherited from class infovis.tree.TreeIntColumn |
dispose, get, getValueReference, invalidate, isInvalid, iterator, size, sort, stableSort, toArray, toArray, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, validate |
Methods inherited from class infovis.column.IntColumn |
add, addExtend, capacity, clear, ensureCapacity, fill, findColumn, format, format, getColumn, getColumn, getDoubleAt, getFloatAt, getIntAt, getLongAt, getMax, getMin, getValueAt, getValueClass, parse, round, set, setDoubleAt, setExtend, setIntAt, setLongAt, setSize, setValueAt |
Methods inherited from class infovis.column.BasicColumn |
addValue, addValueOrNull, firstValidRow, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, isEmpty, isInternal, lastValidRow, setFormat, setName, setValueOrNullAt, toString |
Methods inherited from interface infovis.Column |
addChangeListener, addValue, addValueOrNull, disableNotify, enableNotify, getFormat, getMaxIndex, getMinIndex, getName, isEmpty, isInternal, removeChangeListener, setFormat, setName, setValueOrNullAt |
LEAF_COUNT_COLUMN
public static final String LEAF_COUNT_COLUMN
- Name of the Column referencing the number of leaves descendant
of a node.
- See Also:
- Constant Field Values
getColumn
public static LeafCountColumn getColumn(Tree tree)
- Returns the TreeCountColumn associated with the specified
tree or null.
- Parameters:
tree
- the tree.
- Returns:
- the TreeCountColumn associated with the specified
tree or null.
findColumn
public static LeafCountColumn findColumn(Tree tree)
- Returns the TreeCountColumn associated with the specified
tree, creating it if necessary.
- Parameters:
tree
- the tree.
- Returns:
- the TreeCountColumn associated with the specified
tree, creating it if necessary.
update
public void update()
- Method called when the tree is changed.
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.