synergynetframework.appsystem.contentsystem.items
Class OrthoContainer

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

public class OrthoContainer
extends OrthoContentItem
implements IOrthoContainerImplementation

The Class OrthoContainer.

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
OrthoContainer(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new ortho container.
 
Method Summary
 void addSubItem(ContentItem contentItem)
          Adds the sub item.
 boolean contains(ContentItem contentItem)
          Contains.
 void detachSubItem(ContentItem contentItem)
          Detach sub item.
 java.util.List<ContentItem> getAllItemsIncludeSystemItems()
          Gets the all items include system items.
 com.jme.scene.Node getNode()
          Gets the node.
 void removeSubItem(ContentItem contentItem)
          Removes the sub item.
 void removeSubItem(ContentItem contentItem, boolean releaseTextures)
          Removes the sub item.
 void setBringToTopable(boolean isEnabled)
          Sets the bring to topable.
 void setRotateTranslateScalable(boolean isEnabled)
          Sets the rotate translate scalable.
 void setScaleLimit(float min, float max)
          Sets the scale limit.
 void setTopItem(ContentItem item)
          Sets the top item.
 void updateOrder(int order)
          Update order.
 
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.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, setFixLocations, setOrder, setRightClickDistance, setRotateTranslateScalable, 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

OrthoContainer

public OrthoContainer(ContentSystem contentSystem,
                      java.lang.String name)
Instantiates a new ortho container.

Parameters:
contentSystem - the content system
name - the name
Method Detail

addSubItem

public void addSubItem(ContentItem contentItem)
Description copied from interface: IOrthoContainerImplementation
Adds the sub item.

Specified by:
addSubItem in interface IOrthoContainerImplementation
Parameters:
contentItem - the content item

contains

public boolean contains(ContentItem contentItem)
Contains.

Parameters:
contentItem - the content item
Returns:
true, if successful

detachSubItem

public void detachSubItem(ContentItem contentItem)
Description copied from interface: IOrthoContainerImplementation
Detach sub item.

Specified by:
detachSubItem in interface IOrthoContainerImplementation
Parameters:
contentItem - the content item

getAllItemsIncludeSystemItems

public java.util.List<ContentItem> getAllItemsIncludeSystemItems()
Gets the all items include system items.

Returns:
the all items include system items

getNode

public com.jme.scene.Node getNode()
Description copied from interface: IOrthoContainerImplementation
Gets the node.

Specified by:
getNode in interface IOrthoContainerImplementation
Returns:
the node

removeSubItem

public void removeSubItem(ContentItem contentItem)
Description copied from interface: IOrthoContainerImplementation
Removes the sub item.

Specified by:
removeSubItem in interface IOrthoContainerImplementation
Parameters:
contentItem - the content item

removeSubItem

public void removeSubItem(ContentItem contentItem,
                          boolean releaseTextures)
Removes the sub item.

Parameters:
contentItem - the content item
releaseTextures - the release textures

setBringToTopable

public void setBringToTopable(boolean isEnabled)
Description copied from interface: IOrthoContentItemImplementation
Sets the bring to topable.

Specified by:
setBringToTopable in interface IOrthoContentItemImplementation
Overrides:
setBringToTopable in class OrthoContentItem
Parameters:
isEnabled - the new bring to topable

setRotateTranslateScalable

public void setRotateTranslateScalable(boolean isEnabled)
Description copied from interface: IOrthoContentItemImplementation
Sets the rotate translate scalable.

Specified by:
setRotateTranslateScalable in interface IOrthoContentItemImplementation
Overrides:
setRotateTranslateScalable in class OrthoContentItem
Parameters:
isEnabled - the new rotate translate scalable

setScaleLimit

public void setScaleLimit(float min,
                          float max)
Description copied from interface: IOrthoContentItemImplementation
Sets the scale limit.

Specified by:
setScaleLimit in interface IOrthoContentItemImplementation
Overrides:
setScaleLimit in class OrthoContentItem
Parameters:
min - the min
max - the max

setTopItem

public void setTopItem(ContentItem item)
Sets the top item.

Parameters:
item - the new top item

updateOrder

public void updateOrder(int order)
Description copied from interface: IOrthoContainerImplementation
Update order.

Specified by:
updateOrder in interface IOrthoContainerImplementation
Parameters:
order - the order