infovis.visualization.ruler
Class RulerTable
java.lang.Object
infovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.BasicColumn
infovis.column.BasicObjectColumn
infovis.column.ColumnColumn
infovis.table.DefaultTable
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 interface infovis.metadata.Constants |
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
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 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 |
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
RulerTable
public RulerTable()
- Constructor.
addRuler
public void addRuler(Shape shape,
String label)
- Adds a new shape and associated label to this table.
- Parameters:
shape
- the shapelabel
- 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 tableshape
- the shapelabel
- 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 tablelabel
- the labelvertical
- 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 tablevertical
- 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 tablerow
- 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.