|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.tuple.AbstractTupleSet
prefuse.data.Table
prefuse.data.CascadedTable
prefuse.visual.VisualTable
prefuse.visual.AggregateTable
public class AggregateTable
VisualTable instance that maintains visual items representing aggregates of items. This class maintains both a collection of AggregateItems and a mapping between AggregateItems and the VisualItems contained within those aggregates.
| Nested Class Summary | |
|---|---|
protected class |
AggregateTable.AggregatedIterator
Iterator instance that iterates over the items contained in an aggregate. |
| Nested classes/interfaces inherited from class prefuse.data.Table |
|---|
Table.ColumnEntry |
| Field Summary | |
|---|---|
protected static java.lang.String |
AGGREGATE
|
protected static Schema |
AGGREGATED_SCHEMA
|
protected Table |
m_aggregated
Table storing the 1->Many aggregation mappings |
protected static java.lang.String |
MEMBER
|
protected static java.lang.String |
MEMBER_HASH
|
| 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 | |
|---|---|
AggregateTable(Visualization vis,
java.lang.String group)
Create a new AggregateTable. |
|
AggregateTable(Visualization vis,
java.lang.String group,
Schema schema)
Create a new AggregateTable. |
|
| Method Summary | |
|---|---|
void |
addToAggregate(int row,
VisualItem member)
Add an item to the aggregation at the given row. |
boolean |
aggregateContains(int row,
VisualItem member)
Indicates if an item is a member of the aggregate at the given row |
java.util.Iterator |
aggregatedTuples(int row)
Get all VisualItems within the aggregate at the given table row. |
protected void |
clearAggregateMappings(int row,
boolean update)
Clears all aggregates mappings for the aggregate at the given row, optionally issuing a table update. |
protected void |
fireTableEvent(int row0,
int row1,
int col,
int type)
Clear all aggregate mappings for a row when it is deleted. |
protected int |
getAggregatedRow(int row,
VisualItem member)
Get the row index to the aggregate mapping table for the given aggregate and contained VisualItem. |
java.util.Iterator |
getAggregates(Tuple t)
Get an iterator over all AggregateItems that contain the given Tuple. |
int |
getAggregateSize(int row)
Get the size of the aggregate represented at the given table row. |
protected int |
getHashCode(Tuple t)
Get a hashcode that uniquely identifies a particular tuple |
void |
removeAllFromAggregate(int row)
Remove all items contained in the aggregate at the given row |
void |
removeFromAggregate(int row,
VisualItem member)
Remove an item from the aggregation at the given row |
protected boolean |
validRowCheck(int row,
boolean throwException)
Check a row for validity, optionally throwing an exception when an invalid row is found. |
| 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.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 |
| Field Detail |
|---|
protected Table m_aggregated
protected static final java.lang.String AGGREGATE
protected static final java.lang.String MEMBER_HASH
protected static final java.lang.String MEMBER
protected static final Schema AGGREGATED_SCHEMA
| Constructor Detail |
|---|
public AggregateTable(Visualization vis,
java.lang.String group)
vis - the Visualization associated with the tablegroup - the data group the table contents belongs to
public AggregateTable(Visualization vis,
java.lang.String group,
Schema schema)
vis - the Visualization associated with the tablegroup - the data group the table contents belongs toschema - the Schema to use for this table| Method Detail |
|---|
public int getAggregateSize(int row)
public void addToAggregate(int row,
VisualItem member)
row - the row index of the aggregatemember - the item to add to the aggregation
public void removeFromAggregate(int row,
VisualItem member)
row - the row index of the aggregatemember - the item to remove from the aggregationpublic void removeAllFromAggregate(int row)
row - the row index of the aggregate
protected void clearAggregateMappings(int row,
boolean update)
row - the table row of the aggregateupdate - indicates whether or not to fire a table update
public boolean aggregateContains(int row,
VisualItem member)
row - the table row of the aggregatemember - the item to check from containment
protected int getAggregatedRow(int row,
VisualItem member)
row - the table row of the aggregatemember - the VisualItem to look up
public java.util.Iterator aggregatedTuples(int row)
row - the table row of the aggregate
public java.util.Iterator getAggregates(Tuple t)
t - the input tuple
protected int getHashCode(Tuple t)
t - the tuple to compute the hash for
protected boolean validRowCheck(int row,
boolean throwException)
row - the row to checkthrowException - indicates if an exception should be thrown when an
invalid row is encountered
protected void fireTableEvent(int row0,
int row1,
int col,
int type)
fireTableEvent in class VisualTablerow0 - the starting row of the modified rangerow1 - the ending row (inclusive) of the modified rangecol - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||