Package org.eclipse.gef.zest.fx.policies
Class SemanticZoomPolicy
java.lang.Object
org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<IVisualPart<? extends javafx.scene.Node>>
org.eclipse.gef.mvc.fx.policies.AbstractPolicy
org.eclipse.gef.mvc.fx.policies.ViewportPolicy
org.eclipse.gef.zest.fx.policies.SemanticZoomPolicy
- All Implemented Interfaces:
IAdaptable.Bound<IVisualPart<? extends javafx.scene.Node>>,IPolicy
The
SemanticZoomPolicy extends the ViewportPolicy for
associating semantic changes with viewport changes, i.e. opening of
nested/nesting graphs when the zoom level is changed below/above a certain
threshold.-
Property Summary
Properties inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl
adaptableProperties inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptable -
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommit()protected ITransactionalOperationprotected ChangeViewportOperationprotected NavigateOperationReturns theNavigateOperationthat is used to open nested/nestingGraphs.voidinit()voidzoom(boolean relative, boolean discretize, double relativeZoom, double sceneX, double sceneY) Methods inherited from class org.eclipse.gef.mvc.fx.policies.ViewportPolicy
fitToSize, fitToSize, fitToSize, scroll, setScroll, setZoomMethods inherited from class org.eclipse.gef.mvc.fx.policies.AbstractPolicy
checkInitialized, getOperation, isInitialized, locallyExecuteOperation, rollbackMethods inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl
adaptableProperty, getAdaptable, setAdaptableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptable
-
Constructor Details
-
SemanticZoomPolicy
public SemanticZoomPolicy()
-
-
Method Details
-
commit
- Specified by:
commitin interfaceIPolicy- Overrides:
commitin classAbstractPolicy
-
createOperation
- Overrides:
createOperationin classViewportPolicy
-
findNestingNodes
-
getChangeViewportOperation
- Overrides:
getChangeViewportOperationin classViewportPolicy
-
init
public void init()- Specified by:
initin interfaceIPolicy- Overrides:
initin classAbstractPolicy
-
zoom
public void zoom(boolean relative, boolean discretize, double relativeZoom, double sceneX, double sceneY) - Overrides:
zoomin classViewportPolicy
-