|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.mtinput.simulator.AbstractMultiTouchSimulator
public abstract class AbstractMultiTouchSimulator
Default implementation of the jME simulator system. Left click to simulate a single finger. Right click, drag and release to simulate two fingers that can then be moved (mouse movement), rotated around their centre (using SHIFT) or scaled in and out (using CTRL).
| Constructor Summary | |
|---|---|
AbstractMultiTouchSimulator(int tableWidth,
int tableHeight)
Instantiates a new abstract multi touch simulator. |
|
| Method Summary | |
|---|---|
void |
clearCursor()
Clear cursor. |
abstract void |
deleteCursor(int id,
float x,
float y)
Delete cursor. |
abstract void |
deleteTwoCursors(int id1,
float x1,
float y1,
int id2,
float x2,
float y2)
Delete two cursors. |
AbstractSimCursor |
getCurrentCursor()
Gets the current cursor. |
int |
getNewCursorID()
Gets the new cursor id. |
void |
keyPressed(java.lang.String key)
Key pressed. |
void |
keyReleased(java.lang.String key)
Key released. |
void |
mouseDragged(int x,
int y,
int button)
Mouse dragged. |
void |
mouseMoved(int x,
int y)
Mouse moved. |
void |
mousePressed(int x,
int y,
int button)
Mouse pressed. |
void |
mouseReleased(int x,
int y,
int button)
Mouse released. |
abstract void |
newCursor(int id,
float x,
float y)
New cursor. |
void |
registerMultiTouchEventListener(IMultiTouchEventListener listener)
Register the listener to receive multi-touch events, as defined in IMultiTouchInputListener. |
void |
registerMultiTouchEventListener(IMultiTouchEventListener listener,
int index)
Register multi touch event listener. |
void |
setClickSensitivity(long time,
float distance)
Determines whether two successive cursor add/remove events constitute a 'click'. |
void |
start()
Start. |
void |
stop()
Stop. |
void |
unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
Stops the listener from receiving multi-touch events. |
abstract void |
updateCursor(int id,
float x,
float y)
Update cursor. |
abstract void |
updateTwoCursors(int id1,
float x,
float y,
int id2,
float x2,
float y2)
Update two cursors. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface synergynetframework.mtinput.IMultiTouchInputSource |
|---|
update |
| Constructor Detail |
|---|
public AbstractMultiTouchSimulator(int tableWidth,
int tableHeight)
tableWidth - the table widthtableHeight - the table height| Method Detail |
|---|
public void clearCursor()
IMultiTouchSimulator
clearCursor in interface IMultiTouchSimulator
public abstract void deleteCursor(int id,
float x,
float y)
IMultiTouchSimulator
deleteCursor in interface IMultiTouchSimulatorid - the idx - the xy - the y
public abstract void deleteTwoCursors(int id1,
float x1,
float y1,
int id2,
float x2,
float y2)
IMultiTouchSimulator
deleteTwoCursors in interface IMultiTouchSimulatorid1 - the id1x1 - the xy1 - the yid2 - the id2x2 - the x2y2 - the y2public AbstractSimCursor getCurrentCursor()
public int getNewCursorID()
public void keyPressed(java.lang.String key)
key - the keypublic void keyReleased(java.lang.String key)
key - the key
public void mouseDragged(int x,
int y,
int button)
x - the xy - the ybutton - the button
public void mouseMoved(int x,
int y)
x - the xy - the y
public void mousePressed(int x,
int y,
int button)
x - the xy - the ybutton - the button
public void mouseReleased(int x,
int y,
int button)
x - the xy - the ybutton - the button
public abstract void newCursor(int id,
float x,
float y)
IMultiTouchSimulator
newCursor in interface IMultiTouchSimulatorid - the idx - the xy - the ypublic void registerMultiTouchEventListener(IMultiTouchEventListener listener)
IMultiTouchInputSource
registerMultiTouchEventListener in interface IMultiTouchInputSourcelistener - the listener
public void registerMultiTouchEventListener(IMultiTouchEventListener listener,
int index)
IMultiTouchInputSource
registerMultiTouchEventListener in interface IMultiTouchInputSourcelistener - the listenerindex - the index
public void setClickSensitivity(long time,
float distance)
IMultiTouchInputSource
setClickSensitivity in interface IMultiTouchInputSourcetime - in millisecondsdistance - in coordinate spacepublic void start()
public void stop()
public void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
IMultiTouchInputSource
unregisterMultiTouchEventListener in interface IMultiTouchInputSourcelistener - the listener
public abstract void updateCursor(int id,
float x,
float y)
IMultiTouchSimulator
updateCursor in interface IMultiTouchSimulatorid - the idx - the xy - the y
public abstract void updateTwoCursors(int id1,
float x,
float y,
int id2,
float x2,
float y2)
IMultiTouchSimulator
updateTwoCursors in interface IMultiTouchSimulatorid1 - the id1x - the xy - the yid2 - the id2x2 - the x2y2 - the y2
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||