public static class Pointer.PointerListenerToPointerEvents extends Object implements Pointer.PointerListener
Pointer.PointerListener
.
This implementation sends some MicroUI Pointer events using the button ID. It targets the common MicroUI Pointer
generator identified by the tag EventPointer.COMMON_MICROUI_GENERATOR_TAG
or
EventTouch.COMMON_MICROUI_GENERATOR_TAG
.
This tag can be changed overriding the method getMicroUIGeneratorTag(Pointer)
.
Constructor and Description |
---|
PointerListenerToPointerEvents() |
Modifier and Type | Method and Description |
---|---|
protected String |
getMicroUIGeneratorTag(Pointer widget)
Gets the MicroUI Pointer events generator tag.
|
void |
move(Pointer widget,
int x,
int y)
The pointer has moved to a new position.
|
void |
press(Pointer widget,
int x,
int y,
MouseListener.MouseButton button)
The specified pointer button has been pressed at given location.
|
void |
release(Pointer widget,
MouseListener.MouseButton button)
The specified pointer button has been released.
|
protected String getMicroUIGeneratorTag(Pointer widget)
microui/microui.xml
.widget
- the pointer that has been updated.public void move(Pointer widget, int x, int y)
Pointer.PointerListener
move
in interface Pointer.PointerListener
widget
- the pointer that has been updated.x
- the x coordinate of the new position.y
- the y coordinate of the new position.public void press(Pointer widget, int x, int y, MouseListener.MouseButton button)
Pointer.PointerListener
press
in interface Pointer.PointerListener
widget
- the pointer that has been updated.x
- the x coordinate of the press position.y
- the y coordinate of the press position.button
- the button that has been pressed.public void release(Pointer widget, MouseListener.MouseButton button)
Pointer.PointerListener
release
in interface Pointer.PointerListener
widget
- the pointer that has been updated.button
- the button that has been released.