Cytoscape 3.0.1 API

org.cytoscape.application.swing
Class AbstractViewUpdater<S>

java.lang.Object
  extended by org.cytoscape.application.swing.AbstractViewUpdater<S>
Type Parameters:
S - The generic type of this ViewUpdater.
All Implemented Interfaces:
CyListener, RowsSetListener

public abstract class AbstractViewUpdater<S>
extends Object
implements RowsSetListener

A utility class that provides an implementation of RowsSetListener for a particular column and VisualProperty.


Cytoscape Backwards Compatibility (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.

Field Summary
protected  String columnName
          The name of the column that the RowsSetListener is provided for.
protected  VisualProperty<S> vp
          The VisualProperty that the RowsSetListener is provided for.
 
Constructor Summary
AbstractViewUpdater(VisualProperty<S> vp, String columnName, Map<CyRow,View<?>> rowViewMap)
          Constructor.
 
Method Summary
 void handleEvent(RowsSetEvent e)
          Called whenever CyRows are changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vp

protected final VisualProperty<S> vp
The VisualProperty that the RowsSetListener is provided for.


columnName

protected final String columnName
The name of the column that the RowsSetListener is provided for.

Constructor Detail

AbstractViewUpdater

public AbstractViewUpdater(VisualProperty<S> vp,
                           String columnName,
                           Map<CyRow,View<?>> rowViewMap)
Constructor.

Parameters:
vp - The visual property that should be set on the view when the row is changed.
columnName - The name of the column within the row that is being listened to.
rowViewMap - a map between the row that is being listened to and the view that the visual property should be set when the row is changed.
Method Detail

handleEvent

public void handleEvent(RowsSetEvent e)
Called whenever CyRows are changed. Will attempt to set the visual property on the view with the new value that has been set in the row.

Specified by:
handleEvent in interface RowsSetListener
Parameters:
e - The RowsSetEvent to be processed.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.