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

pack-priv Class SwipeGestureRecognizer

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.event.EventType, javafx.scene.input.SwipeEvent

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class
private static enum
private static class

Field Summary

Modifier and TypeField and Description
private static final double
private static final double
private ViewScene
private SwipeGestureRecognizer.SwipeRecognitionState
private static final double
private static final double
pack-priv SwipeGestureRecognizer.MultiTouchTracker
private static final boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private EventType<SwipeEvent>
private void
handleSwipeType(final EventType<SwipeEvent> swipeType, final SwipeGestureRecognizer.CenterComputer cc, final int touchCount, final int modifiers, final boolean isDirect)

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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BACKWARD_DISTANCE_THRASHOLDback to summary
private static final double BACKWARD_DISTANCE_THRASHOLD
DISTANCE_THRESHOLDback to summary
private static final double DISTANCE_THRESHOLD
sceneback to summary
private ViewScene scene
stateback to summary
private SwipeGestureRecognizer.SwipeRecognitionState state
TANGENT_30_DEGREESback to summary
private static final double TANGENT_30_DEGREES
TANGENT_45_DEGREESback to summary
private static final double TANGENT_45_DEGREES
trackerback to summary
pack-priv SwipeGestureRecognizer.MultiTouchTracker tracker
VERBOSEback to summary
private static final boolean VERBOSE

Constructor Detail

SwipeGestureRecognizerback to summary
pack-priv SwipeGestureRecognizer(final ViewScene scene)

Method Detail

calcSwipeTypeback to summary
private EventType<SwipeEvent> calcSwipeType(SwipeGestureRecognizer.TouchPointTracker tracker)
handleSwipeTypeback to summary
private void handleSwipeType(final EventType<SwipeEvent> swipeType, final SwipeGestureRecognizer.CenterComputer cc, final int touchCount, final int modifiers, final boolean isDirect)
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
com.sun.javafx.tk.quantum back to summary

private Class SwipeGestureRecognizer.CenterComputer

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.javafx.tk.quantum.SwipeGestureRecognizer.CenterComputer

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
add(double x, double y, double xAbs, double yAbs)

public double
public double
public double
getX()

public double
getY()

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
pack-priv int count
totalAbsXback to summary
pack-priv double totalAbsX
totalAbsYback to summary
pack-priv double totalAbsY
totalXback to summary
pack-priv double totalX
totalYback to summary
pack-priv double totalY

Constructor Detail

CenterComputerback to summary
private CenterComputer()

Method Detail

addback to summary
public void add(double x, double y, double xAbs, double yAbs)
getAbsXback to summary
public double getAbsX()
getAbsYback to summary
public double getAbsY()
getXback to summary
public double getX()
getYback to summary
public double getY()
resetback to summary
public void reset()
com.sun.javafx.tk.quantum back to summary

private Class SwipeGestureRecognizer.MultiTouchTracker

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.javafx.tk.quantum.SwipeGestureRecognizer.MultiTouchTracker

Field Summary

Modifier and TypeField and Description
pack-priv SwipeGestureRecognizer.CenterComputer
private int
pack-priv boolean
pack-priv int
pack-priv SwipeGestureRecognizer.SwipeRecognitionState
private int
pack-priv Map<Long, SwipeGestureRecognizer.TouchPointTracker>
private EventType<SwipeEvent>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
params(int modifiers, boolean direct)

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

public void
progress(long id, long nanos, int x, int y)

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

pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ccback to summary
pack-priv SwipeGestureRecognizer.CenterComputer cc
currentTouchCountback to summary
private int currentTouchCount
directback to summary
pack-priv boolean direct
modifiersback to summary
pack-priv int modifiers
stateback to summary
pack-priv SwipeGestureRecognizer.SwipeRecognitionState state
touchCountback to summary
private int touchCount
trackersback to summary
pack-priv Map<Long, SwipeGestureRecognizer.TouchPointTracker> trackers
typeback to summary
private EventType<SwipeEvent> type

Constructor Detail

MultiTouchTrackerback to summary
private MultiTouchTracker()

Method Detail

paramsback to summary
public void params(int modifiers, boolean direct)
pressedback to summary
public void pressed(long id, long nanos, int x, int y, int xAbs, int yAbs)
progressback to summary
public void progress(long id, long nanos, int x, int y)
releasedback to summary
public void released(long id, long nanos, int x, int y, int xAbs, int yAbs)
resetback to summary
pack-priv void reset()
com.sun.javafx.tk.quantum back to summary

private final Enum SwipeGestureRecognizer.SwipeRecognitionState

extends Enum<SwipeGestureRecognizer.SwipeRecognitionState>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final SwipeGestureRecognizer.SwipeRecognitionState
public static final SwipeGestureRecognizer.SwipeRecognitionState
public static final SwipeGestureRecognizer.SwipeRecognitionState
public static final SwipeGestureRecognizer.SwipeRecognitionState

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

ADDINGback to summary
public static final SwipeGestureRecognizer.SwipeRecognitionState ADDING
FAILUREback to summary
public static final SwipeGestureRecognizer.SwipeRecognitionState FAILURE
IDLEback to summary
public static final SwipeGestureRecognizer.SwipeRecognitionState IDLE
REMOVINGback to summary
public static final SwipeGestureRecognizer.SwipeRecognitionState REMOVING

Constructor Detail

SwipeRecognitionStateback to summary
private SwipeRecognitionState()

Method Detail

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

private Class SwipeGestureRecognizer.TouchPointTracker

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
end(long nanos, double x, double y, double absX, double absY)

public double
public double
public long
public void
progress(long nanos, double x, double y)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beginAbsXback to summary
pack-priv double beginAbsX
beginAbsYback to summary
pack-priv double beginAbsY
beginTimeback to summary
pack-priv long beginTime
beginXback to summary
pack-priv double beginX
beginYback to summary
pack-priv double beginY
endAbsXback to summary
pack-priv double endAbsX
endAbsYback to summary
pack-priv double endAbsY
endTimeback to summary
pack-priv long endTime
endXback to summary
pack-priv double endX
endYback to summary
pack-priv double endY
lastXback to summary
pack-priv double lastX
lastXMovementback to summary
pack-priv double lastXMovement
lastYback to summary
pack-priv double lastY
lastYMovementback to summary
pack-priv double lastYMovement
lengthXback to summary
pack-priv double lengthX
lengthYback to summary
pack-priv double lengthY
maxDeviationXback to summary
pack-priv double maxDeviationX
maxDeviationYback to summary
pack-priv double maxDeviationY

Constructor Detail

TouchPointTrackerback to summary
private TouchPointTracker()

Method Detail

endback to summary
public void end(long nanos, double x, double y, double absX, double absY)
getDistanceXback to summary
public double getDistanceX()
getDistanceYback to summary
public double getDistanceY()
getDurationback to summary
public long getDuration()
progressback to summary
public void progress(long nanos, double x, double y)
startback to summary
public void start(long nanos, double x, double y, double absX, double absY)