prefuse.visual.tuple
Class TableAggregateItem<V extends VisualItem<?>>

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

public class TableAggregateItem<V extends VisualItem<?>>
extends TableVisualItem<TableAggregateItem<V>>
implements AggregateItem<TableAggregateItem<V>,V>

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, MINIMUM_DOI, POLYGON, SCHEMA, SHAPEBUILDER, 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(V 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.
 void init(Table table, Graph graph, int row)
          Initialize a new TableAggregateItem for the given table and row.
 java.lang.Iterable<V> items()
          Get an iterator over all the items contained in this aggregate.
 java.lang.Iterable<V> 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, getShapeBuilder, 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, setShapeBuilder, 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, invalidate, 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, getShapeBuilder, 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, setShapeBuilder, 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, invalidate, 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

public 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.

Specified by:
init in interface Tuple<TableAggregateItem<V extends VisualItem<?>>>
Overrides:
init in class TableVisualItem<TableAggregateItem<V extends VisualItem<?>>>
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<TableAggregateItem<V extends VisualItem<?>>,V extends VisualItem<?>>
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<TableAggregateItem<V extends VisualItem<?>>,V extends VisualItem<?>>
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(V item)
Description copied from interface: AggregateItem
Add a VisualItem to this aggregate.

Specified by:
addItem in interface AggregateItem<TableAggregateItem<V extends VisualItem<?>>,V extends VisualItem<?>>
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<TableAggregateItem<V extends VisualItem<?>>,V extends VisualItem<?>>
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<TableAggregateItem<V extends VisualItem<?>>,V extends VisualItem<?>>
See Also:
AggregateItem.removeAllItems()

items

public java.lang.Iterable<V> items()
Description copied from interface: AggregateItem
Get an iterator over all the items contained in this aggregate.

Specified by:
items in interface AggregateItem<TableAggregateItem<V extends VisualItem<?>>,V extends VisualItem<?>>
Returns:
an iterator over the items in this aggregate
See Also:
AggregateItem.items()

items

public java.lang.Iterable<V> 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<TableAggregateItem<V extends VisualItem<?>>,V extends VisualItem<?>>
Parameters:
filter - a Predicate instance indicating the filter criteria
Returns:
an iterator over the items in this aggregate
See Also:
AggregateItem.items()


Copyright © 2008 Regents of the University of California