infovis.column
Class EventColumn
java.lang.Object
infovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.BasicColumn
infovis.column.LiteralColumn
infovis.column.IntColumn
infovis.column.EventColumn
- All Implemented Interfaces:
- IntComparator, Column, NumberColumn, Metadata, Constants, RowComparator, Serializable
public class EventColumn
- extends IntColumn
Column containing list of timed events.
- Version:
- $Revision: 1.6 $
- Author:
- Jean-Daniel Fekete
- See Also:
- Serialized Form
Fields inherited from interface infovis.metadata.Constants |
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Methods inherited from class infovis.column.IntColumn |
add, addExtend, capacity, clear, ensureCapacity, fill, findColumn, format, format, getColumn, getColumn, getDoubleAt, getFloatAt, getIntAt, getLongAt, getMax, getMin, getValueAt, getValueClass, getValueReference, parse, round, setDoubleAt, setExtend, setIntAt, setLongAt, setValueAt, size, sort, stableSort, toArray, toArray |
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 interface infovis.Column |
addChangeListener, addValue, addValueOrNull, disableNotify, enableNotify, getFormat, getMaxIndex, getMinIndex, getName, isEmpty, isInternal, iterator, removeChangeListener, setFormat, setName, setValueOrNullAt |
EventColumn
public EventColumn(String name)
EventColumn
public EventColumn(String name,
int reserve)
isValueUndefined
public boolean isValueUndefined(int i)
- Description copied from interface:
Column
- Returns true if the ith value is undefined.
- Specified by:
isValueUndefined
in interface Column
- Specified by:
isValueUndefined
in interface RowComparator
- Overrides:
isValueUndefined
in class LiteralColumn
- Parameters:
i
- the index
- Returns:
- true if the ith value is undefined.
- See Also:
Column.isValueUndefined(int)
setValueUndefined
public void setValueUndefined(int i,
boolean undef)
- Description copied from interface:
Column
- Sets the ith element to have an undefined value.
- Specified by:
setValueUndefined
in interface Column
- Overrides:
setValueUndefined
in class LiteralColumn
- Parameters:
i
- the indexundef
- true if the value should be undefined,
false otherwise.- See Also:
Column.setValueUndefined(int,boolean)
set
public void set(int index,
int element)
- Description copied from class:
IntColumn
- Replaces the element at the specified position in this column with the
specified element.
- Overrides:
set
in class IntColumn
- Parameters:
index
- index of element to replace.element
- element to be stored at the specified position.
get
public int get(int index)
- Description copied from class:
IntColumn
- Returns the element at the specified position in this column.
- Overrides:
get
in class IntColumn
- Parameters:
index
- index of element to return.
- Returns:
- the element at the specified position in this column.
getMaxEvent
public int getMaxEvent()
setMaxEvent
public void setMaxEvent(int maxEvent)
getMinEvent
public int getMinEvent()
setMinEvent
public void setMinEvent(int minEvent)
setSize
public void setSize(int newSize)
- Description copied from class:
IntColumn
- Sets the sizeColumn of this column. If the new sizeColumn is
greater than the current sizeColumn, new
0
items
are added to the end of the column. If the new sizeColumn is
less than the current sizeColumn, all components at index
newSize
and greater are discarded.
- Specified by:
setSize
in interface Column
- Overrides:
setSize
in class IntColumn
- Parameters:
newSize
- the new sizeColumn of this column.
getEvents
public IntArrayList getEvents(int index)
setEvents
public void setEvents(int index,
IntArrayList list)
addEvent
public void addEvent(int index,
int event)
addExtendEvent
public void addExtendEvent(int index,
int event)
updateValues
public void updateValues()
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.