public class FXZoomOnPinchSpreadPolicy extends AbstractInteractionPolicy<javafx.scene.Node> implements IFXOnPinchSpreadPolicy
IFXOnPinchSpreadPolicy that performs zooming.adaptableadaptableIAdaptable.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, storeAndDisableRefreshVisualsadaptableProperty, getAdaptable, getHost, setAdaptableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptableProperty, getAdaptable, setAdaptableprotected 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)
IFXOnPinchSpreadPolicyzoom in interface IFXOnPinchSpreadPolicye - The original ZoomEvent.public void zoomAborted()
IFXOnPinchSpreadPolicyzoomAborted in interface IFXOnPinchSpreadPolicypublic void zoomFinished(javafx.scene.input.ZoomEvent event)
IFXOnPinchSpreadPolicyzoomFinished in interface IFXOnPinchSpreadPolicyevent - The original ZoomEvent.public void zoomStarted(javafx.scene.input.ZoomEvent e)
IFXOnPinchSpreadPolicyzoomStarted in interface IFXOnPinchSpreadPolicye - The original ZoomEvent.Copyright (c) 2014 itemis AG and others. All rights reserved.