synergynetframework.jme.cursorsystem.flicksystem
Class FlickMover

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
          extended by synergynetframework.jme.cursorsystem.flicksystem.FlickMover

public class FlickMover
extends ThreeDMultiTouchElement

The Class FlickMover.


Nested Class Summary
static interface FlickMover.FlickListener
          The listener interface for receiving flick events.
 
Field Summary
static float lowerThreshold
          The lower threshold.
static float speedLimit
          The speed limit.
 boolean toBeTransferred
          The to be transferred.
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
FlickMover(com.jme.scene.Spatial pickSpatial, MultiTouchElement movingElement, float deceleration, boolean networkFlickMode)
          Instantiates a new flick mover.
FlickMover(com.jme.scene.Spatial pickSpatial, com.jme.scene.Spatial targetSpatial, MultiTouchElement movingElement, float deceleration, boolean networkFlickMode)
          Instantiates a new flick mover.
 
Method Summary
 void addFlickListener(FlickMover.FlickListener l)
          Adds the flick listener.
 void bounce()
          Bounce.
 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.
 boolean elementReleased()
          Element released.
 float getDeceleration()
          Gets the deceleration.
 com.jme.math.Vector3f getLinearVelocity()
          Gets the linear velocity.
 MultiTouchElement getMovingElement()
          Gets the moving element.
 float getSpeed()
          Gets the speed.
 void removeFlickListener(FlickMover.FlickListener l)
          Removes the flick listener.
 void setDeceleration(float deceleration)
          Sets the deceleration.
 void setLinearVelocity(com.jme.math.Vector3f linearVelocity)
          Sets the linear velocity.
 void setNetworkFlickMode(boolean networkFlickMode)
          Sets the network flick mode.
 void update(float tpf)
          Update.
 
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
 

Field Detail

lowerThreshold

public static float lowerThreshold
The lower threshold.


speedLimit

public static float speedLimit
The speed limit.


toBeTransferred

public boolean toBeTransferred
The to be transferred.

Constructor Detail

FlickMover

public FlickMover(com.jme.scene.Spatial pickSpatial,
                  MultiTouchElement movingElement,
                  float deceleration,
                  boolean networkFlickMode)
Instantiates a new flick mover.

Parameters:
pickSpatial - the pick spatial
movingElement - the moving element
deceleration - the deceleration
networkFlickMode - the network flick mode

FlickMover

public FlickMover(com.jme.scene.Spatial pickSpatial,
                  com.jme.scene.Spatial targetSpatial,
                  MultiTouchElement movingElement,
                  float deceleration,
                  boolean networkFlickMode)
Instantiates a new flick mover.

Parameters:
pickSpatial - the pick spatial
targetSpatial - the target spatial
movingElement - the moving element
deceleration - the deceleration
networkFlickMode - the network flick mode
Method Detail

addFlickListener

public void addFlickListener(FlickMover.FlickListener l)
Adds the flick listener.

Parameters:
l - the l

bounce

public void bounce()
Bounce.


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

elementReleased

public boolean elementReleased()
Element released.

Returns:
true, if successful

getDeceleration

public float getDeceleration()
Gets the deceleration.

Returns:
the deceleration

getLinearVelocity

public com.jme.math.Vector3f getLinearVelocity()
Gets the linear velocity.

Returns:
the linear velocity

getMovingElement

public MultiTouchElement getMovingElement()
Gets the moving element.

Returns:
the moving element

getSpeed

public float getSpeed()
Gets the speed.

Returns:
the speed

removeFlickListener

public void removeFlickListener(FlickMover.FlickListener l)
Removes the flick listener.

Parameters:
l - the l

setDeceleration

public void setDeceleration(float deceleration)
Sets the deceleration.

Parameters:
deceleration - the new deceleration

setLinearVelocity

public void setLinearVelocity(com.jme.math.Vector3f linearVelocity)
Sets the linear velocity.

Parameters:
linearVelocity - the new linear velocity

setNetworkFlickMode

public void setNetworkFlickMode(boolean networkFlickMode)
Sets the network flick mode.

Parameters:
networkFlickMode - the new network flick mode

update

public void update(float tpf)
Update.

Parameters:
tpf - the tpf