apps.projectmanagement.gesture
Class ScrollBarControl

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
          extended by synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
              extended by apps.projectmanagement.gesture.ScrollBarControl

public class ScrollBarControl
extends OrthoControlPointRotateTranslateScale

The Class ScrollBarControl.


Nested Class Summary
static interface ScrollBarControl.ScrollBarListener
          The listener interface for receiving scrollBar events.
 
Nested classes/interfaces inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
 
Field Summary
 com.jme.scene.Spatial parentSpatial
          The parent spatial.
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
ScrollBarControl(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial, int length, int barLength, int contentLength, int orgin, ScrollBar.Direction direction)
          Instantiates a new scroll bar control.
 
Method Summary
 void addScrollBarListener(ScrollBarControl.ScrollBarListener l)
          Adds the scroll bar listener.
 void removeScrollBarListener(ScrollBarControl.ScrollBarListener l)
          Removes the scroll bar listener.
 
Methods inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
addRotateTranslateScaleListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, cursorChanged, cursorClicked, cursorPressed, cursorReleased, getScaleMax, getScaleMin, removeRotateTranslateScaleListener, setRotateLimits, setScaleLimits
 
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
 

Field Detail

parentSpatial

public com.jme.scene.Spatial parentSpatial
The parent spatial.

Constructor Detail

ScrollBarControl

public ScrollBarControl(com.jme.scene.Spatial pickingSpatial,
                        com.jme.scene.Spatial targetSpatial,
                        int length,
                        int barLength,
                        int contentLength,
                        int orgin,
                        ScrollBar.Direction direction)
Instantiates a new scroll bar control.

Parameters:
pickingSpatial - the picking spatial
targetSpatial - the target spatial
length - the length
barLength - the bar length
contentLength - the content length
orgin - the orgin
direction - the direction
Method Detail

addScrollBarListener

public void addScrollBarListener(ScrollBarControl.ScrollBarListener l)
Adds the scroll bar listener.

Parameters:
l - the l

removeScrollBarListener

public void removeScrollBarListener(ScrollBarControl.ScrollBarListener l)
Removes the scroll bar listener.

Parameters:
l - the l