public class OpenParentGraphOnZoomBehavior extends AbstractBehavior<javafx.scene.Node>
OpenParentGraphOnZoomBehavior handles the navigation to a parent
graph when the user zooms out of a nested graph.pcsACTIVE_PROPERTY| Constructor and Description |
|---|
OpenParentGraphOnZoomBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
GraphRootPart |
getHost() |
protected NavigationPolicy |
getSemanticZoomPolicy()
|
protected void |
onZoomLevelChange(double oldScale,
double newScale)
Called upon zoom level changes (reported by the
ViewportModel). |
addFeedback, addFeedback, addHandles, addHandles, addPropertyChangeListener, getAdaptable, getFeedbackParts, getHandleParts, isActive, removeFeedback, removeHandles, removePropertyChangeListener, setAdaptable, switchAdaptableScopespublic void activate()
activate in interface IActivatableactivate in class AbstractBehavior<javafx.scene.Node>public void deactivate()
deactivate in interface IActivatabledeactivate in class AbstractBehavior<javafx.scene.Node>public GraphRootPart getHost()
getHost in interface IBehavior<javafx.scene.Node>getHost in class AbstractBehavior<javafx.scene.Node>protected NavigationPolicy getSemanticZoomPolicy()
NavigationPolicy that is installed on the
IRootPart of the host.protected void onZoomLevelChange(double oldScale,
double newScale)
ViewportModel).
If the host is nested inside a Node and the
zoom level is changed below 0.7, then the Graph to
which the nesting Node belongs is opened.oldScale - The previous zoom level.newScale - The new zoom level.Copyright (c) 2014 itemis AG and others. All rights reserved.