infovis.tree.visualization
Class RainbowColumn
java.lang.Object
infovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.BasicColumn
infovis.column.LiteralColumn
infovis.column.IntColumn
infovis.tree.TreeIntColumn
infovis.tree.visualization.RainbowColumn
- All Implemented Interfaces:
- IntComparator, Column, NumberColumn, Metadata, Constants, DepthFirst.Visitor, RowComparator, Serializable, EventListener, TreeModelListener
public class RainbowColumn
- extends TreeIntColumn
- implements DepthFirst.Visitor
Computes and maintain a rainbow color according to the leaves of a tree.
- Version:
- $Revision: 1.7 $
- Author:
- Jean-Daniel Fekete
- See Also:
- Serialized Form
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 RainbowColumn |
findColumn(Tree tree)
Returns a RainbowColumn associated with the specified tree,
creating it if needed. |
static RainbowColumn |
getColumn(Tree tree)
Returns a RainbowColumn associated with the specified tree
or null if none exists. |
void |
postorder(int node)
Method called when all the children of the node have been
traversed. |
boolean |
preorder(int node)
Method called when the node is initially reached. |
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 |
RAINBOW_COLUMN
public static final String RAINBOW_COLUMN
- Name of the column containing the rainbow.
- See Also:
- Constant Field Values
findColumn
public static RainbowColumn findColumn(Tree tree)
- Returns a RainbowColumn associated with the specified tree,
creating it if needed.
- Parameters:
tree
- the tree
- Returns:
- a RainbowColumn associated with the specified tree,
creating it if needed.
getColumn
public static RainbowColumn getColumn(Tree tree)
- Returns a RainbowColumn associated with the specified tree
or null if none exists.
- Parameters:
tree
- the tree
- Returns:
- a RainbowColumn associated with the specified tree
or null if none exists.
preorder
public boolean preorder(int node)
- Method called when the node is initially reached.
- Specified by:
preorder
in interface DepthFirst.Visitor
- Parameters:
node
- the reached node.
- Returns:
- true if the subtree should be traversed, false if it
should be pruned from the traversal. In the latter case,
the two other methods are not called for the node.
postorder
public void postorder(int node)
- Method called when all the children of the node have been
traversed.
- Specified by:
postorder
in interface DepthFirst.Visitor
- Parameters:
node
- the reached node.
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.