Top Inners Fields Constructors Methods
com.sun.glass.ui

public final Class GestureSupport

extends Object
Class Inheritance
Imports
com.sun.glass.events.GestureEvent

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private double
private double
private final GestureSupport.GestureState
private final GestureSupport.GestureState
private final GestureSupport.GestureState
private static final double
private static final double
private static final double
private static final double
private double
private double
private double
private double
private double
private final GestureSupport.GestureState
private boolean

Constructor Summary

AccessConstructor and Description
public
GestureSupport(boolean zoomWithExpansion)

Method Summary

Modifier and TypeMethod and Description
public TouchInputSupport.TouchCountListener
public void
handleDeltaRotation(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs, double rotation)

public void
handleDeltaScrolling(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int x, int y, int xAbs, int yAbs, double dx, double dy, double multiplierX, double multiplierY)

public void
handleDeltaZooming(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs, double scale, double expansion)

public void
handleRotationEnd(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs)

public void
handleScrollingEnd(View view, int modifiers, int touchCount, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs)

public static void
handleScrollingPerformed(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int x, int y, int xAbs, int yAbs, double dx, double dy, double multiplierX, double multiplierY)

public void
handleSwipe(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int dir, int x, int y, int xAbs, int yAbs)

public void
handleSwipeEnd(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs)

public static void
handleSwipePerformed(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int dir, int x, int y, int xAbs, int yAbs)

public void
handleTotalRotation(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs, double rotation)

public void
handleTotalScrolling(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int x, int y, int xAbs, int yAbs, double dx, double dy, double multiplierX, double multiplierY)

public void
handleTotalZooming(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs, double scale, double expansion)

public void
handleZoomingEnd(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs)

public boolean
public boolean
public boolean
public boolean
private static double
multiplicativeDelta(double from, double to)

private int
setRotating(boolean isInertia)

private int
setScrolling(boolean isInertia)

private int
setSwiping(boolean isInertia)

private int
setZooming(boolean isInertia)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

multiplierXback to summary
private double multiplierX
multiplierYback to summary
private double multiplierY
rotatingback to summary
private final GestureSupport.GestureState rotating
scrollingback to summary
private final GestureSupport.GestureState scrolling
swipingback to summary
private final GestureSupport.GestureState swiping
THRESHOLD_EXPANSIONback to summary
private static final double THRESHOLD_EXPANSION
THRESHOLD_ROTATEback to summary
private static final double THRESHOLD_ROTATE
THRESHOLD_SCALEback to summary
private static final double THRESHOLD_SCALE
THRESHOLD_SCROLLback to summary
private static final double THRESHOLD_SCROLL
totalExpansionback to summary
private double totalExpansion
totalRotationback to summary
private double totalRotation
totalScaleback to summary
private double totalScale
totalScrollXback to summary
private double totalScrollX
totalScrollYback to summary
private double totalScrollY
zoomingback to summary
private final GestureSupport.GestureState zooming
zoomWithExpansionback to summary
private boolean zoomWithExpansion

Constructor Detail

GestureSupportback to summary
public GestureSupport(boolean zoomWithExpansion)

Method Detail

createTouchCountListenerback to summary
public TouchInputSupport.TouchCountListener createTouchCountListener()
handleDeltaRotationback to summary
public void handleDeltaRotation(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs, double rotation)
handleDeltaScrollingback to summary
public void handleDeltaScrolling(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int x, int y, int xAbs, int yAbs, double dx, double dy, double multiplierX, double multiplierY)
handleDeltaZoomingback to summary
public void handleDeltaZooming(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs, double scale, double expansion)
handleRotationEndback to summary
public void handleRotationEnd(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs)
handleScrollingEndback to summary
public void handleScrollingEnd(View view, int modifiers, int touchCount, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs)
handleScrollingPerformedback to summary
public static void handleScrollingPerformed(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int x, int y, int xAbs, int yAbs, double dx, double dy, double multiplierX, double multiplierY)
handleSwipeback to summary
public void handleSwipe(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int dir, int x, int y, int xAbs, int yAbs)
handleSwipeEndback to summary
public void handleSwipeEnd(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs)
handleSwipePerformedback to summary
public static void handleSwipePerformed(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int dir, int x, int y, int xAbs, int yAbs)
handleTotalRotationback to summary
public void handleTotalRotation(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs, double rotation)
handleTotalScrollingback to summary
public void handleTotalScrolling(View view, int modifiers, boolean isDirect, boolean isInertia, int touchCount, int x, int y, int xAbs, int yAbs, double dx, double dy, double multiplierX, double multiplierY)
handleTotalZoomingback to summary
public void handleTotalZooming(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs, double scale, double expansion)
handleZoomingEndback to summary
public void handleZoomingEnd(View view, int modifiers, boolean isDirect, boolean isInertia, int x, int y, int xAbs, int yAbs)
isRotatingback to summary
public boolean isRotating()
isScrollingback to summary
public boolean isScrolling()
isSwipingback to summary
public boolean isSwiping()
isZoomingback to summary
public boolean isZooming()
multiplicativeDeltaback to summary
private static double multiplicativeDelta(double from, double to)
setRotatingback to summary
private int setRotating(boolean isInertia)
setScrollingback to summary
private int setScrolling(boolean isInertia)
setSwipingback to summary
private int setSwiping(boolean isInertia)
setZoomingback to summary
private int setZooming(boolean isInertia)
com.sun.glass.ui back to summary

private Class GestureSupport.GestureState

extends Object
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Field Summary

Modifier and TypeField and Description
private GestureSupport.GestureState.StateId

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
doesGestureStart(final boolean isInertia)

pack-priv boolean
pack-priv void
pack-priv int
updateProgress(final boolean isInertia)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idback to summary
private GestureSupport.GestureState.StateId id

Constructor Detail

GestureStateback to summary
private GestureState()

Method Detail

doesGestureStartback to summary
pack-priv boolean doesGestureStart(final boolean isInertia)
isIdleback to summary
pack-priv boolean isIdle()
setIdleback to summary
pack-priv void setIdle()
updateProgressback to summary
pack-priv int updateProgress(final boolean isInertia)
com.sun.glass.ui back to summary

pack-priv final Enum GestureSupport.GestureState.StateId

extends Enum<GestureSupport.GestureState.StateId>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final GestureSupport.GestureState.StateId
public static final GestureSupport.GestureState.StateId
public static final GestureSupport.GestureState.StateId

Constructor Summary

AccessConstructor and Description
private

Field Detail

Idleback to summary
public static final GestureSupport.GestureState.StateId Idle
Inertiaback to summary
public static final GestureSupport.GestureState.StateId Inertia
Runningback to summary
public static final GestureSupport.GestureState.StateId Running

Constructor Detail

StateIdback to summary
private StateId()

Method Detail

valueOfback to summary
public static GestureSupport.GestureState.StateId valueOf(String name)
valuesback to summary
public static GestureSupport.GestureState.StateId[] values()