synergynetframework.mtinput.simulator
Class SingleFingerSimCursor

java.lang.Object
  extended by synergynetframework.mtinput.simulator.AbstractSimCursor
      extended by synergynetframework.mtinput.simulator.SingleFingerSimCursor

public class SingleFingerSimCursor
extends AbstractSimCursor

The Class SingleFingerSimCursor.


Field Summary
 
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
SingleFingerSimCursor(IMultiTouchSimulator simulator, int id, int screenWidth, int screenHeight)
          Instantiates a new single finger sim cursor.
 
Method Summary
 int getMouseX()
          Gets the mouse x.
 int getMouseY()
          Gets the mouse y.
 float getX()
          Gets the x.
 float getY()
          Gets the y.
 void keyPressed(java.lang.String key)
          Key pressed.
 void keyReleased(java.lang.String key)
          Key released.
 void mouseDragged(int x, int y, int buttonNumber)
          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.
 
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
 

Constructor Detail

SingleFingerSimCursor

public SingleFingerSimCursor(IMultiTouchSimulator simulator,
                             int id,
                             int screenWidth,
                             int screenHeight)
Instantiates a new single finger sim cursor.

Parameters:
simulator - the simulator
id - the id
screenWidth - the screen width
screenHeight - the screen height
Method Detail

getMouseX

public int getMouseX()
Gets the mouse x.

Returns:
the mouse x

getMouseY

public int getMouseY()
Gets the mouse y.

Returns:
the mouse y

getX

public float getX()
Gets the x.

Returns:
the x

getY

public float getY()
Gets the y.

Returns:
the y

keyPressed

public void keyPressed(java.lang.String key)
Description copied from class: AbstractSimCursor
Key pressed.

Specified by:
keyPressed in class AbstractSimCursor
Parameters:
key - the key

keyReleased

public void keyReleased(java.lang.String key)
Description copied from class: AbstractSimCursor
Key released.

Specified by:
keyReleased in class AbstractSimCursor
Parameters:
key - the key

mouseDragged

public void mouseDragged(int x,
                         int y,
                         int buttonNumber)
Description copied from class: AbstractSimCursor
Mouse dragged.

Specified by:
mouseDragged in class AbstractSimCursor
Parameters:
x - the x
y - the y
buttonNumber - the button number

mouseMoved

public void mouseMoved(int x,
                       int y)
Description copied from class: AbstractSimCursor
Mouse moved.

Specified by:
mouseMoved in class AbstractSimCursor
Parameters:
x - the x
y - the y

mousePressed

public void mousePressed(int x,
                         int y,
                         int button)
Description copied from class: AbstractSimCursor
Mouse pressed.

Specified by:
mousePressed in class AbstractSimCursor
Parameters:
x - the x
y - the y
button - the button number

mouseReleased

public void mouseReleased(int x,
                          int y,
                          int button)
Description copied from class: AbstractSimCursor
Mouse released.

Specified by:
mouseReleased in class AbstractSimCursor
Parameters:
x - the x
y - the y
button - the button number