infovis.column
Class SortedCategoricalColumn

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.column.SortedCategoricalColumn
All Implemented Interfaces:
IntComparator, Column, NumberColumn, Metadata, Constants, RowComparator, Serializable

public class SortedCategoricalColumn
extends IntColumn

SortedCategoricalColumn is an IntColumn computed from a StringColumn containing the order of each string.

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

Field Summary
 
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
 
Constructor Summary
SortedCategoricalColumn(StringColumn column)
          Constructor.
 
Method Summary
 Comparator getComparator()
          Returns the comparator.
 String[] getInverseMap()
          Returns the inverse value map.
 Map getMap()
          Returns the value map.
 
Methods inherited from class infovis.column.IntColumn
add, addExtend, capacity, clear, ensureCapacity, fill, findColumn, format, format, get, getColumn, getColumn, getDoubleAt, getFloatAt, getIntAt, getLongAt, getMax, getMin, getValueAt, getValueClass, getValueReference, parse, round, set, setDoubleAt, setExtend, setIntAt, setLongAt, setSize, setValueAt, size, sort, stableSort, toArray, toArray
 
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, iterator, 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, iterator, removeChangeListener, setFormat, setName, setValueOrNullAt
 
Methods inherited from interface infovis.Metadata
getClientProperty, getMetadata
 
Methods inherited from interface cern.colt.function.IntComparator
equals
 

Constructor Detail

SortedCategoricalColumn

public SortedCategoricalColumn(StringColumn column)
Constructor.

Parameters:
column - the associated column.
Method Detail

getComparator

public Comparator getComparator()
Returns the comparator.

Returns:
the comparator

getMap

public Map getMap()
Returns the value map.

Returns:
the value map.

getInverseMap

public String[] getInverseMap()
Returns the inverse value map.

Returns:
the inverse value map.


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