public abstract class Interaction<E extends Event.XY> extends Object implements XY
| Modifier and Type | Field and Description |
|---|---|
E |
event
The event currently being dispatched in this interaction.
|
Layer |
hitLayer
The layer that was hit at the start of this interaction.
|
Point |
local
The current event's location, translated into the hit layer's coordinate space.
|
| Constructor and Description |
|---|
Interaction(Layer hitLayer,
boolean bubble) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels this interaction.
|
void |
capture()
Captures this interaction.
|
boolean |
captured()
Returns whether this interaction is captured.
|
float |
x()
Returns
event's x coordinate, for convenience. |
float |
y()
Returns
event's y coordinate, for convenience. |
public final Layer hitLayer
public final Point local
public Interaction(Layer hitLayer, boolean bubble)
public boolean captured()
public void capture()
public void cancel()
Copyright © 2015. All Rights Reserved.