infovis.column
Class FunctionColumn

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.DoubleColumn
                      extended by infovis.column.FunctionColumn
All Implemented Interfaces:
IntComparator, Column, NumberColumn, Metadata, Constants, RowComparator, Serializable, EventListener, ChangeListener

public class FunctionColumn
extends DoubleColumn
implements ChangeListener

Applies a unary function to a column and maintains the result into this column.

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
FunctionColumn(NumberColumn col, DoubleFunction fn)
          Create a FunctionColumn from a NumberColumn and a DoubleFunction.
 
Method Summary
 void stateChanged(ChangeEvent e)
          
 void update()
          Recompute the new values when the initial column has been modified.
 
Methods inherited from class infovis.column.DoubleColumn
add, addExtend, capacity, clear, ensureCapacity, fill, findColumn, format, get, getColumn, getColumn, getDoubleAt, getIntAt, getLongAt, getMax, getMin, getValueAt, getValueClass, getValueReference, parse, round, set, setDoubleAt, setExtend, setSize, setValueAt, size, toArray, toArray
 
Methods inherited from class infovis.column.LiteralColumn
compare, compareValues, getDoubleMax, getDoubleMin, getFloatAt, getNumberColumn, hasUndefinedValue, isValueUndefined, setFloatAt, setIntAt, setLongAt, 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

FunctionColumn

public FunctionColumn(NumberColumn col,
                      DoubleFunction fn)
Create a FunctionColumn from a NumberColumn and a DoubleFunction.

Parameters:
col - the NumberColumn
fn - the DoubleFunction
Method Detail

stateChanged

public void stateChanged(ChangeEvent e)

Specified by:
stateChanged in interface ChangeListener

update

public void update()
Recompute the new values when the initial column has been modified.



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