|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.ColumnProxy
infovis.column.ColumnId
public class ColumnId
Class ColumnId wraps any column to make it a NumberColumn. As value, it simply returns the index of the element.
| 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 |
| Method Summary | |
|---|---|
static ColumnId |
findIdColumn(Column col)
Search for an IdColumn associated with a specified column and returns it or creates it if none exists. |
String |
format(double value)
Returns the specified value formatted according to this column's format. |
int |
get(int row)
Returns the row. |
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 class infovis.column.ColumnProxy |
|---|
addValue, addValueOrNull, capacity, clear, compare, dispose, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, iterator, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size, stateChanged |
| Methods inherited from class infovis.column.AbstractColumn |
|---|
addChangeListener, compareValues, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow, toString |
| 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, 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 |
|---|
public static ColumnId findIdColumn(Column col)
col - the column
public int get(int row)
row - the row
public double getDoubleAt(int row)
getDoubleAt in interface NumberColumnrow - the row
public double getDoubleMax()
getDoubleMax in interface NumberColumnpublic double getDoubleMin()
getDoubleMin in interface NumberColumnpublic float getFloatAt(int row)
getFloatAt in interface NumberColumnrow - the row
public int getIntAt(int row)
getIntAt in interface NumberColumnrow - the row
public long getLongAt(int row)
getLongAt in interface NumberColumnrow - the row
public double round(double value)
round in interface NumberColumnvalue - the value to round
public void setDoubleAt(int row,
double v)
setDoubleAt in interface NumberColumnrow - the rowv - the value as a double
public void setFloatAt(int row,
float v)
setFloatAt in interface NumberColumnrow - the rowv - the value as a float
public void setIntAt(int row,
int v)
setIntAt in interface NumberColumnrow - the rowv - the value as an int
public void setLongAt(int row,
long v)
setLongAt in interface NumberColumnrow - the rowv - the value as a longpublic String format(double value)
format in interface NumberColumnvalue - the value to format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||