|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfovis.column.AbstractColumn
fr.inria.infovis.column.LayeredColumnProxy
A proxy Column to handle the layer mechanism (i.e adding another dimension to a
standard 1D column).
Principle
This proxy contains a working column. This column is used as a frontend
and then interacts directly with the rest of the Infovis classes.
Values are dispatched in several layer
by using setValueAt(int layer, int index, String element)
When restoring a given layer, the working column is first entirely cleared and
secondly values of the layers are copied into the column
Values storage is based on three structures
Field Summary |
Fields inherited from interface infovis.metadata.Constants |
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Constructor Summary | |
LayeredColumnProxy(infovis.column.BasicColumn column)
Default decorator constructor. |
Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener listener)
add a change listener for the frontend column. |
void |
addValue(java.lang.String v)
This function is part of the standard Column Interface. |
boolean |
addValueOrNull(java.lang.String v)
This function is part of the standard Column Interface. |
int |
capacity()
|
void |
clear()
Clear the contents of the three underlaying structure (backend and frontend columns and the mapping TreeMap) |
int |
compare(int row1,
int row2)
compare two values at row1 and row2
in the frontend column. |
void |
disableNotify()
disable notification for the of the frontend column |
void |
enableNotify()
enable notification of the frontend column |
void |
ensureCapacity(int minCapacity)
ensure the capacitiy of the frontend column |
boolean |
equals(java.lang.Object obj)
Column equalities : comparison with the frontend column |
int |
firstValidRow()
|
ValueAggregator |
getAggregator()
|
java.util.Map |
getClientPropery()
|
infovis.Column |
getColumn()
give the "decored" column, i.e. the real column to which the layer mechanism has been externally added |
java.text.Format |
getFormat()
|
java.util.Map |
getMetadata()
|
java.lang.String |
getName()
|
int |
getRowCount()
|
java.lang.String |
getValueAt(int row)
Return the value of the cell currently set in the frontend column. |
java.lang.Class |
getValueClass()
|
boolean |
isEmpty()
|
boolean |
isInternal()
|
boolean |
isValueUndefined(int row)
Check if the value at row is
undefined or not |
infovis.utils.RowIterator |
iterator()
|
int |
lastValidRow()
|
java.lang.String |
maxValue()
|
java.lang.String |
minValue()
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
remove a Cahnge listenerfrom the frontend column |
void |
restoreLayers(int from,
int to)
Restore all the values contained by layers [from,to]
in the frontend column.
|
void |
setAggregator(ValueAggregator aggregator)
|
void |
setColumn(infovis.column.BasicColumn c)
Set the frontend column |
void |
setColumn(infovis.Column c)
Set the frontend column |
void |
setFormat(java.text.Format format)
Set the format for the frontend column |
void |
setName(java.lang.String name)
Set the name of the frontend column |
void |
setValueAt(int layer,
int index,
java.lang.String element)
This method set the value of cell in the column into a particular layer. |
void |
setValueAt(int index,
java.lang.String element)
This function is part of the standard Column Interface. |
void |
setValueOrNullAt(int layer,
int index,
java.lang.String element)
This method set the value of cell in the column into a particular layer. |
boolean |
setValueOrNullAt(int index,
java.lang.String v)
Set a value in the frontend column |
void |
setValueUndefined(int i,
boolean undef)
Set as undefined the value at row #i |
java.lang.String |
toString()
|
Methods inherited from class infovis.column.AbstractColumn |
fireColumnChanged, getModCount |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LayeredColumnProxy(infovis.column.BasicColumn column)
column
- the concrete/frontend column
NOTE: If the column already contains values at the creation, values ARE NOT copied
into an layer. It is strongly recomended to use this constructor with EMPTY column.Method Detail |
public void clear()
clear
in interface infovis.Column
Column.clear()
public void restoreLayers(int from, int to)
[from,to]
in the frontend column.
from
and to
restoreLayers
in interface LayeredColumn
from
- first layer usedto
- last layer usedLayeredColumn.restoreLayers(int, int)
public void setValueAt(int index, java.lang.String element) throws java.text.ParseException
setValueAt
in interface infovis.Column
java.text.ParseException
Column.setValueAt(int, java.lang.String)
public void setValueAt(int layer, int index, java.lang.String element) throws java.text.ParseException
#row
layer
- the layer concerned by the modificationindex
- the index of the cell concerned by the modification (in the frontend column)element
- the new value to set in the cell,layer
java.text.ParseException
- Element is given as a string.
It must be parsed to be converted into int,float, etc...depending on the Column type.
If the conversion can not be done, this exception is thrown.public void setValueOrNullAt(int layer, int index, java.lang.String element)
setValueAt
is the possibilitiy to set a null value.
layer
- the layer concerned by the modificationindex
- index the index of the cell concerned by the modification (in the frontend column)element
- the new value to set in the cell,layer, can be null
public java.lang.String getValueAt(int row)
getValueAt
in interface infovis.Column
Column.getValueAt(int)
public ValueAggregator getAggregator()
public void setAggregator(ValueAggregator aggregator)
aggregator
- The insertion aggregator to set (experimental).public void addValue(java.lang.String v) throws java.text.ParseException
addValue
in interface infovis.Column
java.text.ParseException
Column.addValue(java.lang.String)
public boolean addValueOrNull(java.lang.String v)
addValueOrNull
in interface infovis.Column
Column.addValueOrNull(java.lang.String)
public void addChangeListener(javax.swing.event.ChangeListener listener)
addChangeListener
in interface infovis.Column
listener
- the changeListener to addpublic int capacity()
capacity
in interface infovis.Column
public int compare(int row1, int row2)
row1
and row2
in the frontend column.
compare
in interface infovis.utils.RowComparator
row1
- row2
-
public void disableNotify()
disableNotify
in interface infovis.Column
public void enableNotify()
enableNotify
in interface infovis.Column
public void ensureCapacity(int minCapacity)
ensureCapacity
in interface infovis.Column
minCapacity
- the capacity requiredpublic boolean equals(java.lang.Object obj)
obj
- the object to compare withObject.equals(java.lang.Object)
public int firstValidRow()
firstValidRow
in interface infovis.Column
public java.util.Map getClientPropery()
getClientPropery
in interface infovis.Metadata
public java.text.Format getFormat()
getFormat
in interface infovis.Column
public java.util.Map getMetadata()
getMetadata
in interface infovis.Metadata
public java.lang.String getName()
getName
in interface infovis.Column
public int getRowCount()
getRowCount
in interface infovis.Column
public java.lang.Class getValueClass()
getValueClass
in interface infovis.Column
public boolean isEmpty()
isEmpty
in interface infovis.Column
public boolean isInternal()
isInternal
in interface infovis.Column
public boolean isValueUndefined(int row)
row
is
undefined or not
isValueUndefined
in interface infovis.Column
row
- the cell index intthe the frontend column
public infovis.utils.RowIterator iterator()
iterator
in interface infovis.Column
public int lastValidRow()
lastValidRow
in interface infovis.Column
public java.lang.String maxValue()
maxValue
in interface infovis.Column
public java.lang.String minValue()
minValue
in interface infovis.Column
public void removeChangeListener(javax.swing.event.ChangeListener listener)
removeChangeListener
in interface infovis.Column
listener
- the listener to removepublic void setFormat(java.text.Format format)
setFormat
in interface infovis.Column
format
- the format to setpublic void setName(java.lang.String name)
setName
in interface infovis.Column
name
- the name to setpublic boolean setValueOrNullAt(int index, java.lang.String v)
setValueOrNullAt
in interface infovis.Column
index
- v
-
public void setValueUndefined(int i, boolean undef)
#i
setValueUndefined
in interface infovis.Column
i
- the row to disable/enableundef
- make the value undefined or definedpublic java.lang.String toString()
Object.toString()
public infovis.Column getColumn()
LayeredColumn
getColumn
in interface LayeredColumn
public void setColumn(infovis.column.BasicColumn c)
c
- The column to set.public void setColumn(infovis.Column c)
setColumn
in interface LayeredColumn
c
- The column to set.LayeredColumn.setColumn(infovis.Column)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |