APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.javafx.tk.quantum

pack-priv Class ZoomGestureRecognizer

extends Object
implements GestureRecognizer
Class Inheritance
All Implemented Interfaces
com.sun.javafx.tk.quantum.GestureRecognizer, com.sun.javafx.tk.quantum.GlassTouchEventListener
Imports
com.sun.glass.events.KeyEvent, .TouchEvent, java.util.HashMap, .Map, javafx.util.Duration, javafx.scene.input.ZoomEvent, javafx.animation.Interpolator, .KeyFrame, .KeyValue, .Timeline, javafx.beans.property.DoubleProperty, .SimpleDoubleProperty

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static enum

Field Summary

Modifier and TypeField and Description
private double
private double
private double
private double
private double
private int
private boolean
private double
pack-priv double
private Timeline
private DoubleProperty
private double
private double
private static double
private static double
private static double
private static double
private int
private ViewScene
private ZoomGestureRecognizer.ZoomRecognitionState
private double
private boolean
private boolean
private Map<Long, ZoomGestureRecognizer.TouchPointTracker>
private static double
private static boolean
private static double
private double
private double

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
private double
public void
notifyBeginTouchEvent(long time, int modifiers, boolean isDirect, int touchEventCount)

Implements com.sun.javafx.tk.quantum.GlassTouchEventListener.notifyBeginTouchEvent.

public void
public void
notifyNextTouchEvent(long time, int type, long touchId, int x, int y, int xAbs, int yAbs)

Implements com.sun.javafx.tk.quantum.GlassTouchEventListener.notifyNextTouchEvent.

public void
params(int modifiers, boolean direct)

pack-priv void
private void
sendZoomEvent(boolean isInertia)

private void
private void
public void
touchMoved(long id, long nanos, int x, int y, int xAbs, int yAbs)

public void
touchPressed(long id, long nanos, int x, int y, int xAbs, int yAbs)

public void
touchReleased(long id, long nanos, int x, int y, int xAbs, int yAbs)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

centerAbsXback to summary
private double centerAbsX
centerAbsYback to summary
private double centerAbsY
centerXback to summary
private double centerX
centerYback to summary
private double centerY
currentDistanceback to summary
private double currentDistance
currentTouchCountback to summary
private int currentTouchCount
directback to summary
private boolean direct
distanceReferenceback to summary
private double distanceReference
inertiaLastTimeback to summary
pack-priv double inertiaLastTime
inertiaTimelineback to summary
private Timeline inertiaTimeline
inertiaZoomVelocityback to summary
private DoubleProperty inertiaZoomVelocity
initialInertiaZoomVelocityback to summary
private double initialInertiaZoomVelocity
lastTouchEventTimeback to summary
private double lastTouchEventTime
MAX_ZOOM_IN_FACTORback to summary
private static double MAX_ZOOM_IN_FACTOR
MAX_ZOOM_OUT_FACTORback to summary
private static double MAX_ZOOM_OUT_FACTOR
MAX_ZOOMIN_VELOCITYback to summary
private static double MAX_ZOOMIN_VELOCITY
MAX_ZOOMOUT_VELOCITYback to summary
private static double MAX_ZOOMOUT_VELOCITY
modifiersback to summary
private int modifiers
sceneback to summary
private ViewScene scene
stateback to summary
private ZoomGestureRecognizer.ZoomRecognitionState state
totalZoomFactorback to summary
private double totalZoomFactor
touchPointsPressedback to summary
private boolean touchPointsPressed
touchPointsSetChangedback to summary
private boolean touchPointsSetChanged
trackersback to summary
private Map<Long, ZoomGestureRecognizer.TouchPointTracker> trackers
ZOOM_FACTOR_THRESHOLDback to summary
private static double ZOOM_FACTOR_THRESHOLD
ZOOM_INERTIA_ENABLEDback to summary
private static boolean ZOOM_INERTIA_ENABLED
ZOOM_INERTIA_MILLISback to summary
private static double ZOOM_INERTIA_MILLIS
zoomFactorback to summary
private double zoomFactor
zoomStartTimeback to summary
private double zoomStartTime

Constructor Detail

ZoomGestureRecognizerback to summary
pack-priv ZoomGestureRecognizer(final ViewScene scene)

Method Detail

calculateCenterback to summary
private void calculateCenter()
calculateMaxDistanceback to summary
private double calculateMaxDistance()
notifyBeginTouchEventback to summary
public void notifyBeginTouchEvent(long time, int modifiers, boolean isDirect, int touchEventCount)

Implements com.sun.javafx.tk.quantum.GlassTouchEventListener.notifyBeginTouchEvent.

Annotations
@Override
notifyEndTouchEventback to summary
public void notifyEndTouchEvent(long time)

Implements com.sun.javafx.tk.quantum.GlassTouchEventListener.notifyEndTouchEvent.

Annotations
@Override
notifyNextTouchEventback to summary
public void notifyNextTouchEvent(long time, int type, long touchId, int x, int y, int xAbs, int yAbs)

Implements com.sun.javafx.tk.quantum.GlassTouchEventListener.notifyNextTouchEvent.

Annotations
@Override
paramsback to summary
public void params(int modifiers, boolean direct)
resetback to summary
pack-priv void reset()
sendZoomEventback to summary
private void sendZoomEvent(boolean isInertia)
sendZoomFinishedEventback to summary
private void sendZoomFinishedEvent()
sendZoomStartedEventback to summary
private void sendZoomStartedEvent()
touchMovedback to summary
public void touchMoved(long id, long nanos, int x, int y, int xAbs, int yAbs)
touchPressedback to summary
public void touchPressed(long id, long nanos, int x, int y, int xAbs, int yAbs)
touchReleasedback to summary
public void touchReleased(long id, long nanos, int x, int y, int xAbs, int yAbs)
com.sun.javafx.tk.quantum back to summary

private Class ZoomGestureRecognizer.TouchPointTracker

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.javafx.tk.quantum.ZoomGestureRecognizer.TouchPointTracker

Field Summary

Modifier and TypeField and Description
pack-priv double
pack-priv double
pack-priv double
x

pack-priv double
y

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public double
public double
public double
getX()

public double
getY()

public void
update(long nanos, double x, double y, double absX, double absY)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

absXback to summary
pack-priv double absX
absYback to summary
pack-priv double absY
xback to summary
pack-priv double x
yback to summary
pack-priv double y

Constructor Detail

TouchPointTrackerback to summary
private TouchPointTracker()

Method Detail

getAbsXback to summary
public double getAbsX()
getAbsYback to summary
public double getAbsY()
getXback to summary
public double getX()
getYback to summary
public double getY()
updateback to summary
public void update(long nanos, double x, double y, double absX, double absY)
com.sun.javafx.tk.quantum back to summary

private final Enum ZoomGestureRecognizer.ZoomRecognitionState

extends Enum<ZoomGestureRecognizer.ZoomRecognitionState>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ZoomGestureRecognizer.ZoomRecognitionState
public static final ZoomGestureRecognizer.ZoomRecognitionState
public static final ZoomGestureRecognizer.ZoomRecognitionState
public static final ZoomGestureRecognizer.ZoomRecognitionState
public static final ZoomGestureRecognizer.ZoomRecognitionState
public static final ZoomGestureRecognizer.ZoomRecognitionState

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ZoomGestureRecognizer.ZoomRecognitionState
public static ZoomGestureRecognizer.ZoomRecognitionState[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ACTIVEback to summary
public static final ZoomGestureRecognizer.ZoomRecognitionState ACTIVE
FAILUREback to summary
public static final ZoomGestureRecognizer.ZoomRecognitionState FAILURE
IDLEback to summary
public static final ZoomGestureRecognizer.ZoomRecognitionState IDLE
INERTIAback to summary
public static final ZoomGestureRecognizer.ZoomRecognitionState INERTIA
PRE_INERTIAback to summary
public static final ZoomGestureRecognizer.ZoomRecognitionState PRE_INERTIA
TRACKINGback to summary
public static final ZoomGestureRecognizer.ZoomRecognitionState TRACKING

Constructor Detail

ZoomRecognitionStateback to summary
private ZoomRecognitionState()

Method Detail

valueOfback to summary
public static ZoomGestureRecognizer.ZoomRecognitionState valueOf(String name)
valuesback to summary
public static ZoomGestureRecognizer.ZoomRecognitionState[] values()