public static class Pointer.PointerListenerToPointerEvents extends java.lang.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 MicroUIPointer.COMMON_MICROUI_GENERATOR_TAG
or
MicroUITouch.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 java.lang.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,
ej.fp.MouseListener.MouseButton button)
The specified pointer button has been pressed at given location.
|
void |
release(Pointer widget,
ej.fp.MouseListener.MouseButton button)
The specified pointer button has been released.
|
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, ej.fp.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, ej.fp.MouseListener.MouseButton button)
Pointer.PointerListener
release
in interface Pointer.PointerListener
widget
- the pointer that has been updated.button
- the button that has been released.protected java.lang.String getMicroUIGeneratorTag(Pointer widget)
microui/microui.xml
.widget
- the pointer that has been updated.