Class 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.


    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>

    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 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.