infovis.column
Class ColumnOne

java.lang.Object
  extended by infovis.column.ConstantColumn
      extended by infovis.column.ColumnOne
All Implemented Interfaces:
IntComparator, Column, NumberColumn, Metadata, Constants, RowComparator, Serializable

public class ColumnOne
extends ConstantColumn

Column returning ONE for all its rows.

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

Field Summary
static ColumnOne instance
          An instance of this column.
 
Fields inherited from interface infovis.metadata.Constants
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE
 
Constructor Summary
ColumnOne()
           
 
Method Summary
 double getDoubleAt(int row)
          Returns the constant 1 for each row.
 String getName()
          Returns the column name.
 
Methods inherited from class infovis.column.ConstantColumn
addChangeListener, addValue, addValueOrNull, capacity, clear, compare, disableNotify, enableNotify, ensureCapacity, format, getClientProperty, getDoubleMax, getDoubleMin, getFloatAt, getFormat, getIntAt, getLongAt, getMaxIndex, getMetadata, getMinIndex, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, iterator, removeChangeListener, round, setDoubleAt, setFloatAt, setFormat, setIntAt, setLongAt, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cern.colt.function.IntComparator
equals
 

Field Detail

instance

public static final ColumnOne instance
An instance of this column.

Constructor Detail

ColumnOne

public ColumnOne()
Method Detail

getName

public String getName()
Returns the column name.

Specified by:
getName in interface Column
Overrides:
getName in class ConstantColumn
Returns:
the column name.

getDoubleAt

public double getDoubleAt(int row)
Returns the constant 1 for each row.

Specified by:
getDoubleAt in interface NumberColumn
Overrides:
getDoubleAt in class ConstantColumn
Parameters:
row - the row
Returns:
the constant 1 for each row


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