Package org.cytoscape.event
Interface CyPayloadEvent<S,P>
- Type Parameters:
S
- The event source type.P
- The payload type.
- All Superinterfaces:
CyEvent<S>
- All Known Implementing Classes:
AboutToRemoveEdgeViewsEvent
,AboutToRemoveNodeViewsEvent
,AboutToRemoveRowViewsEvent
,AbstractCyPayloadEvent
,AddedEdgesEvent
,AddedEdgeViewsEvent
,AddedNodesEvent
,AddedNodeViewsEvent
,AddedRowViewsEvent
,EquationFunctionAddedEvent
,EquationFunctionRemovedEvent
,RowsCreatedEvent
,RowsSetEvent
,TableViewChangedEvent
,ViewChangedEvent
,VisualMappingFunctionChangedEvent
,VisualStyleChangedEvent
An extension of CyEvent specifically for payload events.
A payload event is a single event that contains a
collection of payload objects, which represent the state
change of the event. Payload events are used in cases
where many small changes can be combined into a single
event object (such as node creation or table row
modification). The goal is to prevent too many events
from being fired.
Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.
Module: event-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>event-api</artifactId> </dependency>
-
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of payload objects.Methods inherited from interface org.cytoscape.event.CyEvent
getListenerClass, getSource
-
Method Details
-
getPayloadCollection
Collection<P> getPayloadCollection()Returns a collection of payload objects.- Returns:
- a collection of payload objects.
-