synergynetframework.appsystem.contentsystem.items
Class OrthoContentItem

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

public class OrthoContentItem
extends ContentItem
implements IOrthoContentItemImplementation, java.lang.Cloneable, java.io.Serializable, java.lang.Comparable<OrthoContentItem>, ItemListener, OrthoControlPointRotateTranslateScaleListener, BringToTopListener, OrthoSnapListener, OrthoFlickListener, OrthoSpinListener, OrthoScaleMotionListener

The Class OrthoContentItem.

See Also:
Serialized Form

Field Summary
 boolean removable
          The removable.
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
OrthoContentItem(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new ortho content item.
 
Method Summary
 void addBringToTopListener(BringToTopListener l)
          Adds the bring to top listener.
 void addFlickListener(OrthoFlickListener l)
          Adds the flick listener.
 void addItemListener(ItemListener itemListener)
          Adds the item listener.
 void addOrthoControlPointRotateTranslateScaleListener(OrthoControlPointRotateTranslateScaleListener l)
          Adds the ortho control point rotate translate scale listener.
 void addScreenCursorListener(ScreenCursorListener l)
          Adds the screen cursor listener.
 void addSnapListener(OrthoSnapListener l)
          Adds the snap listener.
 void allowMoreThanTwoToRotateAndScale(boolean b)
          Allow more than two to rotate and scale.
 void allowSingleTouchFreeMove(boolean b)
          Allow single touch free move.
 void allowSnapToOccupiedLocation(boolean allowSnapToOccupiedLocation)
          Allow snap to occupied location.
 void bindImplementationOjbect()
          Bind implementation ojbect.
 void centerItem()
          Center item.
 java.lang.Object clone()
           
 int compareTo(OrthoContentItem arg0)
           
 void cursorChanged(ContentItem item, long id, float x, float y, float pressure)
          Cursor changed.
 void cursorClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor clicked.
 void cursorDoubleClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor double clicked.
 void cursorLongHeld(ContentItem item, long id, float x, float y, float pressure)
          Cursor long held.
 void cursorPressed(ContentItem item, long id, float x, float y, float pressure)
          Cursor pressed.
 void cursorReleased(ContentItem item, long id, float x, float y, float pressure)
          Cursor released.
 void cursorRightClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor right clicked.
 void enableMultiTouchElementListeners()
          Enable multi touch element listeners.
 void fireCursorChanged(long id, float x, float y, float pressure)
          Fire cursor changed.
 void fireCursorClicked(long id, float x, float y, float pressure)
          Fire cursor clicked.
 void fireCursorDoubleClicked(long id, float x, float y, float pressure)
          Fire cursor double clicked.
 void fireCursorLongHeld(long id, float x, float y, float pressure)
          Fire cursor long held.
 void fireCursorPressed(long id, float x, float y, float pressure)
          Fire cursor pressed.
 void fireCursorReleased(long id, float x, float y, float pressure)
          Fire cursor released.
 void fireCursorRightClicked(long id, float x, float y, float pressure)
          Fire cursor right clicked.
 void fireScreenCursorChanged(long id, float x, float y, float pressure)
          Fire screen cursor changed.
 void fireScreenCursorClicked(long id, float x, float y, float pressure)
          Fire screen cursor clicked.
 void fireScreenCursorPressed(long id, float x, float y, float pressure)
          Fire screen cursor pressed.
 void fireScreenCursorReleased(long id, float x, float y, float pressure)
          Fire screen cursor released.
 void flick(float velocityX, float velocityY, float deceleration)
          Flick.
 java.util.List<BringToTopListener> getBringToTopListeners()
          Gets the bring to top listeners.
 float getFlickDeceleration()
          Gets the flick deceleration.
 java.util.List<OrthoFlickListener> getFlickListeners()
          Gets the flick listeners.
 java.util.List<ItemListener> getItemListeners()
          Gets the item listeners.
 Location getLocation()
          Gets the location.
 float getMaxScale()
          Gets the max scale.
 float getMinScale()
          Gets the min scale.
 int getOrder()
          Gets the order.
 java.util.List<OrthoControlPointRotateTranslateScaleListener> getOrthoControlPointRotateTranslateScaleListeners()
          Gets the ortho control point rotate translate scale listeners.
 java.util.List<OrthoSnapListener> getOrthoSnapListeners()
          Gets the ortho snap listeners.
 OrthoContainer getParent()
          Gets the parent.
 float getScaleMotionDeceleration()
          Gets the scale motion deceleration.
 java.util.List<OrthoScaleMotionListener> getScaleMotionListeners()
          Gets the scale motion listeners.
 java.util.List<OrthoSpinListener> getSpinListeners()
          Gets the spin listeners.
 boolean isBringToTopEnabled()
          Checks if is bring to top enabled.
 boolean isFlickable()
          Checks if is flickable.
 boolean isRotateTranslateScaleEnabled()
          Checks if is rotate translate scale enabled.
 boolean isSingleTouchRotateTranslate()
          Checks if is single touch rotate translate.
 boolean isSnapEnabled()
          Checks if is snap enabled.
 void itemBringToToped(ContentItem item)
          Item bring to toped.
 void itemFlicked(ContentItem item, float x, float y)
          Item flicked.
 void itemRotated(ContentItem item, float newAngle, float oldAngle)
          Item rotated.
 void itemScaled(ContentItem item, float newScaleFactor, float oldScaleFactor)
          Item scaled.
 void itemScaleMotioned(ContentItem item, float scale)
          Item scale motioned.
 void itemSnapped(ContentItem item, FixLocationStatus fixLocationStatus)
          Item snapped.
 void itemSpun(ContentItem item, float rot)
          Item spun.
 void itemTranslated(ContentItem item, float newLocationX, float newLocationY, float oldLocationX, float oldLocationY)
          Item translated.
 void makeFlickable(float deceleration)
          Make flickable.
 void makeUnflickable()
          Make unflickable.
 void placeRandom()
          Place random.
 void removeBringToTopListeners()
          Removes the bring to top listeners.
 void removeBringToTopListeners(BringToTopListener l)
          Removes the bring to top listeners.
 void removeFlickListeners()
          Removes the flick listeners.
 void removeFlickListeners(OrthoFlickListener l)
          Removes the flick listeners.
 void removeItemListerner(ItemListener itemListener)
          Removes the item listerner.
 void removeItemListerners()
          Removes the item listerners.
 void removeOrthoControlPointRotateTranslateScaleListeners()
          Removes the ortho control point rotate translate scale listeners.
 void removeOrthoControlPointRotateTranslateScaleListeners(OrthoControlPointRotateTranslateScaleListener l)
          Removes the ortho control point rotate translate scale listeners.
 void removeScreenCursorListeners()
          Removes the screen cursor listeners.
 void removeSnapListeners()
          Removes the snap listeners.
 void removeSnapListeners(OrthoSnapListener l)
          Removes the snap listeners.
 void reset()
          Reset.
 void rotateRandom()
          Rotate random.
 void setAsBottomObject()
          Sets the as bottom object.
 void setAsTopObject()
          Sets the as top object.
 void setAsTopObjectAndBroadCastEvent()
          Sets the as top object and broad cast event.
 void setBringToTopable(boolean isEnabled)
          Sets the bring to topable.
 void setBringToTopListeners(java.util.List<BringToTopListener> bringToTopListeners)
          Sets the bring to top listeners.
 void setFixLocations(java.util.List<FixLocationStatus> fixLocations)
          Sets the fix locations.
 void setFlickListeners(java.util.List<OrthoFlickListener> flickListeners)
          Sets the flick listeners.
 void setItemListeners(java.util.List<ItemListener> itemListeners)
          Sets the item listeners.
 void setLocation(float x, float y)
          Sets the location.
 void setLocation(Location location)
          Sets the location.
 void setName(java.lang.String name)
          Sets the name.
 void setOrder(int zOrder)
          Sets the order.
 void setOrthoControlPointRotateTranslateScaleListeners(java.util.List<OrthoControlPointRotateTranslateScaleListener> orthoControlPointRotateTranslateScaleListeners)
          Sets the ortho control point rotate translate scale listeners.
 void setOrthoSnapListeners(java.util.List<OrthoSnapListener> orthoSnapListeners)
          Sets the ortho snap listeners.
 void setRightClickDistance(float distance)
          Sets the right click distance.
 void setRotateTranslateScalable(boolean isEnabled)
          Sets the rotate translate scalable.
 void setRotateTranslateScalable(boolean isEnabled, boolean attachToParent, ContentItem targetItem)
          Sets the rotate translate scalable.
 void setScaleLimit(float min, float max)
          Sets the scale limit.
 void setScaleMotionListeners(java.util.List<OrthoScaleMotionListener> scaleMotionListeners)
          Sets the scale motion listeners.
 void setSingleTouchRotateTranslate(boolean isEnabled)
          Sets the single touch rotate translate.
 void setSnapable(boolean snapable)
          Sets the snapable.
 void setSpinListeners(java.util.List<OrthoSpinListener> spinListeners)
          Sets the spin listeners.
 void setTolerance(float tolerance)
          Sets the tolerance.
 void setZRotateLimit(float min, float max)
          Sets the z rotate limit.
 void turnOffEventDispatcher()
          Turn off event dispatcher.
 
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.IContentItemImplementation
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setManipulate, setScale, setScale, setVisible, setVisible, update, update
 

Field Detail

removable

public boolean removable
The removable.

Constructor Detail

OrthoContentItem

public OrthoContentItem(ContentSystem contentSystem,
                        java.lang.String name)
Instantiates a new ortho content item.

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

addBringToTopListener

public void addBringToTopListener(BringToTopListener l)
Description copied from interface: IOrthoContentItemImplementation
Adds the bring to top listener.

Specified by:
addBringToTopListener in interface IOrthoContentItemImplementation
Parameters:
l - the l

addFlickListener

public void addFlickListener(OrthoFlickListener l)
Description copied from interface: IOrthoContentItemImplementation
Adds the flick listener.

Specified by:
addFlickListener in interface IOrthoContentItemImplementation
Parameters:
l - the l

addItemListener

public void addItemListener(ItemListener itemListener)
Description copied from interface: IOrthoContentItemImplementation
Adds the item listener.

Specified by:
addItemListener in interface IOrthoContentItemImplementation
Parameters:
itemListener - the item listener

addOrthoControlPointRotateTranslateScaleListener

public void addOrthoControlPointRotateTranslateScaleListener(OrthoControlPointRotateTranslateScaleListener l)
Description copied from interface: IOrthoContentItemImplementation
Adds the ortho control point rotate translate scale listener.

Specified by:
addOrthoControlPointRotateTranslateScaleListener in interface IOrthoContentItemImplementation
Parameters:
l - the l

addScreenCursorListener

public void addScreenCursorListener(ScreenCursorListener l)
Description copied from interface: IOrthoContentItemImplementation
Adds the screen cursor listener.

Specified by:
addScreenCursorListener in interface IOrthoContentItemImplementation
Parameters:
l - the l

addSnapListener

public void addSnapListener(OrthoSnapListener l)
Description copied from interface: IOrthoContentItemImplementation
Adds the snap listener.

Specified by:
addSnapListener in interface IOrthoContentItemImplementation
Parameters:
l - the l

allowMoreThanTwoToRotateAndScale

public void allowMoreThanTwoToRotateAndScale(boolean b)
Description copied from interface: IOrthoContentItemImplementation
Allow more than two to rotate and scale.

Specified by:
allowMoreThanTwoToRotateAndScale in interface IOrthoContentItemImplementation
Parameters:
b - the b

allowSingleTouchFreeMove

public void allowSingleTouchFreeMove(boolean b)
Description copied from interface: IOrthoContentItemImplementation
Allow single touch free move.

Specified by:
allowSingleTouchFreeMove in interface IOrthoContentItemImplementation
Parameters:
b - the b

allowSnapToOccupiedLocation

public void allowSnapToOccupiedLocation(boolean allowSnapToOccupiedLocation)
Description copied from interface: IOrthoContentItemImplementation
Allow snap to occupied location.

Specified by:
allowSnapToOccupiedLocation in interface IOrthoContentItemImplementation
Parameters:
allowSnapToOccupiedLocation - the allow snap to occupied location

bindImplementationOjbect

public void bindImplementationOjbect()
Description copied from class: ContentItem
Bind implementation ojbect.

Overrides:
bindImplementationOjbect in class ContentItem

centerItem

public void centerItem()
Description copied from interface: IOrthoContentItemImplementation
Center item.

Specified by:
centerItem in interface IOrthoContentItemImplementation

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class ContentItem
Throws:
java.lang.CloneNotSupportedException

compareTo

public int compareTo(OrthoContentItem arg0)
Specified by:
compareTo in interface java.lang.Comparable<OrthoContentItem>

cursorChanged

public void cursorChanged(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor changed.

Specified by:
cursorChanged in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorClicked

public void cursorClicked(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor clicked.

Specified by:
cursorClicked in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorDoubleClicked

public void cursorDoubleClicked(ContentItem item,
                                long id,
                                float x,
                                float y,
                                float pressure)
Description copied from interface: ItemListener
Cursor double clicked.

Specified by:
cursorDoubleClicked in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorLongHeld

public void cursorLongHeld(ContentItem item,
                           long id,
                           float x,
                           float y,
                           float pressure)
Description copied from interface: ItemListener
Cursor long held.

Specified by:
cursorLongHeld in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorPressed

public void cursorPressed(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor pressed.

Specified by:
cursorPressed in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorReleased

public void cursorReleased(ContentItem item,
                           long id,
                           float x,
                           float y,
                           float pressure)
Description copied from interface: ItemListener
Cursor released.

Specified by:
cursorReleased in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorRightClicked

public void cursorRightClicked(ContentItem item,
                               long id,
                               float x,
                               float y,
                               float pressure)
Description copied from interface: ItemListener
Cursor right clicked.

Specified by:
cursorRightClicked in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

enableMultiTouchElementListeners

public void enableMultiTouchElementListeners()
Enable multi touch element listeners.


fireCursorChanged

public void fireCursorChanged(long id,
                              float x,
                              float y,
                              float pressure)
Fire cursor changed.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorClicked

public void fireCursorClicked(long id,
                              float x,
                              float y,
                              float pressure)
Fire cursor clicked.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorDoubleClicked

public void fireCursorDoubleClicked(long id,
                                    float x,
                                    float y,
                                    float pressure)
Fire cursor double clicked.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorLongHeld

public void fireCursorLongHeld(long id,
                               float x,
                               float y,
                               float pressure)
Fire cursor long held.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorPressed

public void fireCursorPressed(long id,
                              float x,
                              float y,
                              float pressure)
Fire cursor pressed.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorReleased

public void fireCursorReleased(long id,
                               float x,
                               float y,
                               float pressure)
Fire cursor released.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireCursorRightClicked

public void fireCursorRightClicked(long id,
                                   float x,
                                   float y,
                                   float pressure)
Fire cursor right clicked.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireScreenCursorChanged

public void fireScreenCursorChanged(long id,
                                    float x,
                                    float y,
                                    float pressure)
Fire screen cursor changed.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireScreenCursorClicked

public void fireScreenCursorClicked(long id,
                                    float x,
                                    float y,
                                    float pressure)
Fire screen cursor clicked.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireScreenCursorPressed

public void fireScreenCursorPressed(long id,
                                    float x,
                                    float y,
                                    float pressure)
Fire screen cursor pressed.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

fireScreenCursorReleased

public void fireScreenCursorReleased(long id,
                                     float x,
                                     float y,
                                     float pressure)
Fire screen cursor released.

Parameters:
id - the id
x - the x
y - the y
pressure - the pressure

flick

public void flick(float velocityX,
                  float velocityY,
                  float deceleration)
Description copied from interface: IOrthoContentItemImplementation
Flick.

Specified by:
flick in interface IOrthoContentItemImplementation
Parameters:
velocityX - the velocity x
velocityY - the velocity y
deceleration - the deceleration

getBringToTopListeners

public java.util.List<BringToTopListener> getBringToTopListeners()
Gets the bring to top listeners.

Returns:
the bring to top listeners

getFlickDeceleration

public float getFlickDeceleration()
Gets the flick deceleration.

Returns:
the flick deceleration

getFlickListeners

public java.util.List<OrthoFlickListener> getFlickListeners()
Gets the flick listeners.

Returns:
the flick listeners

getItemListeners

public java.util.List<ItemListener> getItemListeners()
Gets the item listeners.

Returns:
the item listeners

getLocation

public Location getLocation()
Gets the location.

Returns:
the location

getMaxScale

public float getMaxScale()
Description copied from interface: IOrthoContentItemImplementation
Gets the max scale.

Specified by:
getMaxScale in interface IOrthoContentItemImplementation
Returns:
the max scale

getMinScale

public float getMinScale()
Description copied from interface: IOrthoContentItemImplementation
Gets the min scale.

Specified by:
getMinScale in interface IOrthoContentItemImplementation
Returns:
the min scale

getOrder

public int getOrder()
Gets the order.

Returns:
the order

getOrthoControlPointRotateTranslateScaleListeners

public java.util.List<OrthoControlPointRotateTranslateScaleListener> getOrthoControlPointRotateTranslateScaleListeners()
Gets the ortho control point rotate translate scale listeners.

Returns:
the ortho control point rotate translate scale listeners

getOrthoSnapListeners

public java.util.List<OrthoSnapListener> getOrthoSnapListeners()
Gets the ortho snap listeners.

Returns:
the ortho snap listeners

getParent

public OrthoContainer getParent()
Gets the parent.

Returns:
the parent

getScaleMotionDeceleration

public float getScaleMotionDeceleration()
Gets the scale motion deceleration.

Returns:
the scale motion deceleration

getScaleMotionListeners

public java.util.List<OrthoScaleMotionListener> getScaleMotionListeners()
Gets the scale motion listeners.

Returns:
the scale motion listeners

getSpinListeners

public java.util.List<OrthoSpinListener> getSpinListeners()
Gets the spin listeners.

Returns:
the spin listeners

isBringToTopEnabled

public boolean isBringToTopEnabled()
Checks if is bring to top enabled.

Returns:
true, if is bring to top enabled

isFlickable

public boolean isFlickable()
Description copied from interface: IOrthoContentItemImplementation
Checks if is flickable.

Specified by:
isFlickable in interface IOrthoContentItemImplementation
Returns:
true, if is flickable

isRotateTranslateScaleEnabled

public boolean isRotateTranslateScaleEnabled()
Checks if is rotate translate scale enabled.

Returns:
true, if is rotate translate scale enabled

isSingleTouchRotateTranslate

public boolean isSingleTouchRotateTranslate()
Checks if is single touch rotate translate.

Returns:
true, if is single touch rotate translate

isSnapEnabled

public boolean isSnapEnabled()
Checks if is snap enabled.

Returns:
true, if is snap enabled

itemBringToToped

public void itemBringToToped(ContentItem item)
Description copied from interface: BringToTopListener
Item bring to toped.

Specified by:
itemBringToToped in interface BringToTopListener
Parameters:
item - the item

itemFlicked

public void itemFlicked(ContentItem item,
                        float x,
                        float y)
Description copied from interface: OrthoFlickListener
Item flicked.

Specified by:
itemFlicked in interface OrthoFlickListener
Parameters:
item - the item
x - the x
y - the y

itemRotated

public void itemRotated(ContentItem item,
                        float newAngle,
                        float oldAngle)
Description copied from interface: OrthoControlPointRotateTranslateScaleListener
Item rotated.

Specified by:
itemRotated in interface OrthoControlPointRotateTranslateScaleListener
Parameters:
item - the item
newAngle - the new angle
oldAngle - the old angle

itemScaled

public void itemScaled(ContentItem item,
                       float newScaleFactor,
                       float oldScaleFactor)
Description copied from interface: OrthoControlPointRotateTranslateScaleListener
Item scaled.

Specified by:
itemScaled in interface OrthoControlPointRotateTranslateScaleListener
Parameters:
item - the item
newScaleFactor - the new scale factor
oldScaleFactor - the old scale factor

itemScaleMotioned

public void itemScaleMotioned(ContentItem item,
                              float scale)
Description copied from interface: OrthoScaleMotionListener
Item scale motioned.

Specified by:
itemScaleMotioned in interface OrthoScaleMotionListener
Parameters:
item - the item
scale - the scale

itemSnapped

public void itemSnapped(ContentItem item,
                        FixLocationStatus fixLocationStatus)
Description copied from interface: OrthoSnapListener
Item snapped.

Specified by:
itemSnapped in interface OrthoSnapListener
Parameters:
item - the item
fixLocationStatus - the fix location status

itemSpun

public void itemSpun(ContentItem item,
                     float rot)
Description copied from interface: OrthoSpinListener
Item spun.

Specified by:
itemSpun in interface OrthoSpinListener
Parameters:
item - the item
rot - the rot

itemTranslated

public void itemTranslated(ContentItem item,
                           float newLocationX,
                           float newLocationY,
                           float oldLocationX,
                           float oldLocationY)
Description copied from interface: OrthoControlPointRotateTranslateScaleListener
Item translated.

Specified by:
itemTranslated in interface OrthoControlPointRotateTranslateScaleListener
Parameters:
item - the item
newLocationX - the new location x
newLocationY - the new location y
oldLocationX - the old location x
oldLocationY - the old location y

makeFlickable

public void makeFlickable(float deceleration)
Description copied from interface: IOrthoContentItemImplementation
Make flickable.

Specified by:
makeFlickable in interface IOrthoContentItemImplementation
Parameters:
deceleration - the deceleration

makeUnflickable

public void makeUnflickable()
Description copied from interface: IOrthoContentItemImplementation
Make unflickable.

Specified by:
makeUnflickable in interface IOrthoContentItemImplementation

placeRandom

public void placeRandom()
Description copied from interface: IOrthoContentItemImplementation
Place random.

Specified by:
placeRandom in interface IOrthoContentItemImplementation

removeBringToTopListeners

public void removeBringToTopListeners()
Removes the bring to top listeners.


removeBringToTopListeners

public void removeBringToTopListeners(BringToTopListener l)
Description copied from interface: IOrthoContentItemImplementation
Removes the bring to top listeners.

Specified by:
removeBringToTopListeners in interface IOrthoContentItemImplementation
Parameters:
l - the l

removeFlickListeners

public void removeFlickListeners()
Removes the flick listeners.


removeFlickListeners

public void removeFlickListeners(OrthoFlickListener l)
Description copied from interface: IOrthoContentItemImplementation
Removes the flick listeners.

Specified by:
removeFlickListeners in interface IOrthoContentItemImplementation
Parameters:
l - the l

removeItemListerner

public void removeItemListerner(ItemListener itemListener)
Description copied from interface: IOrthoContentItemImplementation
Removes the item listerner.

Specified by:
removeItemListerner in interface IOrthoContentItemImplementation
Parameters:
itemListener - the item listener

removeItemListerners

public void removeItemListerners()
Removes the item listerners.


removeOrthoControlPointRotateTranslateScaleListeners

public void removeOrthoControlPointRotateTranslateScaleListeners()
Removes the ortho control point rotate translate scale listeners.


removeOrthoControlPointRotateTranslateScaleListeners

public void removeOrthoControlPointRotateTranslateScaleListeners(OrthoControlPointRotateTranslateScaleListener l)
Description copied from interface: IOrthoContentItemImplementation
Removes the ortho control point rotate translate scale listeners.

Specified by:
removeOrthoControlPointRotateTranslateScaleListeners in interface IOrthoContentItemImplementation
Parameters:
l - the l

removeScreenCursorListeners

public void removeScreenCursorListeners()
Description copied from interface: IOrthoContentItemImplementation
Removes the screen cursor listeners.

Specified by:
removeScreenCursorListeners in interface IOrthoContentItemImplementation

removeSnapListeners

public void removeSnapListeners()
Removes the snap listeners.


removeSnapListeners

public void removeSnapListeners(OrthoSnapListener l)
Description copied from interface: IOrthoContentItemImplementation
Removes the snap listeners.

Specified by:
removeSnapListeners in interface IOrthoContentItemImplementation
Parameters:
l - the l

reset

public void reset()
Description copied from interface: IOrthoContentItemImplementation
Reset.

Specified by:
reset in interface IOrthoContentItemImplementation

rotateRandom

public void rotateRandom()
Description copied from interface: IOrthoContentItemImplementation
Rotate random.

Specified by:
rotateRandom in interface IOrthoContentItemImplementation

setAsBottomObject

public void setAsBottomObject()
Description copied from interface: IOrthoContentItemImplementation
Sets the as bottom object.

Specified by:
setAsBottomObject in interface IOrthoContentItemImplementation

setAsTopObject

public void setAsTopObject()
Description copied from interface: IOrthoContentItemImplementation
Sets the as top object.

Specified by:
setAsTopObject in interface IOrthoContentItemImplementation

setAsTopObjectAndBroadCastEvent

public void setAsTopObjectAndBroadCastEvent()
Description copied from interface: IOrthoContentItemImplementation
Sets the as top object and broad cast event.

Specified by:
setAsTopObjectAndBroadCastEvent in interface IOrthoContentItemImplementation

setBringToTopable

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

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

setBringToTopListeners

public void setBringToTopListeners(java.util.List<BringToTopListener> bringToTopListeners)
Sets the bring to top listeners.

Parameters:
bringToTopListeners - the new bring to top listeners

setFixLocations

public void setFixLocations(java.util.List<FixLocationStatus> fixLocations)
Description copied from interface: IOrthoContentItemImplementation
Sets the fix locations.

Specified by:
setFixLocations in interface IOrthoContentItemImplementation
Parameters:
fixLocations - the new fix locations

setFlickListeners

public void setFlickListeners(java.util.List<OrthoFlickListener> flickListeners)
Sets the flick listeners.

Parameters:
flickListeners - the new flick listeners

setItemListeners

public void setItemListeners(java.util.List<ItemListener> itemListeners)
Sets the item listeners.

Parameters:
itemListeners - the new item listeners

setLocation

public void setLocation(float x,
                        float y)
Sets the location.

Parameters:
x - the x
y - the y

setLocation

public void setLocation(Location location)
Description copied from interface: IContentItemImplementation
Sets the location.

Specified by:
setLocation in interface IContentItemImplementation
Overrides:
setLocation in class ContentItem
Parameters:
location - the new location

setName

public void setName(java.lang.String name)
Description copied from interface: IContentItemImplementation
Sets the name.

Specified by:
setName in interface IContentItemImplementation
Overrides:
setName in class ContentItem
Parameters:
name - the new name

setOrder

public void setOrder(int zOrder)
Description copied from interface: IOrthoContentItemImplementation
Sets the order.

Specified by:
setOrder in interface IOrthoContentItemImplementation
Parameters:
zOrder - the new order

setOrthoControlPointRotateTranslateScaleListeners

public void setOrthoControlPointRotateTranslateScaleListeners(java.util.List<OrthoControlPointRotateTranslateScaleListener> orthoControlPointRotateTranslateScaleListeners)
Sets the ortho control point rotate translate scale listeners.

Parameters:
orthoControlPointRotateTranslateScaleListeners - the new ortho control point rotate translate scale listeners

setOrthoSnapListeners

public void setOrthoSnapListeners(java.util.List<OrthoSnapListener> orthoSnapListeners)
Sets the ortho snap listeners.

Parameters:
orthoSnapListeners - the new ortho snap listeners

setRightClickDistance

public void setRightClickDistance(float distance)
Description copied from interface: IOrthoContentItemImplementation
Sets the right click distance.

Specified by:
setRightClickDistance in interface IOrthoContentItemImplementation
Parameters:
distance - the new right click distance

setRotateTranslateScalable

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

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

setRotateTranslateScalable

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

Specified by:
setRotateTranslateScalable in interface IOrthoContentItemImplementation
Parameters:
isEnabled - the is enabled
attachToParent - the attach to parent
targetItem - the target item

setScaleLimit

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

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

setScaleMotionListeners

public void setScaleMotionListeners(java.util.List<OrthoScaleMotionListener> scaleMotionListeners)
Sets the scale motion listeners.

Parameters:
scaleMotionListeners - the new scale motion listeners

setSingleTouchRotateTranslate

public void setSingleTouchRotateTranslate(boolean isEnabled)
                                   throws java.lang.Exception
Description copied from interface: IOrthoContentItemImplementation
Sets the single touch rotate translate.

Specified by:
setSingleTouchRotateTranslate in interface IOrthoContentItemImplementation
Parameters:
isEnabled - the new single touch rotate translate
Throws:
java.lang.Exception - the exception

setSnapable

public void setSnapable(boolean snapable)
Description copied from interface: IOrthoContentItemImplementation
Sets the snapable.

Specified by:
setSnapable in interface IOrthoContentItemImplementation
Parameters:
snapable - the new snapable

setSpinListeners

public void setSpinListeners(java.util.List<OrthoSpinListener> spinListeners)
Sets the spin listeners.

Parameters:
spinListeners - the new spin listeners

setTolerance

public void setTolerance(float tolerance)
Description copied from interface: IOrthoContentItemImplementation
Sets the tolerance.

Specified by:
setTolerance in interface IOrthoContentItemImplementation
Parameters:
tolerance - the new tolerance

setZRotateLimit

public void setZRotateLimit(float min,
                            float max)
Description copied from interface: IOrthoContentItemImplementation
Sets the z rotate limit.

Specified by:
setZRotateLimit in interface IOrthoContentItemImplementation
Parameters:
min - the min
max - the max

turnOffEventDispatcher

public void turnOffEventDispatcher()
Description copied from interface: IOrthoContentItemImplementation
Turn off event dispatcher.

Specified by:
turnOffEventDispatcher in interface IOrthoContentItemImplementation