Package org.cytoscape.view.vizmap.events
Class VisualStyleAddedEvent
- java.lang.Object
-
- org.cytoscape.event.AbstractCyEvent<VisualMappingManager>
-
- org.cytoscape.view.vizmap.events.VisualStyleAddedEvent
-
- All Implemented Interfaces:
CyEvent<VisualMappingManager>
public final class VisualStyleAddedEvent extends AbstractCyEvent<VisualMappingManager>
When new VisualStyle is added to theVisualMappingManager
, it fires this event.Module:
vizmap-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>vizmap-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 Summary
Constructors Constructor Description VisualStyleAddedEvent(VisualMappingManager source, VisualStyle created)
Creates an event for the newly created style.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VisualStyle
getVisualStyleAdded()
Get the newly created VisualStyle.-
Methods inherited from class org.cytoscape.event.AbstractCyEvent
getListenerClass, getSource
-
-
-
-
Constructor Detail
-
VisualStyleAddedEvent
public VisualStyleAddedEvent(VisualMappingManager source, VisualStyle created)
Creates an event for the newly created style.- Parameters:
source
- Source of this event. This is alwaysVisualMappingManager
.created
- New VisualStyle
-
-
Method Detail
-
getVisualStyleAdded
public VisualStyle getVisualStyleAdded()
Get the newly created VisualStyle.- Returns:
- new VisualStyle
-
-