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
adaptable
Properties 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
-
Method Summary
Modifier and TypeMethodDescriptioncommit()
protected ITransactionalOperation
protected ChangeViewportOperation
protected NavigateOperation
Returns theNavigateOperation
that is used to open nested/nestingGraph
s.void
init()
void
zoom
(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, setZoom
Methods inherited from class org.eclipse.gef.mvc.fx.policies.AbstractPolicy
checkInitialized, getOperation, isInitialized, locallyExecuteOperation, rollback
Methods inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl
adaptableProperty, getAdaptable, setAdaptable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptable
-
Constructor Details
-
SemanticZoomPolicy
public SemanticZoomPolicy()
-
-
Method Details
-
commit
- Specified by:
commit
in interfaceIPolicy
- Overrides:
commit
in classAbstractPolicy
-
createOperation
- Overrides:
createOperation
in classViewportPolicy
-
findNestingNodes
-
getChangeViewportOperation
- Overrides:
getChangeViewportOperation
in classViewportPolicy
-
init
public void init()- Specified by:
init
in interfaceIPolicy
- Overrides:
init
in classAbstractPolicy
-
zoom
public void zoom(boolean relative, boolean discretize, double relativeZoom, double sceneX, double sceneY) - Overrides:
zoom
in classViewportPolicy
-