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

pack-priv Class ScrollGestureRecognizer

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.ScrollEvent, javafx.animation.Interpolator, .KeyFrame, .KeyValue, .Timeline, javafx.beans.property.DoubleProperty, .SimpleDoubleProperty

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
private static class

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
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
sendScrollEvent(boolean isInertia, double xAbs, double yAbs, int touchCount)

private void
sendScrollFinishedEvent(double xAbs, double yAbs, int touchCount)

private void
sendScrollStartedEvent(double xAbs, double yAbs, int touchCount)

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
currentTouchCountback to summary
private int currentTouchCount
deltaXback to summary
private double deltaX
deltaYback to summary
private double deltaY
directback to summary
private boolean direct
factorXback to summary
private double factorX
factorYback to summary
private double factorY
inertiaLastTimeback to summary
pack-priv double inertiaLastTime
inertiaScrollVelocityback to summary
private DoubleProperty inertiaScrollVelocity
inertiaTimelineback to summary
private Timeline inertiaTimeline
initialInertiaScrollVelocityback to summary
private double initialInertiaScrollVelocity
lastCenterAbsXback to summary
private double lastCenterAbsX
lastCenterAbsYback to summary
private double lastCenterAbsY
lastTouchCountback to summary
private int lastTouchCount
lastTouchEventTimeback to summary
private double lastTouchEventTime
MAX_INITIAL_VELOCITYback to summary
private static double MAX_INITIAL_VELOCITY
modifiersback to summary
private int modifiers
sceneback to summary
private ViewScene scene
SCROLL_INERTIA_ENABLEDback to summary
private static boolean SCROLL_INERTIA_ENABLED
SCROLL_INERTIA_MILLISback to summary
private static double SCROLL_INERTIA_MILLIS
SCROLL_THRESHOLDback to summary
private static double SCROLL_THRESHOLD
scrollStartTimeback to summary
private double scrollStartTime
stateback to summary
private ScrollGestureRecognizer.ScrollRecognitionState state
totalDeltaXback to summary
private double totalDeltaX
totalDeltaYback to summary
private double totalDeltaY
touchPointsPressedback to summary
private boolean touchPointsPressed
touchPointsSetChangedback to summary
private boolean touchPointsSetChanged
trackersback to summary
private Map<Long, ScrollGestureRecognizer.TouchPointTracker> trackers

Constructor Detail

ScrollGestureRecognizerback to summary
pack-priv ScrollGestureRecognizer(final ViewScene scene)

Method Detail

calculateCenterback to summary
private void calculateCenter()
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()
sendScrollEventback to summary
private void sendScrollEvent(boolean isInertia, double xAbs, double yAbs, int touchCount)
sendScrollFinishedEventback to summary
private void sendScrollFinishedEvent(double xAbs, double yAbs, int touchCount)
sendScrollStartedEventback to summary
private void sendScrollStartedEvent(double xAbs, double yAbs, int touchCount)
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 final Enum ScrollGestureRecognizer.ScrollRecognitionState

extends Enum<ScrollGestureRecognizer.ScrollRecognitionState>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ScrollGestureRecognizer.ScrollRecognitionState
public static final ScrollGestureRecognizer.ScrollRecognitionState
public static final ScrollGestureRecognizer.ScrollRecognitionState
public static final ScrollGestureRecognizer.ScrollRecognitionState
public static final ScrollGestureRecognizer.ScrollRecognitionState

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

ACTIVEback to summary
public static final ScrollGestureRecognizer.ScrollRecognitionState ACTIVE
FAILUREback to summary
public static final ScrollGestureRecognizer.ScrollRecognitionState FAILURE
IDLEback to summary
public static final ScrollGestureRecognizer.ScrollRecognitionState IDLE
INERTIAback to summary
public static final ScrollGestureRecognizer.ScrollRecognitionState INERTIA
TRACKINGback to summary
public static final ScrollGestureRecognizer.ScrollRecognitionState TRACKING

Constructor Detail

ScrollRecognitionStateback to summary
private ScrollRecognitionState()

Method Detail

valueOfback to summary
public static ScrollGestureRecognizer.ScrollRecognitionState valueOf(String name)
valuesback to summary
public static ScrollGestureRecognizer.ScrollRecognitionState[] values()
com.sun.javafx.tk.quantum back to summary

private Class ScrollGestureRecognizer.TouchPointTracker

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.javafx.tk.quantum.ScrollGestureRecognizer.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)