prefuse.visual.tuple
Class TableAggregateItem

java.lang.Object
  extended by prefuse.data.tuple.TableTuple
      extended by prefuse.visual.tuple.TableVisualItem
          extended by prefuse.visual.tuple.TableAggregateItem
All Implemented Interfaces:
Tuple, AggregateItem, VisualItem

public class TableAggregateItem
extends TableVisualItem
implements AggregateItem

AggregateItem implementation that uses data values from a backing AggregateTable.

Author:
jeffrey heer

Field Summary
 
Fields inherited from class prefuse.data.tuple.TableTuple
m_row, m_table
 
Fields inherited from interface prefuse.visual.VisualItem
BOUNDS, DOI, ENDFILLCOLOR, ENDFONT, ENDPOLYGON, ENDSIZE, ENDSTROKECOLOR, ENDTEXTCOLOR, ENDVISIBLE, ENDX, ENDX2, ENDY, ENDY2, EXPANDED, FILLCOLOR, FIXED, FONT, HIGHLIGHT, HOVER, IDX_VALIDATED, INTERACTIVE, LABEL, POLYGON, SCHEMA, SHAPE, SIZE, STARTFILLCOLOR, STARTFONT, STARTPOLYGON, STARTSIZE, STARTSTROKECOLOR, STARTTEXTCOLOR, STARTVISIBLE, STARTX, STARTX2, STARTY, STARTY2, STROKE, STROKECOLOR, TEXTCOLOR, VALIDATED, VALUE, VISIBLE, X, X2, Y, Y2
 
Constructor Summary
TableAggregateItem()
           
 
Method Summary
 void addItem(VisualItem item)
          Add a VisualItem to this aggregate.
 boolean containsItem(VisualItem item)
          Indicates is a given VisualItem is contained in the aggregation.
 int getAggregateSize()
          Get the size of this AggregateItem, the number of visual items contained in the aggregation.
protected  void init(Table table, Graph graph, int row)
          Initialize a new TableAggregateItem for the given table and row.
 java.util.Iterator items()
          Get an iterator over all the items contained in this aggregate.
 java.util.Iterator items(Predicate filter)
          Get a filtered iterator over all the items contained in this aggregate.
 void removeAllItems()
          Remove all items contained in this aggregate.
 void removeItem(VisualItem item)
          Remove a VisualItem from this aggregate.
 
Methods inherited from class prefuse.visual.tuple.TableVisualItem
getBounds, getDOI, getEndFillColor, getEndFont, getEndSize, getEndStrokeColor, getEndTextColor, getEndX, getEndY, getFillColor, getFont, getGroup, getRenderer, getShape, getSize, getSourceData, getSourceTuple, getStartFillColor, getStartFont, getStartSize, getStartStrokeColor, getStartTextColor, getStartX, getStartY, getStroke, getStrokeColor, getTextColor, getVisualization, getX, getY, isEndVisible, isExpanded, isFixed, isHighlighted, isHover, isInGroup, isInteractive, isStartVisible, isValidated, isVisible, render, setBounds, setDOI, setEndFillColor, setEndFont, setEndSize, setEndStrokeColor, setEndTextColor, setEndVisible, setEndX, setEndY, setExpanded, setFillColor, setFixed, setFont, setHighlighted, setHover, setInteractive, setShape, setSize, setStartFillColor, setStartFont, setStartSize, setStartStrokeColor, setStartTextColor, setStartVisible, setStartX, setStartY, setStroke, setStrokeColor, setTextColor, setValidated, setVisible, setX, setY, toString, validateBounds
 
Methods inherited from class prefuse.data.tuple.TableTuple
canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface prefuse.visual.VisualItem
getBounds, getDOI, getEndFillColor, getEndFont, getEndSize, getEndStrokeColor, getEndTextColor, getEndX, getEndY, getFillColor, getFont, getGroup, getRenderer, getShape, getSize, getSourceData, getSourceTuple, getStartFillColor, getStartFont, getStartSize, getStartStrokeColor, getStartTextColor, getStartX, getStartY, getStroke, getStrokeColor, getTextColor, getVisualization, getX, getY, isEndVisible, isExpanded, isFixed, isHighlighted, isHover, isInGroup, isInteractive, isStartVisible, isValidated, isVisible, render, setBounds, setDOI, setEndFillColor, setEndFont, setEndSize, setEndStrokeColor, setEndTextColor, setEndVisible, setEndX, setEndY, setExpanded, setFillColor, setFixed, setFont, setHighlighted, setHover, setInteractive, setShape, setSize, setStartFillColor, setStartFont, setStartSize, setStartStrokeColor, setStartTextColor, setStartVisible, setStartX, setStartY, setStroke, setStrokeColor, setTextColor, setValidated, setVisible, setX, setY, validateBounds
 
Methods inherited from interface prefuse.data.Tuple
canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString
 

Constructor Detail

TableAggregateItem

public TableAggregateItem()
Method Detail

init

protected void init(Table table,
                    Graph graph,
                    int row)
Initialize a new TableAggregateItem for the given table and row. This method is used by the appropriate TupleManager instance, and should not be called directly by client code, unless by a client-supplied custom TupleManager.

Overrides:
init in class TableVisualItem
Parameters:
table - the data Table
graph - ignored by this class
row - the table row index

getAggregateSize

public int getAggregateSize()
Description copied from interface: AggregateItem
Get the size of this AggregateItem, the number of visual items contained in the aggregation.

Specified by:
getAggregateSize in interface AggregateItem
Returns:
the aggregate size
See Also:
AggregateItem.getAggregateSize()

containsItem

public boolean containsItem(VisualItem item)
Description copied from interface: AggregateItem
Indicates is a given VisualItem is contained in the aggregation.

Specified by:
containsItem in interface AggregateItem
Parameters:
item - the VisualItem to check for containment
Returns:
true if the given item is contained in this aggregate, false otherwise.
See Also:
AggregateItem.containsItem(prefuse.visual.VisualItem)

addItem

public void addItem(VisualItem item)
Description copied from interface: AggregateItem
Add a VisualItem to this aggregate.

Specified by:
addItem in interface AggregateItem
Parameters:
item - the item to add
See Also:
AggregateItem.addItem(prefuse.visual.VisualItem)

removeItem

public void removeItem(VisualItem item)
Description copied from interface: AggregateItem
Remove a VisualItem from this aggregate.

Specified by:
removeItem in interface AggregateItem
Parameters:
item - the item to remove
See Also:
AggregateItem.removeItem(prefuse.visual.VisualItem)

removeAllItems

public void removeAllItems()
Description copied from interface: AggregateItem
Remove all items contained in this aggregate.

Specified by:
removeAllItems in interface AggregateItem
See Also:
AggregateItem.removeAllItems()

items

public java.util.Iterator items()
Description copied from interface: AggregateItem
Get an iterator over all the items contained in this aggregate.

Specified by:
items in interface AggregateItem
Returns:
an iterator over the items in this aggregate
See Also:
AggregateItem.items()

items

public java.util.Iterator items(Predicate filter)
Description copied from interface: AggregateItem
Get a filtered iterator over all the items contained in this aggregate.

Specified by:
items in interface AggregateItem
Parameters:
filter - a Predicate instance indicating the filter criteria
Returns:
an iterator over the items in this aggregate
See Also:
AggregateItem.items()


Copyright © 2007 Regents of the University of California