public abstract class Interaction<E extends Event.XY> extends Object implements XY
| Modifier and Type | Class and Description |
|---|---|
static class |
Interaction.CaptureMode
Used to configure
capture(). |
| 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 in
ONLY mode. |
void |
capture(Interaction.CaptureMode mode)
Captures this interaction in the specified capture mode.
|
boolean |
captured()
Returns whether this interaction is captured.
|
String |
toString() |
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()
ONLY mode. This causes subsequent events in this
interaction to go only to the layer which is currently handling the interaction. Other layers
in the interaction will receive a cancellation event and nothing further.public void capture(Interaction.CaptureMode mode)
public void cancel()
Copyright © 2017. All Rights Reserved.