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.adaptable
adaptable
IAdaptable.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 NodePart s (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
Graph s. |
void |
init() |
void |
zoom(boolean relative,
boolean discretize,
double relativeZoom,
double sceneX,
double sceneY) |
fitToSize, fitToSize, fitToSize, scroll, setScroll, setZoom
checkInitialized, getOperation, isInitialized, locallyExecuteOperation, rollback
adaptableProperty, getAdaptable, setAdaptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptableProperty, getAdaptable, setAdaptable
public ITransactionalOperation commit()
commit
in interface IPolicy
commit
in class AbstractPolicy
protected ITransactionalOperation createOperation()
createOperation
in class ViewportPolicy
protected java.util.List<NodePart> findNestingNodes()
List
containing all NodePart
s (within the
currently rendered graph) that have a nested graph assigned to them.List
containing all NodePart
s (within the
currently rendered graph) that have a nested graph assigned to
them.protected ChangeViewportOperation getChangeViewportOperation()
getChangeViewportOperation
in class ViewportPolicy
protected NavigateOperation getNavigateOperation()
NavigateOperation
that is used to open nested/nesting
Graph
s.NavigateOperation
that is used to open nested/nesting
Graph
s.public void init()
init
in interface IPolicy
init
in class AbstractPolicy
public void zoom(boolean relative, boolean discretize, double relativeZoom, double sceneX, double sceneY)
zoom
in class ViewportPolicy
Copyright (c) 2014 itemis AG and others. All rights reserved.