synergynetframework.jme.cursorsystem.flicksystem
Class FlickSystem

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.flicksystem.FlickSystem
All Implemented Interfaces:
Updateable

public class FlickSystem
extends java.lang.Object
implements Updateable

The Class FlickSystem.


Method Summary
 void flick(com.jme.scene.Spatial s, com.jme.math.Vector3f linearVelocity, float deceleration)
          Flick.
static FlickMover getFlickMover(com.jme.scene.Spatial s)
          Gets the flick mover.
static FlickSystem getInstance()
          Gets the single instance of FlickSystem.
 FlickMover getMovingElement(com.jme.scene.Spatial s)
          Gets the moving element.
 java.util.Queue<FlickMover> getMovingElements()
          Gets the moving elements.
 boolean isFlickable(com.jme.scene.Spatial s)
          Checks if is flickable.
static boolean isNetworkFlickMode()
          Checks if is network flick mode.
 void makeFlickable(com.jme.scene.Spatial s, MultiTouchElement movingElement, float deceleration)
          Make flickable.
 void makeFlickable(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial, MultiTouchElement movingElement, float deceleration)
          Make flickable.
 void makeUnflickable(com.jme.scene.Spatial s)
          Make unflickable.
static void setNetworkFlickMode(boolean networkFlickMode)
          Sets the network flick mode.
 void update(float timePerFrame)
          Update.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFlickMover

public static FlickMover getFlickMover(com.jme.scene.Spatial s)
Gets the flick mover.

Parameters:
s - the s
Returns:
the flick mover

getInstance

public static FlickSystem getInstance()
Gets the single instance of FlickSystem.

Returns:
single instance of FlickSystem

isNetworkFlickMode

public static boolean isNetworkFlickMode()
Checks if is network flick mode.

Returns:
the networkFlickMode

setNetworkFlickMode

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

Parameters:
networkFlickMode - the networkFlickMode to set

flick

public void flick(com.jme.scene.Spatial s,
                  com.jme.math.Vector3f linearVelocity,
                  float deceleration)
Flick.

Parameters:
s - the s
linearVelocity - the linear velocity
deceleration - the deceleration

getMovingElement

public FlickMover getMovingElement(com.jme.scene.Spatial s)
Gets the moving element.

Parameters:
s - the s
Returns:
the moving element

getMovingElements

public java.util.Queue<FlickMover> getMovingElements()
Gets the moving elements.

Returns:
the moving elements

isFlickable

public boolean isFlickable(com.jme.scene.Spatial s)
Checks if is flickable.

Parameters:
s - the s
Returns:
true, if is flickable

makeFlickable

public void makeFlickable(com.jme.scene.Spatial s,
                          MultiTouchElement movingElement,
                          float deceleration)
Make flickable.

Parameters:
s - the s
movingElement - the moving element
deceleration - the deceleration

makeFlickable

public void makeFlickable(com.jme.scene.Spatial pickingSpatial,
                          com.jme.scene.Spatial targetSpatial,
                          MultiTouchElement movingElement,
                          float deceleration)
Make flickable.

Parameters:
pickingSpatial - the picking spatial
targetSpatial - the target spatial
movingElement - the moving element
deceleration - the deceleration

makeUnflickable

public void makeUnflickable(com.jme.scene.Spatial s)
Make unflickable.

Parameters:
s - the s

update

public void update(float timePerFrame)
Description copied from interface: Updateable
Update.

Specified by:
update in interface Updateable
Parameters:
timePerFrame - the time per frame