prefuse.data
Class Graph.Listener

java.lang.Object
  extended by prefuse.data.Graph.Listener
All Implemented Interfaces:
java.util.EventListener, ColumnListener, TableListener
Enclosing class:
Graph

protected class Graph.Listener
extends java.lang.Object
implements TableListener, ColumnListener

Listener class for tracking updates from node and edge tables, and their columns that determine the graph linkage structure.


Constructor Summary
protected Graph.Listener()
           
 
Method Summary
 void columnChanged(Column src, int idx, boolean prev)
          Notification that a data column has changed.
 void columnChanged(Column src, int idx, double prev)
          Notification that a data column has changed.
 void columnChanged(Column src, int idx, float prev)
          Notification that a data column has changed.
 void columnChanged(Column src, int idx, int prev)
          Notification that a data column has changed.
 void columnChanged(Column src, int type, int start, int end)
          Notification that a data column has changed.
 void columnChanged(Column src, int idx, long prev)
          Notification that a data column has changed.
 void columnChanged(Column src, int idx, java.lang.Object prev)
          Notification that a data column has changed.
 void setEdgeTable(Table edges)
           
 void tableChanged(Table t, int start, int end, int col, int type)
          Notification that a table has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph.Listener

protected Graph.Listener()
Method Detail

setEdgeTable

public void setEdgeTable(Table edges)

tableChanged

public void tableChanged(Table t,
                         int start,
                         int end,
                         int col,
                         int type)
Description copied from interface: TableListener
Notification that a table has changed.

Specified by:
tableChanged in interface TableListener
Parameters:
t - the table that has changed
start - the starting row index of the changed table region
end - the ending row index of the changed table region
col - the column that has changed, or EventConstants.ALL_COLUMNS if the operation affects all columns
type - the type of modification, one of EventConstants.INSERT, EventConstants.DELETE, or EventConstants.UPDATE.

columnChanged

public void columnChanged(Column src,
                          int idx,
                          int prev)
Description copied from interface: ColumnListener
Notification that a data column has changed.

Specified by:
columnChanged in interface ColumnListener
Parameters:
src - the column that has changed
idx - the column row index that has changed
prev - the previous value at the given location

columnChanged

public void columnChanged(Column src,
                          int idx,
                          long prev)
Description copied from interface: ColumnListener
Notification that a data column has changed.

Specified by:
columnChanged in interface ColumnListener
Parameters:
src - the column that has changed
idx - the column row index that has changed
prev - the previous value at the given location

columnChanged

public void columnChanged(Column src,
                          int type,
                          int start,
                          int end)
Description copied from interface: ColumnListener
Notification that a data column has changed.

Specified by:
columnChanged in interface ColumnListener
Parameters:
src - the column that has changed
type - One of EventConstants.INSERT, EventConstants.DELETE, or EventConstants.UPDATE.
start - the first column index that has been changed
end - the last column index that has been changed

columnChanged

public void columnChanged(Column src,
                          int idx,
                          float prev)
Description copied from interface: ColumnListener
Notification that a data column has changed.

Specified by:
columnChanged in interface ColumnListener
Parameters:
src - the column that has changed
idx - the column row index that has changed
prev - the previous value at the given location

columnChanged

public void columnChanged(Column src,
                          int idx,
                          double prev)
Description copied from interface: ColumnListener
Notification that a data column has changed.

Specified by:
columnChanged in interface ColumnListener
Parameters:
src - the column that has changed
idx - the column row index that has changed
prev - the previous value at the given location

columnChanged

public void columnChanged(Column src,
                          int idx,
                          boolean prev)
Description copied from interface: ColumnListener
Notification that a data column has changed.

Specified by:
columnChanged in interface ColumnListener
Parameters:
src - the column that has changed
idx - the column row index that has changed
prev - the previous value at the given location

columnChanged

public void columnChanged(Column src,
                          int idx,
                          java.lang.Object prev)
Description copied from interface: ColumnListener
Notification that a data column has changed.

Specified by:
columnChanged in interface ColumnListener
Parameters:
src - the column that has changed
idx - the column row index that has changed
prev - the previous value at the given location


Copyright 2007 Regents of the University of California