public class SynchronizeChildrenOnZoomBehavior extends AbstractBehavior<javafx.scene.Node>
SynchronizeChildrenOnZoomBehavior starts a content
synchronization for the NodeContentPart on which it is installed when
the zoom level is changed. This enables the NodeContentPart to report
a nested Graph as a child depending on the zoom level (see
NodeContentPart.getContentChildren()).pcsACTIVE_PROPERTY| Constructor and Description |
|---|
SynchronizeChildrenOnZoomBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
NodeContentPart |
getHost() |
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 NodeContentPart getHost()
getHost in interface IBehavior<javafx.scene.Node>getHost in class AbstractBehavior<javafx.scene.Node>protected void onZoomLevelChange(double oldScale,
double newScale)
ViewportModel).
When this behavior AbstractBehavior.isActive() a
SynchronizeContentChildrenOperation is executed for the
getHost().oldScale - The old zoom level.newScale - The new zoom level.Copyright (c) 2014 itemis AG and others. All rights reserved.