synergynetframework.appsystem.contentsystem.jme.items.utils.controlbar
Class ControlBarMover

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
          extended by synergynetframework.appsystem.contentsystem.jme.items.utils.controlbar.ControlBarMover

public class ControlBarMover
extends TwoDMultiTouchElement

The Class ControlBarMover.


Nested Class Summary
static interface ControlBarMover.ControlBarMoverListener
          The listener interface for receiving controlBarMover events.
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
ControlBarMover(com.jme.scene.Spatial pickingAndTargetSpatial)
          Instantiates a new control bar mover.
ControlBarMover(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new control bar mover.
 
Method Summary
 void addControlBarMoverListener(ControlBarMover.ControlBarMoverListener l)
          Adds the control bar mover 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 getBarLength()
          Gets the bar length.
 boolean isEnabled()
          Checks if is enabled.
 void removeControlBarMoverListener(ControlBarMover.ControlBarMoverListener l)
          Removes the control bar mover listener.
 void setBarLength(float barLength)
          Sets the bar length.
 void setEnabled(boolean enabled)
          Sets the enabled.
 
Methods inherited from class synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
getCursorScreenPositionAtPick, getPickDataForCursorID, getPickResultFromCursorIndex, getSpatial2DWorldPositionAtPick, 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

ControlBarMover

public ControlBarMover(com.jme.scene.Spatial pickingAndTargetSpatial)
Instantiates a new control bar mover.

Parameters:
pickingAndTargetSpatial - the picking and target spatial

ControlBarMover

public ControlBarMover(com.jme.scene.Spatial pickingSpatial,
                       com.jme.scene.Spatial targetSpatial)
Instantiates a new control bar mover.

Parameters:
pickingSpatial - the picking spatial
targetSpatial - the target spatial
Method Detail

addControlBarMoverListener

public void addControlBarMoverListener(ControlBarMover.ControlBarMoverListener l)
Adds the control bar mover listener.

Parameters:
l - the l

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

getBarLength

public float getBarLength()
Gets the bar length.

Returns:
the bar length

isEnabled

public boolean isEnabled()
Checks if is enabled.

Returns:
true, if is enabled

removeControlBarMoverListener

public void removeControlBarMoverListener(ControlBarMover.ControlBarMoverListener l)
Removes the control bar mover listener.

Parameters:
l - the l

setBarLength

public void setBarLength(float barLength)
Sets the bar length.

Parameters:
barLength - the new bar length

setEnabled

public void setEnabled(boolean enabled)
Sets the enabled.

Parameters:
enabled - the new enabled