infovis.column
Class EventColumn

java.lang.Object
  extended by infovis.utils.ChangeManager
      extended by infovis.column.AbstractColumn
          extended by infovis.column.BasicColumn
              extended by infovis.column.LiteralColumn
                  extended by infovis.column.IntColumn
                      extended by 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

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
 
Constructor Summary
EventColumn(String name)
           
EventColumn(String name, int reserve)
           
 
Method Summary
 void addEvent(int index, int event)
           
 void addExtendEvent(int index, int event)
           
 int get(int index)
          Returns the element at the specified position in this column.
 IntArrayList getEvents(int index)
           
 int getMaxEvent()
           
 int getMinEvent()
           
 boolean isValueUndefined(int i)
          Returns true if the ith value is undefined.
 void set(int index, int element)
          Replaces the element at the specified position in this column with the specified element.
 void setEvents(int index, IntArrayList list)
           
 void setMaxEvent(int maxEvent)
           
 void setMinEvent(int minEvent)
           
 void setSize(int newSize)
          Sets the sizeColumn of this column.
 void setValueUndefined(int i, boolean undef)
          Sets the ith element to have an undefined value.
 void updateValues()
           
 
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.LiteralColumn
compare, compareValues, getDoubleMax, getDoubleMin, getNumberColumn, hasUndefinedValue, setFloatAt, trimUndefined
 
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 class infovis.column.AbstractColumn
addChangeListener, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow
 
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, disableNotify, enableNotify, getFormat, getMaxIndex, getMinIndex, getName, isEmpty, isInternal, iterator, removeChangeListener, setFormat, setName, setValueOrNullAt
 
Methods inherited from interface infovis.Metadata
getClientProperty, getMetadata
 
Methods inherited from interface cern.colt.function.IntComparator
equals
 

Constructor Detail

EventColumn

public EventColumn(String name)

EventColumn

public EventColumn(String name,
                   int reserve)
Method Detail

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 index
undef - 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.