| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.jme.cursorsystem.MultiTouchElement
synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
synergynetframework.jme.cursorsystem.flicksystem.FlickMover
public class FlickMover
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 java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static float lowerThreshold
public static float speedLimit
public boolean toBeTransferred
| Constructor Detail | 
|---|
public FlickMover(com.jme.scene.Spatial pickSpatial,
                  MultiTouchElement movingElement,
                  float deceleration,
                  boolean networkFlickMode)
pickSpatial - the pick spatialmovingElement - the moving elementdeceleration - the decelerationnetworkFlickMode - the network flick mode
public FlickMover(com.jme.scene.Spatial pickSpatial,
                  com.jme.scene.Spatial targetSpatial,
                  MultiTouchElement movingElement,
                  float deceleration,
                  boolean networkFlickMode)
pickSpatial - the pick spatialtargetSpatial - the target spatialmovingElement - the moving elementdeceleration - the decelerationnetworkFlickMode - the network flick mode| Method Detail | 
|---|
public void addFlickListener(FlickMover.FlickListener l)
l - the lpublic void bounce()
public void cursorChanged(ScreenCursor c,
                          MultiTouchCursorEvent event)
MultiTouchElement
cursorChanged in class MultiTouchElementc - the cevent - the event
public void cursorClicked(ScreenCursor c,
                          MultiTouchCursorEvent event)
MultiTouchElement
cursorClicked in class MultiTouchElementc - the cevent - the event
public void cursorPressed(ScreenCursor c,
                          MultiTouchCursorEvent event)
MultiTouchElement
cursorPressed in class MultiTouchElementc - the cevent - the event
public void cursorReleased(ScreenCursor c,
                           MultiTouchCursorEvent event)
MultiTouchElement
cursorReleased in class MultiTouchElementc - the cevent - the eventpublic boolean elementReleased()
public float getDeceleration()
public com.jme.math.Vector3f getLinearVelocity()
public MultiTouchElement getMovingElement()
public float getSpeed()
public void removeFlickListener(FlickMover.FlickListener l)
l - the lpublic void setDeceleration(float deceleration)
deceleration - the new decelerationpublic void setLinearVelocity(com.jme.math.Vector3f linearVelocity)
linearVelocity - the new linear velocitypublic void setNetworkFlickMode(boolean networkFlickMode)
networkFlickMode - the new network flick modepublic void update(float tpf)
tpf - the tpf
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||