Package org.cytoscape.view.model.events
Class UpdateNetworkPresentationEvent
java.lang.Object
org.cytoscape.event.AbstractCyEvent<CyNetworkView>
org.cytoscape.view.model.events.UpdateNetworkPresentationEvent
- All Implemented Interfaces:
CyEvent<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.
Module: viewmodel-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>viewmodel-api</artifactId> </dependency>
-
Constructor Summary
ConstructorDescriptionEvent for updating (redrawing) presentation. -
Method Summary
Methods inherited from class org.cytoscape.event.AbstractCyEvent
getListenerClass, getSource
-
Constructor Details
-
UpdateNetworkPresentationEvent
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.
-