Package org.cytoscape.view.model.events
Class FitContentEvent
- java.lang.Object
-
- org.cytoscape.event.AbstractCyEvent<CyNetworkView>
-
- org.cytoscape.view.model.events.FitContentEvent
-
- All Implemented Interfaces:
CyEvent<CyNetworkView>
public final class FitContentEvent extends AbstractCyEvent<CyNetworkView>
Fit network visualization to the given container.This event should be created and fired by the view being updated and not anyone else, instead call the
CyNetworkView.fitContent()
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 Summary
Constructors Constructor Description FitContentEvent(CyNetworkView source)
Fit the size of network view to the current container.
-
-
-
Constructor Detail
-
FitContentEvent
public FitContentEvent(CyNetworkView source)
Fit the size of network view to the current container.This event should be created and fired by the view being updated and not anyone else, instead call the
CyNetworkView.fitContent()
method.- Parameters:
source
- network view to be fitted to the container.
-
-