public class SemanticZoomPolicy extends FXChangeViewportPolicy
SemanticZoomPolicy
extends the FXChangeViewportPolicy
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.Constructor and Description |
---|
SemanticZoomPolicy() |
Modifier and Type | Method and Description |
---|---|
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 FXChangeViewportOperation |
getChangeViewportOperation() |
protected NavigateOperation |
getNavigateOperation()
Returns the
NavigateOperation that is used to open nested/nesting
Graph s. |
void |
init() |
void |
zoomRelative(double relativeZoom,
double sceneX,
double sceneY) |
scrollAbsolute, scrollRelative, zoomAbsolute
checkInitialized, commit, getOperation, isInitialized, locallyExecuteOperation, rollback
getAdaptable, getHost, setAdaptable
protected ITransactionalOperation createOperation()
createOperation
in class FXChangeViewportPolicy
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 FXChangeViewportOperation getChangeViewportOperation()
getChangeViewportOperation
in class FXChangeViewportPolicy
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 class AbstractTransactionPolicy<javafx.scene.Node>
public void zoomRelative(double relativeZoom, double sceneX, double sceneY)
zoomRelative
in class FXChangeViewportPolicy
Copyright (c) 2014 itemis AG and others. All rights reserved.