apps.threedbuttonsexperiment.gesture
Class MultiTouchButtonPress

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
          extended by apps.threedbuttonsexperiment.gesture.MultiTouchButtonPress

public class MultiTouchButtonPress
extends ThreeDMultiTouchElement

The Class MultiTouchButtonPress.


Nested Class Summary
static interface MultiTouchButtonPress.FreeButtonListener
          The listener interface for receiving freeButton events.
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
MultiTouchButtonPress(com.jme.scene.Spatial s)
          Instantiates a new multi touch button press.
MultiTouchButtonPress(com.jme.scene.Spatial pickSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new multi touch button press.
 
Method Summary
 void addButtonListener(MultiTouchButtonPress.FreeButtonListener listener)
          Adds the button listener.
 void cursorChanged(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor changed.
 void cursorClicked(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor clicked.
 void cursorPressed(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor pressed.
 void cursorReleased(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor released.
 float getButtonHeight()
          Gets the button height.
 void setButtonHeight(float buttonHeight)
          Sets the button height.
 
Methods inherited from class synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
getPickDataForCursorID, getPickResultFromCursorIndex, 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

MultiTouchButtonPress

public MultiTouchButtonPress(com.jme.scene.Spatial s)
Instantiates a new multi touch button press.

Parameters:
s - the s

MultiTouchButtonPress

public MultiTouchButtonPress(com.jme.scene.Spatial pickSpatial,
                             com.jme.scene.Spatial targetSpatial)
Instantiates a new multi touch button press.

Parameters:
pickSpatial - the pick spatial
targetSpatial - the target spatial
Method Detail

addButtonListener

public void addButtonListener(MultiTouchButtonPress.FreeButtonListener listener)
Adds the button listener.

Parameters:
listener - the listener

cursorChanged

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

Specified by:
cursorChanged in class MultiTouchElement
Parameters:
c - the c
event - the event

cursorClicked

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

Specified by:
cursorClicked in class MultiTouchElement
Parameters:
c - the c
event - the event

cursorPressed

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

Specified by:
cursorPressed in class MultiTouchElement
Parameters:
c - the c
event - the event

cursorReleased

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

Specified by:
cursorReleased in class MultiTouchElement
Parameters:
c - the c
event - the event

getButtonHeight

public float getButtonHeight()
Gets the button height.

Returns:
the button height

setButtonHeight

public void setButtonHeight(float buttonHeight)
Sets the button height.

Parameters:
buttonHeight - the new button height