infovis.visualization.ruler
Class RulerTable

java.lang.Object
  extended by infovis.utils.ChangeManager
      extended by infovis.column.AbstractColumn
          extended by infovis.column.BasicColumn
              extended by infovis.column.BasicObjectColumn
                  extended by infovis.column.ColumnColumn
                      extended by infovis.table.DefaultTable
                          extended by infovis.visualization.ruler.RulerTable
All Implemented Interfaces:
IntComparator, Column, Metadata, Constants, Table, RowComparator, Serializable, EventListener, ChangeListener, TableModel

public class RulerTable
extends DefaultTable

Class for managing rulers associated with a visualization.

Version:
$Revision: 1.4 $
Author:
Jean-Daniel Fekete
See Also:
Serialized Form

Field Summary
static String LABEL_COLUMN
          Name of column containing the labels managed by this table.
static String SHAPE_COLUMN
          Name of column containing the shapes managed by this table.
 
Fields inherited from class infovis.column.AbstractColumn
MODIFIED_ALL, MODIFIED_NONE
 
Fields inherited from interface infovis.Table
FILTER_COLUMN, INTERNAL_PREFIX, NIL, SELECTION_COLUMN
 
Fields inherited from interface infovis.metadata.Constants
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE
 
Constructor Summary
RulerTable()
          Constructor.
 
Method Summary
 void addRuler(Shape shape, String label)
          Adds a new shape and associated label to this table.
static void addRuler(Table table, Shape shape, String label)
          Adds a new shape and associated label to a specigied table.
static String getAxisLabel(Table table, boolean vertical)
          Returns the name of the horizontal or vertial axis.
static Shape getShape(Table table, int row)
          Returns a shape from the shape column stored in the table.
static ShapeColumn getShapes(Table table)
          Returns the ShapeColumn associated with the table.
static void setAxisLabel(Table table, String label, boolean vertical)
          Sets the name of the axis for the horizontal or vertial axis.
 
Methods inherited from class infovis.table.DefaultTable
addColumn, addTableModelListener, clear, disableNotify, enableNotify, fireTableChanged, fireTableDataChanged, fireTableDataChanged, fireTableStructureChanged, getColumn, getColumnAt, getColumnClass, getColumnCount, getColumnName, getLastRow, getObjectFromRow, getRowCount, getRowFromObject, getTable, getValueAt, hasTableModelListener, indexOf, indexOf, isCellEditable, isColumnInternal, isRowValid, iterator, removeColumn, removeTableModelListener, reverseIterator, setColumnAt, setValueAt, stateChanged
 
Methods inherited from class infovis.column.ColumnColumn
add, compare, compare, definedValue, fill, findColumn, get, getColumn, getColumn, getValueClass, set, setExtend
 
Methods inherited from class infovis.column.BasicObjectColumn
add, capacity, compare, compareValues, ensureCapacity, fill, format, getObjectAt, getOrder, getValueAt, getValueReference, hasUndefinedValue, indexOf, isValueUndefined, parse, remove, remove, setExtend, setObjectAt, setOrder, setSize, setValueAt, setValueUndefined, size
 
Methods inherited from class infovis.column.BasicColumn
addValue, addValueOrNull, firstValidRow, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, isEmpty, isInternal, 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
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, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, 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
 

Field Detail

SHAPE_COLUMN

public static final String SHAPE_COLUMN
Name of column containing the shapes managed by this table.

See Also:
Constant Field Values

LABEL_COLUMN

public static final String LABEL_COLUMN
Name of column containing the labels managed by this table.

See Also:
Constant Field Values
Constructor Detail

RulerTable

public RulerTable()
Constructor.

Method Detail

addRuler

public void addRuler(Shape shape,
                     String label)
Adds a new shape and associated label to this table.

Parameters:
shape - the shape
label - the label

addRuler

public static void addRuler(Table table,
                            Shape shape,
                            String label)
Adds a new shape and associated label to a specigied table.

Parameters:
table - the table
shape - the shape
label - the label

setAxisLabel

public static void setAxisLabel(Table table,
                                String label,
                                boolean vertical)
Sets the name of the axis for the horizontal or vertial axis.

Parameters:
table - the table
label - the label
vertical - true if the label is for the vertical axis, false otherwise.

getAxisLabel

public static String getAxisLabel(Table table,
                                  boolean vertical)
Returns the name of the horizontal or vertial axis.

Parameters:
table - the table
vertical - true if the vertical axis label should be returned, false otherwise.
Returns:
the name of the horizontal or vertial axis.

getShape

public static Shape getShape(Table table,
                             int row)
Returns a shape from the shape column stored in the table.

Parameters:
table - the table
row - the row
Returns:
a shape from the shape column stored in the table.

getShapes

public static ShapeColumn getShapes(Table table)
Returns the ShapeColumn associated with the table.

Parameters:
table - the table
Returns:
the ShapeColumn associated with the table.


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.