synergynetframework.mtinput.simulator
Class AbstractSimCursor

java.lang.Object
  extended by synergynetframework.mtinput.simulator.AbstractSimCursor
Direct Known Subclasses:
DoubleFingerSimCursor, SingleFingerSimCursor, TripleFingerSimCursor

public abstract class AbstractSimCursor
extends java.lang.Object

The Class AbstractSimCursor.


Field Summary
static java.lang.String KEY_CONTROL
          The Constant KEY_CONTROL.
static java.lang.String KEY_SHIFT
          The Constant KEY_SHIFT.
static java.lang.String KEY_SPACE
          The Constant KEY_SPACE.
static int MOUSE_BUTTON_LEFT
          The Constant MOUSE_BUTTON_LEFT.
static int MOUSE_BUTTON_MIDDLE
          The Constant MOUSE_BUTTON_MIDDLE.
static int MOUSE_BUTTON_RIGHT
          The Constant MOUSE_BUTTON_RIGHT.
 
Constructor Summary
AbstractSimCursor()
           
 
Method Summary
static float getScaledX(int x, int width)
          Gets the scaled x.
static float getScaledY(int y, int height)
          Gets the scaled y.
abstract  void keyPressed(java.lang.String key)
          Key pressed.
abstract  void keyReleased(java.lang.String key)
          Key released.
abstract  void mouseDragged(int x, int y, int buttonNumber)
          Mouse dragged.
abstract  void mouseMoved(int x, int y)
          Mouse moved.
abstract  void mousePressed(int x, int y, int buttonNumber)
          Mouse pressed.
abstract  void mouseReleased(int x, int y, int buttonNumber)
          Mouse released.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_CONTROL

public static final java.lang.String KEY_CONTROL
The Constant KEY_CONTROL.

See Also:
Constant Field Values

KEY_SHIFT

public static final java.lang.String KEY_SHIFT
The Constant KEY_SHIFT.

See Also:
Constant Field Values

KEY_SPACE

public static final java.lang.String KEY_SPACE
The Constant KEY_SPACE.

See Also:
Constant Field Values

MOUSE_BUTTON_LEFT

public static final int MOUSE_BUTTON_LEFT
The Constant MOUSE_BUTTON_LEFT.

See Also:
Constant Field Values

MOUSE_BUTTON_MIDDLE

public static final int MOUSE_BUTTON_MIDDLE
The Constant MOUSE_BUTTON_MIDDLE.

See Also:
Constant Field Values

MOUSE_BUTTON_RIGHT

public static final int MOUSE_BUTTON_RIGHT
The Constant MOUSE_BUTTON_RIGHT.

See Also:
Constant Field Values
Constructor Detail

AbstractSimCursor

public AbstractSimCursor()
Method Detail

getScaledX

public static float getScaledX(int x,
                               int width)
Gets the scaled x.

Parameters:
x - the x
width - the width
Returns:
the scaled x

getScaledY

public static float getScaledY(int y,
                               int height)
Gets the scaled y.

Parameters:
y - the y
height - the height
Returns:
the scaled y

keyPressed

public abstract void keyPressed(java.lang.String key)
Key pressed.

Parameters:
key - the key

keyReleased

public abstract void keyReleased(java.lang.String key)
Key released.

Parameters:
key - the key

mouseDragged

public abstract void mouseDragged(int x,
                                  int y,
                                  int buttonNumber)
Mouse dragged.

Parameters:
x - the x
y - the y
buttonNumber - the button number

mouseMoved

public abstract void mouseMoved(int x,
                                int y)
Mouse moved.

Parameters:
x - the x
y - the y

mousePressed

public abstract void mousePressed(int x,
                                  int y,
                                  int buttonNumber)
Mouse pressed.

Parameters:
x - the x
y - the y
buttonNumber - the button number

mouseReleased

public abstract void mouseReleased(int x,
                                   int y,
                                   int buttonNumber)
Mouse released.

Parameters:
x - the x
y - the y
buttonNumber - the button number