infovis.tree
Class DegreeColumn

java.lang.Object
  extended by infovis.utils.ChangeManager
      extended by infovis.column.AbstractColumn
          extended by infovis.column.BasicColumn
              extended by infovis.column.LiteralColumn
                  extended by infovis.column.IntColumn
                      extended by infovis.tree.TreeIntColumn
                          extended by infovis.tree.DegreeColumn
All Implemented Interfaces:
IntComparator, Column, NumberColumn, Metadata, Constants, RowComparator, Serializable, EventListener, TreeModelListener

public class DegreeColumn
extends TreeIntColumn

Computes and maintains the degree of a tree in a column.

Version:
$Revision: 1.4 $
Author:
Jean-Daniel Fekete
See Also:
Serialized Form

Field Summary
static String DEGREE_COLUMN
          Name of the optional IntColumn referencing the degree of a node.
 
Fields inherited from class infovis.column.AbstractColumn
MODIFIED_ALL, MODIFIED_NONE
 
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 DegreeColumn findColumn(Tree tree)
          Returns the DegreeColumn of this tree if it exists and creates it otherwise.
static DegreeColumn getColumn(Tree tree)
          Returns the DegreeColumn of this tree if it exists or null.
 
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.LiteralColumn
compare, compareValues, getDoubleMax, getDoubleMin, getNumberColumn, hasUndefinedValue, isValueUndefined, setFloatAt, setValueUndefined, trimUndefined
 
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 class infovis.column.AbstractColumn
addChangeListener, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow
 
Methods inherited from class infovis.utils.ChangeManager
disableNotify, enableNotify, getModCount, removeChangeListener
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface infovis.Column
addChangeListener, addValue, addValueOrNull, disableNotify, enableNotify, getFormat, getMaxIndex, getMinIndex, getName, isEmpty, isInternal, removeChangeListener, setFormat, setName, setValueOrNullAt
 
Methods inherited from interface infovis.Metadata
getClientProperty, getMetadata
 
Methods inherited from interface cern.colt.function.IntComparator
equals
 

Field Detail

DEGREE_COLUMN

public static final String DEGREE_COLUMN
Name of the optional IntColumn referencing the degree of a node.

See Also:
Constant Field Values
Method Detail

getColumn

public static DegreeColumn getColumn(Tree tree)
Returns the DegreeColumn of this tree if it exists or null.

Parameters:
tree - the tree
Returns:
the DegreeColumn of this tree if it exists or null.

findColumn

public static DegreeColumn findColumn(Tree tree)
Returns the DegreeColumn of this tree if it exists and creates it otherwise.

Parameters:
tree - the tree
Returns:
the DegreeColumn of this tree.


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.