synergynetframework.appsystem.contentsystem.jme.items
Class JMEControlBar

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
      extended by synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContainer
              extended by synergynetframework.appsystem.contentsystem.jme.items.JMEControlBar
All Implemented Interfaces:
IContentItemImplementation, IControlBarImplementation, IOrthoContainerImplementation, IOrthoContentItemImplementation, ScreenCursorListener, ControlBarMover.ControlBarMoverListener, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener

public class JMEControlBar
extends JMEOrthoContainer
implements IControlBarImplementation, ControlBarMover.ControlBarMoverListener

The Class JMEControlBar.


Constructor Summary
JMEControlBar(ContentItem contentItem)
          Instantiates a new JME control bar.
 
Method Summary
 void addControlBarMoverListener(ControlBarMover.ControlBarMoverListener l)
          Adds the control bar mover listener.
 void controlBarChanged(float oldPosition, float newPosition)
          Control bar changed.
 void cursorPressed()
          Cursor pressed.
 void cursorReleased()
          Cursor released.
 void init()
          Inits the.
 void render()
          Render.
 void setBarImageResource(java.net.URL imageResource)
          Sets the bar image resource.
 void setControlBarLength(float controlBarLength)
          Sets the control bar length.
 void setControlBarMoverEnabled(boolean controlBarMoverEnabled)
          Sets the control bar mover enabled.
 void setControlBarWidth(float controlBarWidth)
          Sets the control bar width.
 void setCurrentPosition(float currentPosition)
          Sets the current position.
 void setCursorImageResource(java.net.URL imageResource)
          Sets the cursor image resource.
 void setFinishedBarImageResource(java.net.URL imageResource)
          Sets the finished bar image resource.
 void updateControlBar()
          Update control bar.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContainer
addSubItem, detachSubItem, getNode, removeSubItem, setBackGround, setBorder, updateOrder
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addMultitouchListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, cursorChanged, cursorClicked, cursorPressed, cursorReleased, cursorRightClicked, flick, getMaxScale, getMinScale, isFlickable, ItemBringToTop, itemFlicked, itemMoved, itemRotated, itemScaled, itemSnapped, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, screenCursorChanged, screenCursorClicked, screenCursorPressed, screenCursorReleased, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setLocalLocation, setName, setOrder, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher, update, update
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
contains, getImplementationObject, getLocalLocation, hasCollision, setAngle, setBoundaryEnabled, setId, setLocation, setManipulate, setScale, setScale, setVisible, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IOrthoContainerImplementation
addSubItem, detachSubItem, getNode, removeSubItem, updateOrder
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IOrthoContentItemImplementation
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, flick, getMaxScale, getMinScale, isFlickable, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setOrder, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IContentItemImplementation
addMultitouchListener, contains, getImplementationObject, hasCollision, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update
 

Constructor Detail

JMEControlBar

public JMEControlBar(ContentItem contentItem)
Instantiates a new JME control bar.

Parameters:
contentItem - the content item
Method Detail

addControlBarMoverListener

public void addControlBarMoverListener(ControlBarMover.ControlBarMoverListener l)
Description copied from interface: IControlBarImplementation
Adds the control bar mover listener.

Specified by:
addControlBarMoverListener in interface IControlBarImplementation
Parameters:
l - the l

controlBarChanged

public void controlBarChanged(float oldPosition,
                              float newPosition)
Description copied from interface: ControlBarMover.ControlBarMoverListener
Control bar changed.

Specified by:
controlBarChanged in interface ControlBarMover.ControlBarMoverListener
Parameters:
oldPosition - the old position
newPosition - the new position

cursorPressed

public void cursorPressed()
Description copied from interface: ControlBarMover.ControlBarMoverListener
Cursor pressed.

Specified by:
cursorPressed in interface ControlBarMover.ControlBarMoverListener

cursorReleased

public void cursorReleased()
Description copied from interface: ControlBarMover.ControlBarMoverListener
Cursor released.

Specified by:
cursorReleased in interface ControlBarMover.ControlBarMoverListener

init

public void init()
Description copied from interface: IContentItemImplementation
Inits the.

Specified by:
init in interface IContentItemImplementation
Overrides:
init in class JMEContentItem

render

public void render()
Render.


setBarImageResource

public void setBarImageResource(java.net.URL imageResource)
Description copied from interface: IControlBarImplementation
Sets the bar image resource.

Specified by:
setBarImageResource in interface IControlBarImplementation
Parameters:
imageResource - the new bar image resource

setControlBarLength

public void setControlBarLength(float controlBarLength)
Description copied from interface: IControlBarImplementation
Sets the control bar length.

Specified by:
setControlBarLength in interface IControlBarImplementation
Parameters:
controlBarLength - the new control bar length

setControlBarMoverEnabled

public void setControlBarMoverEnabled(boolean controlBarMoverEnabled)
Description copied from interface: IControlBarImplementation
Sets the control bar mover enabled.

Specified by:
setControlBarMoverEnabled in interface IControlBarImplementation
Parameters:
controlBarMoverEnabled - the new control bar mover enabled

setControlBarWidth

public void setControlBarWidth(float controlBarWidth)
Description copied from interface: IControlBarImplementation
Sets the control bar width.

Specified by:
setControlBarWidth in interface IControlBarImplementation
Parameters:
controlBarWidth - the new control bar width

setCurrentPosition

public void setCurrentPosition(float currentPosition)
Description copied from interface: IControlBarImplementation
Sets the current position.

Specified by:
setCurrentPosition in interface IControlBarImplementation
Parameters:
currentPosition - the new current position

setCursorImageResource

public void setCursorImageResource(java.net.URL imageResource)
Description copied from interface: IControlBarImplementation
Sets the cursor image resource.

Specified by:
setCursorImageResource in interface IControlBarImplementation
Parameters:
imageResource - the new cursor image resource

setFinishedBarImageResource

public void setFinishedBarImageResource(java.net.URL imageResource)
Description copied from interface: IControlBarImplementation
Sets the finished bar image resource.

Specified by:
setFinishedBarImageResource in interface IControlBarImplementation
Parameters:
imageResource - the new finished bar image resource

updateControlBar

public void updateControlBar()
Description copied from interface: IControlBarImplementation
Update control bar.

Specified by:
updateControlBar in interface IControlBarImplementation