|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.mtinput.simulator.AbstractSimCursor
synergynetframework.mtinput.simulator.DoubleFingerSimCursor
public class DoubleFingerSimCursor
Behaviour: right-click + hold with a drag then release to define the first finger and second finger. Hold shift to rotate. Hold CTRL to scale. Left-click to finish.
Field Summary | |
---|---|
static int |
MODE_INITIAL_DISTANCE
The Constant MODE_INITIAL_DISTANCE. |
static int |
MODE_MOVE
The Constant MODE_MOVE. |
static int |
MODE_ROT
The Constant MODE_ROT. |
static int |
MODE_SCALE
The Constant MODE_SCALE. |
Fields inherited from class synergynetframework.mtinput.simulator.AbstractSimCursor |
---|
KEY_CONTROL, KEY_SHIFT, KEY_SPACE, MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE, MOUSE_BUTTON_RIGHT |
Constructor Summary | |
---|---|
DoubleFingerSimCursor(IMultiTouchSimulator simulator,
int id1,
int id2,
int screenWidth,
int screenHeight)
Instantiates a new double finger sim cursor. |
Method Summary | |
---|---|
java.awt.Point |
getCentralPoint()
Gets the central point. |
java.awt.Point |
getFirstCursorPosition()
Gets the first cursor position. |
int |
getIDForCursor1()
Gets the ID for cursor1. |
int |
getIDForCursor2()
Gets the ID for cursor2. |
int |
getMode()
Gets the mode. |
int |
getMouseX()
Gets the mouse x. |
int |
getMouseY()
Gets the mouse y. |
java.awt.Point |
getSecondCursorPosition()
Gets the second cursor position. |
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 buttonNumber)
Mouse released. |
Methods inherited from class synergynetframework.mtinput.simulator.AbstractSimCursor |
---|
getScaledX, getScaledY |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MODE_INITIAL_DISTANCE
public static final int MODE_MOVE
public static final int MODE_ROT
public static final int MODE_SCALE
Constructor Detail |
---|
public DoubleFingerSimCursor(IMultiTouchSimulator simulator, int id1, int id2, int screenWidth, int screenHeight)
simulator
- the simulatorid1
- the id1id2
- the id2screenWidth
- the screen widthscreenHeight
- the screen heightMethod Detail |
---|
public java.awt.Point getCentralPoint()
public java.awt.Point getFirstCursorPosition()
public int getIDForCursor1()
public int getIDForCursor2()
public int getMode()
public int getMouseX()
public int getMouseY()
public java.awt.Point getSecondCursorPosition()
public void keyPressed(java.lang.String key)
AbstractSimCursor
keyPressed
in class AbstractSimCursor
key
- the keypublic void keyReleased(java.lang.String key)
AbstractSimCursor
keyReleased
in class AbstractSimCursor
key
- the keypublic void mouseDragged(int x, int y, int button)
AbstractSimCursor
mouseDragged
in class AbstractSimCursor
x
- the xy
- the ybutton
- the button numberpublic void mouseMoved(int x, int y)
AbstractSimCursor
mouseMoved
in class AbstractSimCursor
x
- the xy
- the ypublic void mousePressed(int x, int y, int button)
AbstractSimCursor
mousePressed
in class AbstractSimCursor
x
- the xy
- the ybutton
- the button numberpublic void mouseReleased(int x, int y, int buttonNumber)
AbstractSimCursor
mouseReleased
in class AbstractSimCursor
x
- the xy
- the ybuttonNumber
- the button number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |