public class Pointer extends WidgetWithListener implements ej.fp.MouseListener
Notes:
Pointer.PointerListener to send the pointer events,setTouch(boolean) attribute is false, this widget manages a mouse. Until three buttons are
managed,setTouch(boolean) attribute is true, this widget manages a touch panel. Only one button is
managed.| Modifier and Type | Class and Description |
|---|---|
static interface |
Pointer.PointerListener
Interface that handle pointer events.
|
static class |
Pointer.PointerListenerToPointerEvents
Default implementation of
Pointer.PointerListener. |
| Constructor and Description |
|---|
Pointer() |
| Modifier and Type | Method and Description |
|---|---|
void |
finalizeConfiguration() |
protected Pointer.PointerListener |
getListener()
Gets the widget listener.
|
protected int |
getMoveFilteringDelay()
Gets the minimum delay (in milliseconds) the system has to respect to send a new move event to the application.
|
protected boolean |
isTouch()
Tells if pointer is a touch panel or a mouse.
|
void |
mouseDragged(int x,
int y) |
void |
mouseEntered(int x,
int y) |
void |
mouseExited(int x,
int y) |
void |
mouseMoved(int x,
int y) |
void |
mousePressed(int x,
int y,
ej.fp.MouseListener.MouseButton button) |
void |
mouseReleased(int x,
int y,
ej.fp.MouseListener.MouseButton button) |
protected java.lang.Object |
newDefaultListener()
Lets subclass creates a default listener.
|
void |
setAreaHeight(int height)
Sets the area height of the pointer area.
|
void |
setAreaWidth(int width)
Sets the area width of the pointer area.
|
void |
setListenerClass(java.lang.String listenerClassName)
Defines the user class which has to implement
Pointer.PointerListener. |
void |
setTouch(boolean touch)
Configures touch or mouse mode.
|
void |
start() |
newListener, setListenerClassdispose, getAbsoluteX, getAbsoluteY, getCurrentSkin, getFilter, getHeight, getLabel, getParent, getSkin, getWidth, getX, getY, isOver, repaint, repaint, setCurrentSkin, setFilter, setHeight, setLabel, setOverlay, setSkin, setWidth, setX, setY, showYourselfpublic void setAreaWidth(int width)
finalizeConfiguration()).
This method should only be called by front panel parser.
width - the width to set.public void setAreaHeight(int height)
finalizeConfiguration()).
This method should only be called by front panel parser.
height - the height to set.public void setTouch(boolean touch)
This method should only be called by front panel parser.
touch - true to set touch mode.public void setListenerClass(java.lang.String listenerClassName)
Pointer.PointerListener.
This method should only be called by front panel parser.
listenerClassName - user listener class name.public void finalizeConfiguration()
finalizeConfiguration in class ej.fp.Widgetpublic void start()
start in class ej.fp.Widgetprotected java.lang.Object newDefaultListener()
WidgetWithListenernewDefaultListener in class WidgetWithListenerpublic void mouseEntered(int x,
int y)
mouseEntered in interface ej.fp.MouseListenerpublic void mouseExited(int x,
int y)
mouseExited in interface ej.fp.MouseListenerpublic void mouseMoved(int x,
int y)
mouseMoved in interface ej.fp.MouseListenerpublic void mouseDragged(int x,
int y)
mouseDragged in interface ej.fp.MouseListenerpublic void mousePressed(int x,
int y,
ej.fp.MouseListener.MouseButton button)
mousePressed in interface ej.fp.MouseListenerpublic void mouseReleased(int x,
int y,
ej.fp.MouseListener.MouseButton button)
mouseReleased in interface ej.fp.MouseListenerprotected Pointer.PointerListener getListener()
protected boolean isTouch()
protected int getMoveFilteringDelay()