Package org.cytoscape.view.vizmap.events
Class VisualStyleSetEvent
- java.lang.Object
-
- org.cytoscape.event.AbstractCyEvent<VisualMappingManager>
-
- org.cytoscape.view.vizmap.events.VisualStyleSetEvent
-
- All Implemented Interfaces:
CyEvent<VisualMappingManager>
public final class VisualStyleSetEvent extends AbstractCyEvent<VisualMappingManager>
Event fired when aVisualStyle
is set to a network view through VisualMappingManager.setVisualStyle(VisualStyle, org.cytoscape.view.model.CyNetworkView).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 VisualStyleSetEvent(VisualMappingManager source, VisualStyle style, CyNetworkView view)
Creates the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CyNetworkView
getNetworkView()
Get the The target network view model.VisualStyle
getVisualStyle()
Get the VisualStyle that was set to the network view.-
Methods inherited from class org.cytoscape.event.AbstractCyEvent
getListenerClass, getSource
-
-
-
-
Constructor Detail
-
VisualStyleSetEvent
public VisualStyleSetEvent(VisualMappingManager source, VisualStyle style, CyNetworkView view)
Creates the event.- Parameters:
source
- Source of this event. This is alwaysVisualMappingManager
.style
- The VisualStyle that was set to the network view.view
- The target CyNetworkView.
-
-
Method Detail
-
getVisualStyle
public VisualStyle getVisualStyle()
Get the VisualStyle that was set to the network view.- Returns:
- The VisualStyle that was set to the network view.
-
getNetworkView
public CyNetworkView getNetworkView()
Get the The target network view model.- Returns:
- The target CyNetworkView.
-
-