public class FXZoomOnPinchSpreadPolicy extends AbstractInteractionPolicy<javafx.scene.Node> implements IFXOnPinchSpreadPolicy
IFXOnPinchSpreadPolicy
that performs zooming.adaptable
adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Constructor and Description |
---|
FXZoomOnPinchSpreadPolicy() |
Modifier and Type | Method and Description |
---|---|
protected FXChangeViewportPolicy |
determineViewportPolicy()
Determines the
FXChangeViewportPolicy that is used by this
policy. |
protected FXChangeViewportPolicy |
getViewportPolicy()
Returns the
FXChangeViewportPolicy that is used by this policy. |
protected boolean |
isZoom(javafx.scene.input.ZoomEvent e)
Returns whether the given
ZoomEvent should trigger zooming. |
void |
zoom(javafx.scene.input.ZoomEvent e)
Continuous reaction to pinch (close fingers) gestures.
|
void |
zoomAborted()
Reaction to the unexpected finish of a pinch gesture.
|
void |
zoomFinished(javafx.scene.input.ZoomEvent event)
Reaction to the finish of pinch (close fingers) gestures.
|
void |
zoomStarted(javafx.scene.input.ZoomEvent e)
Reaction to the detection of pinch (close fingers) gestures.
|
commit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisuals
adaptableProperty, getAdaptable, getHost, setAdaptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptableProperty, getAdaptable, setAdaptable
protected FXChangeViewportPolicy determineViewportPolicy()
FXChangeViewportPolicy
that is used by this
policy.FXChangeViewportPolicy
that is used by this policy.protected FXChangeViewportPolicy getViewportPolicy()
FXChangeViewportPolicy
that is used by this policy.FXChangeViewportPolicy
that is used by this policy.protected boolean isZoom(javafx.scene.input.ZoomEvent e)
ZoomEvent
should trigger zooming. Per
default, will always return true
.e
- The ZoomEvent
in question.true
if the given ZoomEvent
should trigger
zoom, otherwise false
.public void zoom(javafx.scene.input.ZoomEvent e)
IFXOnPinchSpreadPolicy
zoom
in interface IFXOnPinchSpreadPolicy
e
- The original ZoomEvent
.public void zoomAborted()
IFXOnPinchSpreadPolicy
zoomAborted
in interface IFXOnPinchSpreadPolicy
public void zoomFinished(javafx.scene.input.ZoomEvent event)
IFXOnPinchSpreadPolicy
zoomFinished
in interface IFXOnPinchSpreadPolicy
event
- The original ZoomEvent
.public void zoomStarted(javafx.scene.input.ZoomEvent e)
IFXOnPinchSpreadPolicy
zoomStarted
in interface IFXOnPinchSpreadPolicy
e
- The original ZoomEvent
.Copyright (c) 2014 itemis AG and others. All rights reserved.