public class GlimpseGestureEvent extends Object
The source string can contain generic information about the source of the touch.
There is a reference point x,y for each event. For tap/long press this is where the finger pressed the screen (in pixels). For pan/swipe, this is where the finger was at the start of this event. For pinch, this is the center X coordinate.
Constructor and Description |
---|
GlimpseGestureEvent(String source,
GlimpseTargetStack stack,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
String |
getSource()
Can be some information about where the gesture/touch event came
from.
|
GlimpseTargetStack |
getTargetStack() |
int |
getX()
A reference point X for the touch event.
|
int |
getY()
A reference point Y for the touch event.
|
boolean |
isHandled() |
void |
setHandled(boolean handled) |
GlimpseGestureEvent |
withNewTarget(GlimpseTargetStack targetStack,
int x,
int y) |
public GlimpseGestureEvent(String source, GlimpseTargetStack stack, int x, int y)
public String getSource()
public GlimpseTargetStack getTargetStack()
public int getX()
public int getY()
public void setHandled(boolean handled)
public boolean isHandled()
public GlimpseGestureEvent withNewTarget(GlimpseTargetStack targetStack, int x, int y)
Copyright © 2013 Metron, Inc.. All rights reserved.