synergynetframework.jme.cursorsystem.elements.threed
Class MultiTouchScale

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
          extended by synergynetframework.jme.cursorsystem.elements.threed.MultiTouchScale

public class MultiTouchScale
extends ThreeDMultiTouchElement

The Class MultiTouchScale.


Nested Class Summary
static interface MultiTouchScale.ScaleChangeListener
          The listener interface for receiving scaleChange events.
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
MultiTouchScale(com.jme.scene.Spatial s, float minScale)
          Instantiates a new multi touch scale.
MultiTouchScale(com.jme.scene.Spatial pickSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new multi touch scale.
 
Method Summary
 void addScaleChangeListener(MultiTouchScale.ScaleChangeListener listener)
          Adds the scale change 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.
 
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

MultiTouchScale

public MultiTouchScale(com.jme.scene.Spatial s,
                       float minScale)
Instantiates a new multi touch scale.

Parameters:
s - the s
minScale - the min scale

MultiTouchScale

public MultiTouchScale(com.jme.scene.Spatial pickSpatial,
                       com.jme.scene.Spatial targetSpatial)
Instantiates a new multi touch scale.

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

addScaleChangeListener

public void addScaleChangeListener(MultiTouchScale.ScaleChangeListener listener)
Adds the scale change 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