synergynetframework.appsystem.contentsystem.items
Class ControlBar

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.ContentItem
      extended by synergynetframework.appsystem.contentsystem.items.OrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.items.OrthoContainer
              extended by synergynetframework.appsystem.contentsystem.items.ControlBar
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<OrthoContentItem>, IContentItemImplementation, IControlBarImplementation, IOrthoContainerImplementation, IOrthoContentItemImplementation, BringToTopListener, ItemListener, OrthoControlPointRotateTranslateScaleListener, OrthoFlickListener, OrthoScaleMotionListener, OrthoSnapListener, OrthoSpinListener

public class ControlBar
extends OrthoContainer
implements java.io.Serializable, IControlBarImplementation

The Class ControlBar.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
ControlBar(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new control bar.
 
Method Summary
 void addControlBarMoverListener(ControlBarMover.ControlBarMoverListener l)
          Adds the control bar mover listener.
 java.net.URL getBarImageResource()
          Gets the bar image resource.
 float getControlBarLength()
          Gets the control bar length.
 float getControlBarWidth()
          Gets the control bar width.
 float getCurrentPosition()
          Gets the current position.
 java.net.URL getCursorImageResource()
          Gets the cursor image resource.
 java.net.URL getFinishedBarImageResource()
          Gets the finished bar image resource.
 boolean isControlBarMoverEnabled()
          Checks if is control bar mover enabled.
 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.items.OrthoContainer
addSubItem, contains, detachSubItem, getAllItemsIncludeSystemItems, getNode, removeSubItem, removeSubItem, setBringToTopable, setRotateTranslateScalable, setScaleLimit, setTopItem, updateOrder
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, bindImplementationOjbect, centerItem, clone, compareTo, cursorChanged, cursorClicked, cursorDoubleClicked, cursorLongHeld, cursorPressed, cursorReleased, cursorRightClicked, enableMultiTouchElementListeners, fireCursorChanged, fireCursorClicked, fireCursorDoubleClicked, fireCursorLongHeld, fireCursorPressed, fireCursorReleased, fireCursorRightClicked, fireScreenCursorChanged, fireScreenCursorClicked, fireScreenCursorPressed, fireScreenCursorReleased, flick, getBringToTopListeners, getFlickDeceleration, getFlickListeners, getItemListeners, getLocation, getMaxScale, getMinScale, getOrder, getOrthoControlPointRotateTranslateScaleListeners, getOrthoSnapListeners, getParent, getScaleMotionDeceleration, getScaleMotionListeners, getSpinListeners, isBringToTopEnabled, isFlickable, isRotateTranslateScaleEnabled, isSingleTouchRotateTranslate, isSnapEnabled, itemBringToToped, itemFlicked, itemRotated, itemScaled, itemScaleMotioned, itemSnapped, itemSpun, itemTranslated, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeBringToTopListeners, removeFlickListeners, removeFlickListeners, removeItemListerner, removeItemListerners, removeOrthoControlPointRotateTranslateScaleListeners, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopListeners, setFixLocations, setFlickListeners, setItemListeners, setLocation, setLocation, setName, setOrder, setOrthoControlPointRotateTranslateScaleListeners, setOrthoSnapListeners, setRightClickDistance, setRotateTranslateScalable, setScaleMotionListeners, setSingleTouchRotateTranslate, setSnapable, setSpinListeners, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
addMultitouchListener, canManipulate, contains, generateUniqueName, getAngle, getBackGround, getBackgroundColour, getBorder, getBorderColour, getBorderSize, getContentSystem, getId, getImplementationObject, getLocalLocation, getName, getNote, getResource, getScale, hasCollision, init, initImplementationObjet, isBoundaryEnabled, isVisible, setAngle, setBackGround, setBackgroundColour, setBorder, setBorderColour, setBorderSize, setBoundaryEnabled, setContentSystem, setId, setLocalLocation, setLocalLocation, setLocalLocation, setManipulate, setNote, setResource, setScale, setScale, setVisible, setVisible, update, update
 
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, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update
 

Constructor Detail

ControlBar

public ControlBar(ContentSystem contentSystem,
                  java.lang.String name)
Instantiates a new control bar.

Parameters:
contentSystem - the content system
name - the name
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

getBarImageResource

public java.net.URL getBarImageResource()
Gets the bar image resource.

Returns:
the bar image resource

getControlBarLength

public float getControlBarLength()
Gets the control bar length.

Returns:
the control bar length

getControlBarWidth

public float getControlBarWidth()
Gets the control bar width.

Returns:
the control bar width

getCurrentPosition

public float getCurrentPosition()
Gets the current position.

Returns:
the current position

getCursorImageResource

public java.net.URL getCursorImageResource()
Gets the cursor image resource.

Returns:
the cursor image resource

getFinishedBarImageResource

public java.net.URL getFinishedBarImageResource()
Gets the finished bar image resource.

Returns:
the finished bar image resource

isControlBarMoverEnabled

public boolean isControlBarMoverEnabled()
Checks if is control bar mover enabled.

Returns:
true, if is control bar mover enabled

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