synergynetframework.appsystem.contentsystem.jme.items.utils
Class KeyboardWrapper

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
          extended by synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
              extended by synergynetframework.appsystem.contentsystem.jme.items.utils.KeyboardWrapper

public class KeyboardWrapper
extends OrthoControlPointRotateTranslateScale

The Class KeyboardWrapper.


Nested Class Summary
static interface KeyboardWrapper.KeyboardEvenListener
          The listener interface for receiving keyboardEven events.
 
Nested classes/interfaces inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
KeyboardWrapper(JMEKeyboard keyboardGeom, java.awt.Rectangle interactArea)
          Instantiates a new keyboard wrapper.
KeyboardWrapper(JMEKeyboard keyboardGeom, com.jme.scene.Spatial targetSpatial, java.awt.Rectangle interactArea)
          Instantiates a new keyboard wrapper.
 
Method Summary
 void cursorChanged(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor changed.
 void cursorPressed(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor pressed.
 void cursorReleased(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor released.
 java.awt.Point getCurrentElement2DCoordsForCursor(ScreenCursor cursor)
          Gets the current element2 d coords for cursor.
 
Methods inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
addRotateTranslateScaleListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, cursorClicked, getScaleMax, getScaleMin, removeRotateTranslateScaleListener, setRotateLimits, setScaleLimits
 
Methods inherited from class synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
getCursorScreenPositionAtPick, getPickDataForCursorID, getPickResultFromCursorIndex, getSpatial2DWorldPositionAtPick, registerScreenCursor
 
Methods inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
addWorldCursorRecord, getCurrentScreenAngleDifferenceFromOrigin, getCurrentScreenCursorsAngle, getCurrentTargetSpatialRotationFromCursorChange, getName, getNumRegisteredCursors, getOriginScreenCursorsAngle, getPickingSpatial, getScaleAtOrigin, getScreenCursorByID, getScreenCursorByIndex, getScreenCursorOriginForCursorID, getTargetSpatial, getTranslationAtOrigin, getWorldLocations, isActive, isPickMeOnly, registerScreenCursor, setActive, setName, setPickMeOnly, unregisterScreenCursor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyboardWrapper

public KeyboardWrapper(JMEKeyboard keyboardGeom,
                       java.awt.Rectangle interactArea)
Instantiates a new keyboard wrapper.

Parameters:
keyboardGeom - the keyboard geom
interactArea - the interact area

KeyboardWrapper

public KeyboardWrapper(JMEKeyboard keyboardGeom,
                       com.jme.scene.Spatial targetSpatial,
                       java.awt.Rectangle interactArea)
Instantiates a new keyboard wrapper.

Parameters:
keyboardGeom - the keyboard geom
targetSpatial - the target spatial
interactArea - the interact area
Method Detail

cursorChanged

public void cursorChanged(ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor changed.

Overrides:
cursorChanged in class OrthoControlPointRotateTranslateScale
Parameters:
c - the c
event - the event

cursorPressed

public void cursorPressed(ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor pressed.

Overrides:
cursorPressed in class OrthoControlPointRotateTranslateScale
Parameters:
c - the c
event - the event

cursorReleased

public void cursorReleased(ScreenCursor c,
                           MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor released.

Overrides:
cursorReleased in class OrthoControlPointRotateTranslateScale
Parameters:
c - the c
event - the event

getCurrentElement2DCoordsForCursor

public java.awt.Point getCurrentElement2DCoordsForCursor(ScreenCursor cursor)
Gets the current element2 d coords for cursor.

Parameters:
cursor - the cursor
Returns:
the current element2 d coords for cursor