infovis.column
Interface NumberColumn

All Superinterfaces:
Column, Constants, IntComparator, Metadata, RowComparator, Serializable
All Known Implementing Classes:
BooleanColumn, CategoricalColumn, ColorColumn, ColumnId, ColumnOne, ConstantColumn, DateColumn, DegreeColumn, DepthColumn, DoubleColumn, EventColumn, FloatColumn, FunctionColumn, HistogramColumn, IdColumn, IntColumn, IntSparseColumn, LeafCountColumn, LiteralColumn, LongColumn, RainbowColumn, SortedCategoricalColumn, TreeIntColumn

public interface NumberColumn
extends Column

Abstract class for all columns containing numeric values.

Version:
$Revision: 1.27 $
Author:
Jean-Daniel Fekete

Field Summary
 
Fields inherited from interface infovis.metadata.Constants
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE
 
Method Summary
 String format(double value)
          Returns the specified value formatted according to this column's format.
 double getDoubleAt(int row)
          Returns the value as a double.
 double getDoubleMax()
          Returns the largset value as a double.
 double getDoubleMin()
          Returns the smallest value as a double.
 float getFloatAt(int row)
          Returns the value as a float.
 int getIntAt(int row)
          Returns the value as an int.
 long getLongAt(int row)
          Returns the value as a long.
 double round(double value)
          Returns the rounded value according to the semantics of this number value.
 void setDoubleAt(int row, double v)
          Sets the value as a double.
 void setFloatAt(int row, float v)
          Sets the value as a float.
 void setIntAt(int row, int v)
          Sets the value as an int.
 void setLongAt(int row, long v)
          Sets the value as a long.
 
Methods inherited from interface infovis.Column
addChangeListener, addValue, addValueOrNull, capacity, clear, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, iterator, removeChangeListener, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size
 
Methods inherited from interface infovis.Metadata
getClientProperty, getMetadata
 
Methods inherited from interface cern.colt.function.IntComparator
compare, equals
 

Method Detail

getIntAt

int getIntAt(int row)
Returns the value as an int.

Parameters:
row - the row
Returns:
the value as an int

getFloatAt

float getFloatAt(int row)
Returns the value as a float.

Parameters:
row - the row
Returns:
the value as a float

getLongAt

long getLongAt(int row)
Returns the value as a long.

Parameters:
row - the row
Returns:
the value as a long

getDoubleAt

double getDoubleAt(int row)
Returns the value as a double.

Parameters:
row - the row
Returns:
the value as a double

setIntAt

void setIntAt(int row,
              int v)
Sets the value as an int.

Parameters:
row - the row
v - the value as an int

setFloatAt

void setFloatAt(int row,
                float v)
Sets the value as a float.

Parameters:
row - the row
v - the value as a float

setLongAt

void setLongAt(int row,
               long v)
Sets the value as a long.

Parameters:
row - the row
v - the value as a long

setDoubleAt

void setDoubleAt(int row,
                 double v)
Sets the value as a double.

Parameters:
row - the row
v - the value as a double

getDoubleMin

double getDoubleMin()
Returns the smallest value as a double.

Returns:
the smallest value as a double.

getDoubleMax

double getDoubleMax()
Returns the largset value as a double.

Returns:
the largset value as a double.

round

double round(double value)
Returns the rounded value according to the semantics of this number value.

Parameters:
value - the value to round
Returns:
the rounded value according to the semantics of this number value.

format

String format(double value)
Returns the specified value formatted according to this column's format.

Parameters:
value - the value to format
Returns:
the string formatted according to this column's format.


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