|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.utils.ChangeManager infovis.column.AbstractColumn
public abstract class AbstractColumn
AbstractColumn
is the base class for each concrete column.
AbstractColumn
implements the notification mechanism and its
inhibition.
Field Summary | |
---|---|
static int |
MODIFIED_ALL
Value of lastModifiedRow when more than one row has been modified. |
static int |
MODIFIED_NONE
Value of lastModifiedRow when no row has been modified. |
Fields inherited from interface infovis.metadata.Constants |
---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Constructor Summary | |
---|---|
AbstractColumn()
|
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener listener)
Adds a ChangeListener to call when this
column is modified. |
boolean |
compareValues(Column c)
Compare the values of this column and the specified column. |
IntIntSortedMap |
computeValueMap()
Returns the list of uniq elements of this columns associated with their count. |
IntIntSortedMap |
computeValueMap(RowComparator comp)
Returns the list of uniq elements of this columns associated with their count. |
static boolean |
equalObj(Object o1,
Object o2)
Compare two objects that can be null. |
boolean |
equals(Object obj)
|
int |
getLastModifiedRow()
Return the last modified row. |
String |
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 |
---|
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 |
Field Detail |
---|
public static final int MODIFIED_ALL
public static final int MODIFIED_NONE
Constructor Detail |
---|
public AbstractColumn()
Method Detail |
---|
public int getLastModifiedRow()
public static boolean equalObj(Object o1, Object o2)
o1
- first objecto2
- second object
public boolean equals(Object obj)
equals
in interface IntComparator
equals
in class Object
public boolean compareValues(Column c)
c
- the column to compare values from
true
if the values match, false
otherwisepublic void addChangeListener(ChangeListener listener)
ChangeListener
to call when this
column is modified.
addChangeListener
in interface Column
addChangeListener
in class ChangeManager
listener
- the listener to addpublic String toString()
toString
in class Object
public IntIntSortedMap computeValueMap(RowComparator comp)
The list contains tuples: the index of a representative of the value and the number of repetition of this value.
comp
- a comparator used to order the value or null
if
it should appear in the order specified by the column.
IntIntSortedMap
that can be read using an iterator.public IntIntSortedMap computeValueMap()
The list contains tuples: the index of a representative of the value and the number of repetition of this value.
IntIntSortedMap
that can be read using an iterator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |