public class SemanticZoomPolicy extends ViewportPolicy
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.adaptableadaptableIAdaptable.Bound.Impl<T extends IAdaptable>| Constructor and Description |
|---|
SemanticZoomPolicy() |
| Modifier and Type | Method and Description |
|---|---|
ITransactionalOperation |
commit() |
protected ITransactionalOperation |
createOperation() |
protected java.util.List<NodePart> |
findNestingNodes()
Returns a
List containing all NodeParts (within the
currently rendered graph) that have a nested graph assigned to them. |
protected ChangeViewportOperation |
getChangeViewportOperation() |
protected NavigateOperation |
getNavigateOperation()
Returns the
NavigateOperation that is used to open nested/nesting
Graphs. |
void |
init() |
void |
zoom(boolean relative,
boolean discretize,
double relativeZoom,
double sceneX,
double sceneY) |
fitToSize, fitToSize, fitToSize, scroll, setScroll, setZoomcheckInitialized, getOperation, isInitialized, locallyExecuteOperation, rollbackadaptableProperty, getAdaptable, setAdaptableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptableProperty, getAdaptable, setAdaptablepublic ITransactionalOperation commit()
commit in interface IPolicycommit in class AbstractPolicyprotected ITransactionalOperation createOperation()
createOperation in class ViewportPolicyprotected java.util.List<NodePart> findNestingNodes()
List containing all NodeParts (within the
currently rendered graph) that have a nested graph assigned to them.List containing all NodeParts (within the
currently rendered graph) that have a nested graph assigned to
them.protected ChangeViewportOperation getChangeViewportOperation()
getChangeViewportOperation in class ViewportPolicyprotected NavigateOperation getNavigateOperation()
NavigateOperation that is used to open nested/nesting
Graphs.NavigateOperation that is used to open nested/nesting
Graphs.public void init()
init in interface IPolicyinit in class AbstractPolicypublic void zoom(boolean relative,
boolean discretize,
double relativeZoom,
double sceneX,
double sceneY)
zoom in class ViewportPolicyCopyright (c) 2014 itemis AG and others. All rights reserved.