prefuse.visual
Class VisualTable

java.lang.Object
  extended by prefuse.data.tuple.AbstractTupleSet
      extended by prefuse.data.Table
          extended by prefuse.data.CascadedTable
              extended by prefuse.visual.VisualTable
All Implemented Interfaces:
java.util.EventListener, ColumnListener, TupleSet, VisualTupleSet
Direct Known Subclasses:
AggregateTable

public class VisualTable
extends CascadedTable
implements VisualTupleSet

A visual abstraction of a Table data structure. Serves as a backing table for VisualItem tuples. VisualTable dervies from CascadedTable, so can inherit another table's values. Commonly, a VisualTable is used to take a raw data table and "strap" visual properties on top of it. VisualTables should not be created directly, they are created automatically by adding data to a Visualization, for example by using the Visualization.addTable(String, Table) method.

Author:
jeffrey heer

Nested Class Summary
 
Nested classes/interfaces inherited from class prefuse.data.Table
Table.ColumnEntry
 
Field Summary
 
Fields inherited from class prefuse.data.CascadedTable
m_colFilter, m_listener, m_parent, m_pnames, m_rowFilter
 
Fields inherited from class prefuse.data.Table
m_columns, m_entries, m_lastCol, m_listeners, m_modCount, m_names, m_rows, m_schema, m_tuples
 
Fields inherited from interface prefuse.data.tuple.TupleSet
EMPTY_ARRAY
 
Constructor Summary
VisualTable(Table parent, Visualization vis, java.lang.String group)
          Create a new VisualTable.
VisualTable(Table parent, Visualization vis, java.lang.String group, Predicate rowFilter)
          Create a new VisualTable.
VisualTable(Table parent, Visualization vis, java.lang.String group, Predicate rowFilter, Schema schema)
          Create a new VisualTable.
VisualTable(Visualization vis, java.lang.String group)
          Create a new VisualTable without a parent table.
VisualTable(Visualization vis, java.lang.String group, Schema schema)
          Create a new VisualTable without a parent table.
VisualTable(Visualization vis, java.lang.String group, Schema schema, java.lang.Class tupleType)
          Create a new VisualTable without a parent table.
 
Method Summary
 VisualItem addItem()
          Add a new row to the table and return the VisualItem for that row.
protected  void fireTableEvent(int row0, int row1, int col, int type)
          Relay table events.
 java.awt.geom.Rectangle2D getBounds(int row)
          Returns the bounds for the VisualItem at the given row index.
 double getDOI(int row)
          Get the degree-of-interest (DOI) value.
 int getEndFillColor(int row)
          Get the ending fill color of the row.
 java.awt.Font getEndFont(int row)
          Get the ending font for the row.
 double getEndSize(int row)
          Get the ending size value of the row.
 int getEndStrokeColor(int row)
          Get the ending stroke color of the row.
 int getEndTextColor(int row)
          Get the ending text color of the row.
 double getEndX(int row)
          Get the ending x-coordinate of the given row.
 double getEndY(int row)
          Get the ending y-coordinate of the given row.
 int getFillColor(int row)
          Get the current fill color of the row.
 java.awt.Font getFont(int row)
          Get the current font for the row.
 java.lang.String getGroup()
          Get the visualization data group name for this table
 VisualItem getItem(int row)
          Get the VisualItem for the given table row.
 int getShape(int row)
          Get the current shape value of the row.
 double getSize(int row)
          Get the current size value of the row.
 int getStartFillColor(int row)
          Get the starting fill color of the row.
 java.awt.Font getStartFont(int row)
          Get the starting font for the row.
 double getStartSize(int row)
          Get the starting size value of the row.
 int getStartStrokeColor(int row)
          Get the starting stroke color of the row.
 int getStartTextColor(int row)
          Get the starting text color of the row.
 double getStartX(int row)
          Get the starting x-coordinate of the given row.
 double getStartY(int row)
          Get the starting y-coordinate of the given row.
 java.awt.BasicStroke getStroke(int row)
          Get the current stroke used to draw lines and shape outlines for the item at the given row.
 int getStrokeColor(int row)
          Get the current stroke color of the row.
 int getTextColor(int row)
          Get the current text color of the row.
 Visualization getVisualization()
          Get the Visualization associated with this VisualTupleSet.
 double getX(int row)
          Get the current x-coordinate of the given row.
 double getY(int row)
          Get the current y-coordinate of the given row.
protected  void init(Visualization vis, java.lang.String group, Schema schema)
          Initialize this VisualTable
 boolean isEndVisible(int row)
          Indictes if the end visible flag is set to true.
 boolean isExpanded(int row)
          Indicates the given row is expanded.
 boolean isFixed(int row)
          Indicates if the given row is fixed, and so will not have its position changed by any layout or distortion actions.
 boolean isHighlighted(int row)
          Indicates if the given row is highlighted.
 boolean isHover(int row)
          Indicates if the given row currently has the mouse pointer over it.
 boolean isInteractive(int row)
          Indicates if this item is interactive, meaning it can potentially respond to mouse and keyboard input events.
 boolean isStartVisible(int row)
          Indicates if the start visible flag is set to true.
 boolean isValidated(int row)
          Indicates if the given row is currently validated.
 boolean isVisible(int row)
          Indicates if the given row is currently set to be visible.
 void setBounds(int row, double x, double y, double w, double h)
          Set the bounding box for an item.
 void setDOI(int row, double doi)
          Set the degree-of-interest (DOI) value.
 void setEndFillColor(int row, int color)
          Set the ending fill color of the row.
 void setEndFont(int row, java.awt.Font font)
          Set the ending font for the row.
 void setEndSize(int row, double size)
          Set the ending size value of the row.
 void setEndStrokeColor(int row, int color)
          Set the ending stroke color of the row.
 void setEndTextColor(int row, int color)
          Set the ending text color of the row.
 void setEndVisible(int row, boolean value)
          Set the end visible flag.
 void setEndX(int row, double x)
          Set the ending x-coordinate of the given row.
 void setEndY(int row, double y)
          Set the ending y-coordinate of the given row.
 void setExpanded(int row, boolean value)
          Set the expanded flag.
 void setFillColor(int row, int color)
          Set the current fill color of the row.
 void setFixed(int row, boolean value)
          Sets if the given row is fixed in its position.
 void setFont(int row, java.awt.Font font)
          Set the current font for the the row.
 void setGroup(java.lang.String group)
          Set the visualization data group name for this table
 void setHighlighted(int row, boolean value)
          Set the highlighted status of the given row.
 void setHover(int row, boolean value)
          Set the hover flag.
 void setInteractive(int row, boolean value)
          Set the interactive status of the given row.
 void setShape(int row, int shape)
          Set the current shape value of the row.
 void setSize(int row, double size)
          Set the current size value of the row.
 void setStartFillColor(int row, int color)
          Set the starting fill color of the row.
 void setStartFont(int row, java.awt.Font font)
          Set the starting font for the row.
 void setStartSize(int row, double size)
          Set the starting size value of the row.
 void setStartStrokeColor(int row, int color)
          Set the starting stroke color of the row.
 void setStartTextColor(int row, int color)
          Set the starting text color of the row.
 void setStartVisible(int row, boolean value)
          Set the start visible flag.
 void setStartX(int row, double x)
          Set the starting x-coordinate of the given row.
 void setStartY(int row, double y)
          Set the starting y-coordinate of the given row.
 void setStroke(int row, java.awt.BasicStroke stroke)
          Set the current stroke used to draw lines and shape outlines.
 void setStrokeColor(int row, int color)
          Set the current stroke color of the row.
 void setTextColor(int row, int color)
          Set the current text color of the row.
 void setValidated(int row, boolean value)
          Set the given row's validated flag.
 void setVisible(int row, boolean value)
          Set the given row's visibility.
 void setVisualization(Visualization vis)
          Set the visualization associated with this VisualTable
 void setX(int row, double x)
          Set the current x-coordinate of the given row.
 void setY(int row, double y)
          Set the current y-coordinate of the given row.
 
Methods inherited from class prefuse.data.CascadedTable
addCascadedRow, addRow, addRows, filterColumns, filterRows, getChildRow, getColumn, getColumnCount, getColumnName, getColumnNames, getColumnNumber, getColumnProjection, getLocalColumnCount, getParentRow, getParentTable, getRowFilter, hasColumn, invalidateSchema, removeCascadedRow, removeRow, setColumnProjection, setRowFilter
 
Methods inherited from class prefuse.data.Table
addColumn, addColumn, addColumn, addColumn, addColumn, addConstantColumn, addTableListener, addTuple, canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, clear, columnChanged, columnChanged, columnChanged, columnChanged, columnChanged, columnChanged, columnChanged, containsTuple, get, get, getBoolean, getBoolean, getColumn, getColumnNumber, getColumnRow, getColumns, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getIndex, getIndex, getInt, getInt, getLong, getLong, getMaximumRow, getMetadata, getMinimumRow, getModificationCount, getRowCount, getSchema, getString, getString, getTableRow, getTuple, getTupleCount, handleColumnChanged, index, isAddColumnSupported, isCellEditable, isValidRow, iterator, iterator, rangeSortedBy, rangeSortedBy, rangeSortedBy, rangeSortedBy, rangeSortedBy, remove, removeAllTableListeners, removeColumn, removeColumn, removeColumn, removeIndex, removeTableListener, removeTuple, renumberColumns, revertToDefault, rows, rows, rows, rowsSortedBy, select, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString, setTuple, setTupleManager, toString, tuples, tuples, tuplesReversed, updateRowCount
 
Methods inherited from class prefuse.data.tuple.AbstractTupleSet
addColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuples, tuples
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface prefuse.data.tuple.TupleSet
addColumn, addColumn, addColumn, addColumn, addColumns, addPropertyChangeListener, addPropertyChangeListener, addTuple, addTupleSetListener, clear, containsTuple, getClientProperty, getTupleCount, isAddColumnSupported, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTuple, removeTupleSetListener, setTuple, tuples, tuples, tuples
 

Constructor Detail

VisualTable

public VisualTable(Table parent,
                   Visualization vis,
                   java.lang.String group)
Create a new VisualTable.

Parameters:
parent - the parent table whose values this table should inherit
vis - the Visualization associated with this table
group - the data group of this table

VisualTable

public VisualTable(Table parent,
                   Visualization vis,
                   java.lang.String group,
                   Predicate rowFilter)
Create a new VisualTable.

Parameters:
parent - the parent table whose values this table should inherit
vis - the Visualization associated with this table
group - the data group of this table
rowFilter - a predicate determing which rows of the parent table should be inherited by this table and which should be filtered out

VisualTable

public VisualTable(Table parent,
                   Visualization vis,
                   java.lang.String group,
                   Predicate rowFilter,
                   Schema schema)
Create a new VisualTable.

Parameters:
parent - the parent table whose values this table should inherit
vis - the Visualization associated with this table
group - the data group of this table
rowFilter - a predicate determing which rows of the parent table should be inherited by this table and which should be filtered out
schema - the data schema to use for the table's local columns

VisualTable

public VisualTable(Visualization vis,
                   java.lang.String group)
Create a new VisualTable without a parent table.

Parameters:
vis - the Visualization associated with this table
group - the data group of this table

VisualTable

public VisualTable(Visualization vis,
                   java.lang.String group,
                   Schema schema)
Create a new VisualTable without a parent table.

Parameters:
vis - the Visualization associated with this table
group - the data group of this table
schema - the data schema to use for the table's local columns

VisualTable

public VisualTable(Visualization vis,
                   java.lang.String group,
                   Schema schema,
                   java.lang.Class tupleType)
Create a new VisualTable without a parent table.

Parameters:
vis - the Visualization associated with this table
group - the data group of this table
schema - the data schema to use for the table's local columns
tupleType - the type of Tuple instances to use
Method Detail

init

protected void init(Visualization vis,
                    java.lang.String group,
                    Schema schema)
Initialize this VisualTable

Parameters:
vis - the Visualization associated with this table
group - the data group of this table
schema - the data schema to use for the table's local columns

fireTableEvent

protected void fireTableEvent(int row0,
                              int row1,
                              int col,
                              int type)
Relay table events. Ensures that updated visual items are invalidated and that damage reports are issued for deleted items.

Overrides:
fireTableEvent in class Table
Parameters:
row0 - the starting row of the modified range
row1 - the ending row (inclusive) of the modified range
col - the number of the column modified, or EventConstants.ALL_COLUMNS for operations effecting all columns.
type - the table modification type, one of EventConstants.INSERT, EventConstants.DELETE, or EventConstants.UPDATE.

getVisualization

public Visualization getVisualization()
Description copied from interface: VisualTupleSet
Get the Visualization associated with this VisualTupleSet.

Specified by:
getVisualization in interface VisualTupleSet
Returns:
the Visualization instance
See Also:
VisualTupleSet.getVisualization()

setVisualization

public void setVisualization(Visualization vis)
Set the visualization associated with this VisualTable

Parameters:
vis - the visualization to set

getGroup

public java.lang.String getGroup()
Get the visualization data group name for this table

Specified by:
getGroup in interface VisualTupleSet
Returns:
the data group name

setGroup

public void setGroup(java.lang.String group)
Set the visualization data group name for this table

Parameters:
group - the data group name to use

getItem

public VisualItem getItem(int row)
Get the VisualItem for the given table row.

Parameters:
row - a table row index
Returns:
the VisualItem for the given table row

addItem

public VisualItem addItem()
Add a new row to the table and return the VisualItem for that row. Only allowed if there is no parent table, otherwise an exception will result.

Returns:
the VisualItem for the newly added table row.

isValidated

public boolean isValidated(int row)
Indicates if the given row is currently validated. If not, validateBounds() must be run to update the bounds to a current value.

Parameters:
row - the table row
Returns:
true if validated, false otherwise

setValidated

public void setValidated(int row,
                         boolean value)
Set the given row's validated flag. This is for internal use by prefuse and, in general, should not be called by application code.

Parameters:
row - the table row to set
value - the value of the validated flag to set.

isVisible

public boolean isVisible(int row)
Indicates if the given row is currently set to be visible. Items with the visible flag set false will not be drawn by a display. Invisible items are also by necessity not interactive, regardless of the value of the interactive flag.

Parameters:
row - the table row
Returns:
true if visible, false if invisible

setVisible

public void setVisible(int row,
                       boolean value)
Set the given row's visibility.

Parameters:
row - the table row to set
value - true to make the item visible, false otherwise.

isStartVisible

public boolean isStartVisible(int row)
Indicates if the start visible flag is set to true. This is the visibility value consulted for the staring value of the visibility field at the beginning of an animated transition.

Parameters:
row - the table row
Returns:
true if this item starts out visible, false otherwise.

setStartVisible

public void setStartVisible(int row,
                            boolean value)
Set the start visible flag.

Parameters:
row - the table row to set
value - true to set the start visible flag, false otherwise

isEndVisible

public boolean isEndVisible(int row)
Indictes if the end visible flag is set to true. This is the visibility value consulted for the ending value of the visibility field at the end of an animated transition.

Parameters:
row - the table row
Returns:
true if this items ends visible, false otherwise.

setEndVisible

public void setEndVisible(int row,
                          boolean value)
Set the end visible flag.

Parameters:
row - the table row to set
value - true to set the end visible flag, false otherwise

isInteractive

public boolean isInteractive(int row)
Indicates if this item is interactive, meaning it can potentially respond to mouse and keyboard input events.

Parameters:
row - the table row
Returns:
true if the item is interactive, false otherwise

setInteractive

public void setInteractive(int row,
                           boolean value)
Set the interactive status of the given row.

Parameters:
row - the table row to set
value - true for interactive, false for non-interactive

isExpanded

public boolean isExpanded(int row)
Indicates the given row is expanded. Only used for items that are part of a graph structure.

Parameters:
row - the table row
Returns:
true if expanded, false otherwise

setExpanded

public void setExpanded(int row,
                        boolean value)
Set the expanded flag.

Parameters:
row - the table row to set
value - true to set as expanded, false as collapsed.

isFixed

public boolean isFixed(int row)
Indicates if the given row is fixed, and so will not have its position changed by any layout or distortion actions.

Parameters:
row - the table row
Returns:
true if the item has a fixed position, false otherwise

setFixed

public void setFixed(int row,
                     boolean value)
Sets if the given row is fixed in its position.

Parameters:
row - the table row to set
value - true to fix the item, false otherwise

isHighlighted

public boolean isHighlighted(int row)
Indicates if the given row is highlighted.

Parameters:
row - the table row
Returns:
true for highlighted, false for not highlighted

setHighlighted

public void setHighlighted(int row,
                           boolean value)
Set the highlighted status of the given row. How higlighting values are interpreted by the system depends on the various processing actions set up for an application (e.g., how a ColorAction might assign colors based on the flag).

Parameters:
row - the table row to set
value - true to highlight the item, false for no highlighting.

isHover

public boolean isHover(int row)
Indicates if the given row currently has the mouse pointer over it.

Parameters:
row - the table row
Returns:
true if the mouse pointer is over this item, false otherwise

setHover

public void setHover(int row,
                     boolean value)
Set the hover flag. This is set automatically by the prefuse framework, so should not need to be set explicitly by application code.

Parameters:
row - the table row to set
value - true to set the hover flag, false otherwise

getX

public double getX(int row)
Get the current x-coordinate of the given row.

Parameters:
row - the table row
Returns:
the current x-coordinate

setX

public void setX(int row,
                 double x)
Set the current x-coordinate of the given row.

Parameters:
row - the table row to set
x - the new current x-coordinate

getY

public double getY(int row)
Get the current y-coordinate of the given row.

Parameters:
row - the table row
Returns:
the current y-coordinate

setY

public void setY(int row,
                 double y)
Set the current y-coordinate of the given row.

Parameters:
row - the table row to set
y - the new current y-coordinate

getStartX

public double getStartX(int row)
Get the starting x-coordinate of the given row.

Parameters:
row - the table row
Returns:
the starting x-coordinate

setStartX

public void setStartX(int row,
                      double x)
Set the starting x-coordinate of the given row.

Parameters:
row - the table row to set
x - the new starting x-coordinate

getStartY

public double getStartY(int row)
Get the starting y-coordinate of the given row.

Parameters:
row - the table row
Returns:
the starting y-coordinate

setStartY

public void setStartY(int row,
                      double y)
Set the starting y-coordinate of the given row.

Parameters:
row - the table row to set
y - the new starting y-coordinate

getEndX

public double getEndX(int row)
Get the ending x-coordinate of the given row.

Parameters:
row - the table row
Returns:
the ending x-coordinate

setEndX

public void setEndX(int row,
                    double x)
Set the ending x-coordinate of the given row.

Parameters:
row - the table row to set
x - the new ending x-coordinate

getEndY

public double getEndY(int row)
Get the ending y-coordinate of the given row.

Parameters:
row - the table row
Returns:
the ending y-coordinate

setEndY

public void setEndY(int row,
                    double y)
Set the ending y-coordinate of the given row.

Parameters:
row - the table row to set
y - the new ending y-coordinate

getBounds

public java.awt.geom.Rectangle2D getBounds(int row)
Returns the bounds for the VisualItem at the given row index. The returned reference is for the actual bounds object used by the system -- do NOT directly edit the values in this returned object!! This will corrupt the state of the system.

Parameters:
row - the table row
Returns:
the bounding box for the item at the given row

setBounds

public void setBounds(int row,
                      double x,
                      double y,
                      double w,
                      double h)
Set the bounding box for an item. This method is used by Renderer modules when the bounds are validated, or set by processing Actions used in conjunction with Renderers that do not perform bounds management.

Parameters:
row - the table row to set
x - the minimum x-coordinate
y - the minimum y-coorindate
w - the width of this item
h - the height of this item
See Also:
VisualItem.BOUNDS

getStrokeColor

public int getStrokeColor(int row)
Get the current stroke color of the row. The stroke color is used to draw lines and the outlines of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row
Returns:
the current stroke color, represented as an integer
See Also:
ColorLib

setStrokeColor

public void setStrokeColor(int row,
                           int color)
Set the current stroke color of the row. The stroke color is used to draw lines and the outlines of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row to set
color - the current stroke color, represented as an integer
See Also:
ColorLib

getStartStrokeColor

public int getStartStrokeColor(int row)
Get the starting stroke color of the row. The stroke color is used to draw lines and the outlines of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row
Returns:
the starting stroke color, represented as an integer
See Also:
ColorLib

setStartStrokeColor

public void setStartStrokeColor(int row,
                                int color)
Set the starting stroke color of the row. The stroke color is used to draw lines and the outlines of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row to set
color - the starting stroke color, represented as an integer
See Also:
ColorLib

getEndStrokeColor

public int getEndStrokeColor(int row)
Get the ending stroke color of the row. The stroke color is used to draw lines and the outlines of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row
Returns:
the ending stroke color, represented as an integer
See Also:
ColorLib

setEndStrokeColor

public void setEndStrokeColor(int row,
                              int color)
Set the ending stroke color of the row. The stroke color is used to draw lines and the outlines of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row to set
color - the ending stroke color, represented as an integer
See Also:
ColorLib

getFillColor

public int getFillColor(int row)
Get the current fill color of the row. The fill color is used to fill the interior of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row
Returns:
the current fill color, represented as an integer
See Also:
ColorLib

setFillColor

public void setFillColor(int row,
                         int color)
Set the current fill color of the row. The stroke color is used to fill the interior of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row to set
color - the current fill color, represented as an integer
See Also:
ColorLib

getStartFillColor

public int getStartFillColor(int row)
Get the starting fill color of the row. The fill color is used to fill the interior of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row
Returns:
the starting fill color, represented as an integer
See Also:
ColorLib

setStartFillColor

public void setStartFillColor(int row,
                              int color)
Set the starting fill color of the row. The stroke color is used to fill the interior of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row to set
color - the starting fill color, represented as an integer
See Also:
ColorLib

getEndFillColor

public int getEndFillColor(int row)
Get the ending fill color of the row. The fill color is used to fill the interior of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row
Returns:
the ending fill color, represented as an integer
See Also:
ColorLib

setEndFillColor

public void setEndFillColor(int row,
                            int color)
Set the ending fill color of the row. The stroke color is used to fill the interior of shapes. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row to set
color - the ending fill color, represented as an integer
See Also:
ColorLib

getTextColor

public int getTextColor(int row)
Get the current text color of the row. The text color is used to draw text strings for the item. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row
Returns:
the current text color, represented as an integer
See Also:
ColorLib

setTextColor

public void setTextColor(int row,
                         int color)
Set the current text color of the row. The text color is used to draw text strings for the item. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row to set
color - the current text color, represented as an integer
See Also:
ColorLib

getStartTextColor

public int getStartTextColor(int row)
Get the starting text color of the row. The text color is used to draw text strings for the item. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row
Returns:
the starting text color, represented as an integer
See Also:
ColorLib

setStartTextColor

public void setStartTextColor(int row,
                              int color)
Set the starting text color of the row. The text color is used to draw text strings for the item. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row to set
color - the starting text color, represented as an integer
See Also:
ColorLib

getEndTextColor

public int getEndTextColor(int row)
Get the ending text color of the row. The text color is used to draw text strings for the item. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row
Returns:
the ending text color, represented as an integer
See Also:
ColorLib

setEndTextColor

public void setEndTextColor(int row,
                            int color)
Set the ending text color of the row. The text color is used to draw text strings for the item. Color values as represented as an integer containing the red, green, blue, and alpha (transparency) color channels. A color with a zero alpha component is fully transparent and will not be drawn.

Parameters:
row - the table row to set
color - the ending text color, represented as an integer
See Also:
ColorLib

getSize

public double getSize(int row)
Get the current size value of the row. Size values are typically used to scale an item, either in one-dimension (e.g., a bar chart length) or two-dimensions (e.g., using pixel area to encode a quantitative value).

Parameters:
row - the table row
Returns:
the current size value

setSize

public void setSize(int row,
                    double size)
Set the current size value of the row. Size values are typically used to scale an item, either in one-dimension (e.g., a bar chart length) or two-dimensions (e.g., using pixel area to encode a quantitative value).

Parameters:
row - the table row to set
size - the current size value

getStartSize

public double getStartSize(int row)
Get the starting size value of the row. Size values are typically used to scale an item, either in one-dimension (e.g., a bar chart length) or two-dimensions (e.g., using pixel area to encode a quantitative value).

Parameters:
row - the table row
Returns:
the starting size value

setStartSize

public void setStartSize(int row,
                         double size)
Set the starting size value of the row. Size values are typically used to scale an item, either in one-dimension (e.g., a bar chart length) or two-dimensions (e.g., using pixel area to encode a quantitative value).

Parameters:
row - the table row to set
size - the starting size value

getEndSize

public double getEndSize(int row)
Get the ending size value of the row. Size values are typically used to scale an item, either in one-dimension (e.g., a bar chart length) or two-dimensions (e.g., using pixel area to encode a quantitative value).

Parameters:
row - the table row
Returns:
the ending size value

setEndSize

public void setEndSize(int row,
                       double size)
Set the ending size value of the row. Size values are typically used to scale an item, either in one-dimension (e.g., a bar chart length) or two-dimensions (e.g., using pixel area to encode a quantitative value).

Parameters:
row - the table row to set
size - the ending size value

getShape

public int getShape(int row)
Get the current shape value of the row. One of the SHAPE constants included in the Constants class. This value only has an effect if a Renderer that supports different shapes is used (e.g., ShapeRenderer.

Parameters:
row - the table row
Returns:
the current shape value

setShape

public void setShape(int row,
                     int shape)
Set the current shape value of the row. One of the SHAPE constants included in the Constants class. This value only has an effect if a Renderer that supports different shapes is used (e.g., ShapeRenderer.

Parameters:
row - the table row to set
shape - the shape value to use

getStroke

public java.awt.BasicStroke getStroke(int row)
Get the current stroke used to draw lines and shape outlines for the item at the given row.

Returns:
the stroke used to draw lines and shape outlines

setStroke

public void setStroke(int row,
                      java.awt.BasicStroke stroke)
Set the current stroke used to draw lines and shape outlines.

Parameters:
stroke - the stroke to use to draw lines and shape outlines

getFont

public java.awt.Font getFont(int row)
Get the current font for the row. The font is used as the default typeface for drawing text for this item.

Parameters:
row - the table row
Returns:
the current font value

setFont

public void setFont(int row,
                    java.awt.Font font)
Set the current font for the the row. The font is used as the default typeface for drawing text for this item.

Parameters:
row - the table row to set
font - the current font value

getStartFont

public java.awt.Font getStartFont(int row)
Get the starting font for the row. The font is used as the default typeface for drawing text for this item.

Parameters:
row - the table row
Returns:
the starting font value

setStartFont

public void setStartFont(int row,
                         java.awt.Font font)
Set the starting font for the row. The font is used as the default typeface for drawing text for this item.

Parameters:
row - the table row to set
font - the starting font value

getEndFont

public java.awt.Font getEndFont(int row)
Get the ending font for the row. The font is used as the default typeface for drawing text for this item.

Parameters:
row - the table row
Returns:
the ending font value

setEndFont

public void setEndFont(int row,
                       java.awt.Font font)
Set the ending font for the row. The font is used as the default typeface for drawing text for this item.

Parameters:
row - the table row to set
font - the ending font value

getDOI

public double getDOI(int row)
Get the degree-of-interest (DOI) value. The degree-of-interet is an optional value that can be used to sort items by importance, control item visibility, or influence particular visual encodings. A common example is to use the DOI to store the graph distance of a node from the nearest selected focus node.

Parameters:
row - the table row
Returns:
the DOI value of this item

setDOI

public void setDOI(int row,
                   double doi)
Set the degree-of-interest (DOI) value. The degree-of-interet is an optional value that can be used to sort items by importance, control item visibility, or influence particular visual encodings. A common example is to use the DOI to store the graph distance of a node from the nearest selected focus node.

Parameters:
row - the table row to set
doi - the DOI value of this item


Copyright © 2007 Regents of the University of California