Cytoscape 3.0.1 API

org.cytoscape.view.model.events
Class UpdateNetworkPresentationEvent

java.lang.Object
  extended by org.cytoscape.event.AbstractCyEvent<CyNetworkView>
      extended by org.cytoscape.view.model.events.UpdateNetworkPresentationEvent
All Implemented Interfaces:
CyEvent<CyNetworkView>

public final class UpdateNetworkPresentationEvent
extends AbstractCyEvent<CyNetworkView>

If something has been changed in the view model, presentation layer should catch the event and update its visualization. This event will be used in such objects, mainly rendering engines, in the presentation layer. This means by firing this event, Cytoscape will invoke "redraw" method in the rendering engine.

This event should be created and fired by the view being updated and not anyone else, instead call the CyNetworkView.updateView() method.


Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.

Constructor Summary
UpdateNetworkPresentationEvent(CyNetworkView source)
          Event for updating (redrawing) presentation.
 
Method Summary
 
Methods inherited from class org.cytoscape.event.AbstractCyEvent
getListenerClass, getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateNetworkPresentationEvent

public UpdateNetworkPresentationEvent(CyNetworkView source)
Event for updating (redrawing) presentation.

This event should be created and fired by the view being updated and not anyone else, instead call the CyNetworkView.updateView() method.

Parameters:
source - source network view-model. Presentations associated with this view-model use this event.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.