|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
public class JMEOrthoContentItem
The Class JMEOrthoContentItem.
| Constructor Summary | |
|---|---|
JMEOrthoContentItem(ContentItem contentItem,
com.jme.scene.Spatial spatial)
Instantiates a new JME 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 l)
Adds the item listener. |
void |
addMultitouchListener()
Adds the multitouch 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 |
centerItem()
Center item. |
void |
cursorChanged(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
Cursor changed. |
void |
cursorClicked(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
Cursor clicked. |
void |
cursorPressed(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
Cursor pressed. |
void |
cursorReleased(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
Cursor released. |
void |
cursorRightClicked(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
Cursor right clicked. |
void |
flick(float velocityX,
float velocityY,
float deceleration)
Flick. |
float |
getMaxScale()
Gets the max scale. |
float |
getMinScale()
Gets the min scale. |
boolean |
isFlickable()
Checks if is flickable. |
void |
ItemBringToTop()
Item bring to top. |
void |
itemFlicked(FlickMover multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newLocationX,
float newLocationY,
float oldLocationX,
float oldLocationY)
Item flicked. |
void |
itemMoved(OrthoControlPointRotateTranslateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newLocationX,
float newLocationY,
float oldLocationX,
float oldLocationY)
Item moved. |
void |
itemRotated(OrthoControlPointRotateTranslateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newAngle,
float oldAngle)
Item rotated. |
void |
itemScaled(OrthoControlPointRotateTranslateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float scaleChange)
Item scaled. |
void |
itemSnapped(OrthoSnap multiTouchElement,
com.jme.scene.Spatial targetSpatial,
FixLocationStatus fixLocationStatus)
Item snapped. |
void |
makeFlickable(float deceleration)
Make flickable. |
void |
makeUnflickable()
Make unflickable. |
void |
placeRandom()
Place random. |
void |
removeBringToTopListeners(BringToTopListener l)
Removes the bring to top listeners. |
void |
removeFlickListeners(OrthoFlickListener l)
Removes the flick listeners. |
void |
removeItemListerner(ItemListener l)
Removes the item listerner. |
void |
removeOrthoControlPointRotateTranslateScaleListeners(OrthoControlPointRotateTranslateScaleListener l)
Removes the ortho control point rotate translate scale listeners. |
void |
removeScreenCursorListeners()
Removes the screen cursor listeners. |
void |
removeSnapListeners(OrthoSnapListener l)
Removes the snap listeners. |
void |
reset()
Reset. |
void |
rotateRandom()
Rotate random. |
void |
screenCursorChanged(ContentItem item,
long id,
float x,
float y,
float pressure)
Screen cursor changed. |
void |
screenCursorClicked(ContentItem item,
long id,
float x,
float y,
float pressure)
Screen cursor clicked. |
void |
screenCursorPressed(ContentItem item,
long id,
float x,
float y,
float pressure)
Screen cursor pressed. |
void |
screenCursorReleased(ContentItem item,
long id,
float x,
float y,
float pressure)
Screen cursor released. |
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 |
setBackGround(Background backGround)
Sets the back ground. |
void |
setBorder(Border border)
Sets the border. |
void |
setBringToTopable(boolean isEnabled)
Sets the bring to topable. |
void |
setFixLocations(java.util.List<FixLocationStatus> fixLocations)
Sets the fix locations. |
void |
setLocalLocation(Location location)
Sets the local location. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setOrder(int order)
Sets the order. |
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 |
setSingleTouchRotateTranslate(boolean isEnabled)
Sets the single touch rotate translate. |
void |
setSnapable(boolean isEnabled)
Sets the snapable. |
void |
setTolerance(float tolerance)
Sets the tolerance. |
void |
setZRotateLimit(float min,
float max)
Sets the z rotate limit. |
void |
turnOffEventDispatcher()
Turn off event dispatcher. |
void |
update()
Update. |
void |
update(float interpolation)
Update. |
| Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem |
|---|
contains, getImplementationObject, getLocalLocation, hasCollision, init, 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.IContentItemImplementation |
|---|
contains, getImplementationObject, hasCollision, init, setAngle, setBoundaryEnabled, setId, setLocation, setManipulate, setScale, setScale, setVisible, setVisible |
| Constructor Detail |
|---|
public JMEOrthoContentItem(ContentItem contentItem,
com.jme.scene.Spatial spatial)
contentItem - the content itemspatial - the spatial| Method Detail |
|---|
public void addBringToTopListener(BringToTopListener l)
IOrthoContentItemImplementation
addBringToTopListener in interface IOrthoContentItemImplementationl - the lpublic void addFlickListener(OrthoFlickListener l)
IOrthoContentItemImplementation
addFlickListener in interface IOrthoContentItemImplementationl - the lpublic void addItemListener(ItemListener l)
IOrthoContentItemImplementation
addItemListener in interface IOrthoContentItemImplementationl - the item listenerpublic void addMultitouchListener()
IContentItemImplementation
addMultitouchListener in interface IContentItemImplementationaddMultitouchListener in class JMEContentItempublic void addOrthoControlPointRotateTranslateScaleListener(OrthoControlPointRotateTranslateScaleListener l)
IOrthoContentItemImplementation
addOrthoControlPointRotateTranslateScaleListener in interface IOrthoContentItemImplementationl - the lpublic void addScreenCursorListener(ScreenCursorListener l)
IOrthoContentItemImplementation
addScreenCursorListener in interface IOrthoContentItemImplementationl - the lpublic void addSnapListener(OrthoSnapListener l)
IOrthoContentItemImplementation
addSnapListener in interface IOrthoContentItemImplementationl - the lpublic void allowMoreThanTwoToRotateAndScale(boolean b)
IOrthoContentItemImplementation
allowMoreThanTwoToRotateAndScale in interface IOrthoContentItemImplementationb - the bpublic void allowSingleTouchFreeMove(boolean b)
IOrthoContentItemImplementation
allowSingleTouchFreeMove in interface IOrthoContentItemImplementationb - the bpublic void allowSnapToOccupiedLocation(boolean allowSnapToOccupiedLocation)
IOrthoContentItemImplementation
allowSnapToOccupiedLocation in interface IOrthoContentItemImplementationallowSnapToOccupiedLocation - the allow snap to occupied locationpublic void centerItem()
IOrthoContentItemImplementation
centerItem in interface IOrthoContentItemImplementation
public void cursorChanged(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorChanged in interface OrthoCursorEventDispatcher.CommonCursorEventListenercommonCursorEventDispatcher - the common cursor event dispatcherc - the cevent - the event
public void cursorClicked(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorClicked in interface OrthoCursorEventDispatcher.CommonCursorEventListenercommonCursorEventDispatcher - the common cursor event dispatcherc - the cevent - the event
public void cursorPressed(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorPressed in interface OrthoCursorEventDispatcher.CommonCursorEventListenercommonCursorEventDispatcher - the common cursor event dispatcherc - the cevent - the event
public void cursorReleased(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorReleased in interface OrthoCursorEventDispatcher.CommonCursorEventListenercommonCursorEventDispatcher - the common cursor event dispatcherc - the cevent - the event
public void cursorRightClicked(OrthoCursorEventDispatcher commonCursorEventDispatcher,
ScreenCursor c,
MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorRightClicked in interface OrthoCursorEventDispatcher.CommonCursorEventListenercommonCursorEventDispatcher - the common cursor event dispatcherc - the cevent - the event
public void flick(float velocityX,
float velocityY,
float deceleration)
IOrthoContentItemImplementation
flick in interface IOrthoContentItemImplementationvelocityX - the velocity xvelocityY - the velocity ydeceleration - the decelerationpublic float getMaxScale()
IOrthoContentItemImplementation
getMaxScale in interface IOrthoContentItemImplementationpublic float getMinScale()
IOrthoContentItemImplementation
getMinScale in interface IOrthoContentItemImplementationpublic boolean isFlickable()
IOrthoContentItemImplementation
isFlickable in interface IOrthoContentItemImplementationpublic void ItemBringToTop()
OrthoBringToTop.OrthoBringToTopListener
ItemBringToTop in interface OrthoBringToTop.OrthoBringToTopListener
public void itemFlicked(FlickMover multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newLocationX,
float newLocationY,
float oldLocationX,
float oldLocationY)
FlickMover.FlickListener
itemFlicked in interface FlickMover.FlickListenermultiTouchElement - the multi touch elementtargetSpatial - the target spatialnewLocationX - the new location xnewLocationY - the new location yoldLocationX - the old location xoldLocationY - the old location y
public void itemMoved(OrthoControlPointRotateTranslateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newLocationX,
float newLocationY,
float oldLocationX,
float oldLocationY)
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
itemMoved in interface OrthoControlPointRotateTranslateScale.RotateTranslateScaleListenermultiTouchElement - the multi touch elementtargetSpatial - the target spatialnewLocationX - the new location xnewLocationY - the new location yoldLocationX - the old location xoldLocationY - the old location y
public void itemRotated(OrthoControlPointRotateTranslateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newAngle,
float oldAngle)
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
itemRotated in interface OrthoControlPointRotateTranslateScale.RotateTranslateScaleListenermultiTouchElement - the multi touch elementtargetSpatial - the target spatialnewAngle - the new angleoldAngle - the old angle
public void itemScaled(OrthoControlPointRotateTranslateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float scaleChange)
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
itemScaled in interface OrthoControlPointRotateTranslateScale.RotateTranslateScaleListenermultiTouchElement - the multi touch elementtargetSpatial - the target spatialscaleChange - the scale change
public void itemSnapped(OrthoSnap multiTouchElement,
com.jme.scene.Spatial targetSpatial,
FixLocationStatus fixLocationStatus)
OrthoSnap.SnapListener
itemSnapped in interface OrthoSnap.SnapListenermultiTouchElement - the multi touch elementtargetSpatial - the target spatialfixLocationStatus - the fix location statuspublic void makeFlickable(float deceleration)
IOrthoContentItemImplementation
makeFlickable in interface IOrthoContentItemImplementationdeceleration - the decelerationpublic void makeUnflickable()
IOrthoContentItemImplementation
makeUnflickable in interface IOrthoContentItemImplementationpublic void placeRandom()
IOrthoContentItemImplementation
placeRandom in interface IOrthoContentItemImplementationpublic void removeBringToTopListeners(BringToTopListener l)
IOrthoContentItemImplementation
removeBringToTopListeners in interface IOrthoContentItemImplementationl - the lpublic void removeFlickListeners(OrthoFlickListener l)
IOrthoContentItemImplementation
removeFlickListeners in interface IOrthoContentItemImplementationl - the lpublic void removeItemListerner(ItemListener l)
IOrthoContentItemImplementation
removeItemListerner in interface IOrthoContentItemImplementationl - the item listenerpublic void removeOrthoControlPointRotateTranslateScaleListeners(OrthoControlPointRotateTranslateScaleListener l)
IOrthoContentItemImplementation
removeOrthoControlPointRotateTranslateScaleListeners in interface IOrthoContentItemImplementationl - the lpublic void removeScreenCursorListeners()
IOrthoContentItemImplementation
removeScreenCursorListeners in interface IOrthoContentItemImplementationpublic void removeSnapListeners(OrthoSnapListener l)
IOrthoContentItemImplementation
removeSnapListeners in interface IOrthoContentItemImplementationl - the lpublic void reset()
IOrthoContentItemImplementation
reset in interface IOrthoContentItemImplementationpublic void rotateRandom()
IOrthoContentItemImplementation
rotateRandom in interface IOrthoContentItemImplementation
public void screenCursorChanged(ContentItem item,
long id,
float x,
float y,
float pressure)
ScreenCursorListener
screenCursorChanged in interface ScreenCursorListeneritem - the itemid - the idx - the xy - the ypressure - the pressure
public void screenCursorClicked(ContentItem item,
long id,
float x,
float y,
float pressure)
ScreenCursorListener
screenCursorClicked in interface ScreenCursorListeneritem - the itemid - the idx - the xy - the ypressure - the pressure
public void screenCursorPressed(ContentItem item,
long id,
float x,
float y,
float pressure)
ScreenCursorListener
screenCursorPressed in interface ScreenCursorListeneritem - the itemid - the idx - the xy - the ypressure - the pressure
public void screenCursorReleased(ContentItem item,
long id,
float x,
float y,
float pressure)
ScreenCursorListener
screenCursorReleased in interface ScreenCursorListeneritem - the itemid - the idx - the xy - the ypressure - the pressurepublic void setAsBottomObject()
IOrthoContentItemImplementation
setAsBottomObject in interface IOrthoContentItemImplementationpublic void setAsTopObject()
IOrthoContentItemImplementation
setAsTopObject in interface IOrthoContentItemImplementationpublic void setAsTopObjectAndBroadCastEvent()
IOrthoContentItemImplementation
setAsTopObjectAndBroadCastEvent in interface IOrthoContentItemImplementationpublic void setBackGround(Background backGround)
IContentItemImplementation
setBackGround in interface IContentItemImplementationsetBackGround in class JMEContentItembackGround - the new back groundpublic void setBorder(Border border)
IContentItemImplementation
setBorder in interface IContentItemImplementationsetBorder in class JMEContentItemborder - the new borderpublic void setBringToTopable(boolean isEnabled)
IOrthoContentItemImplementation
setBringToTopable in interface IOrthoContentItemImplementationisEnabled - the new bring to topablepublic void setFixLocations(java.util.List<FixLocationStatus> fixLocations)
IOrthoContentItemImplementation
setFixLocations in interface IOrthoContentItemImplementationfixLocations - the new fix locationspublic void setLocalLocation(Location location)
IContentItemImplementation
setLocalLocation in interface IContentItemImplementationsetLocalLocation in class JMEContentItemlocation - the new local locationpublic void setName(java.lang.String name)
IContentItemImplementation
setName in interface IContentItemImplementationsetName in class JMEContentItemname - the new namepublic void setOrder(int order)
IOrthoContentItemImplementation
setOrder in interface IOrthoContentItemImplementationorder - the new orderpublic void setRightClickDistance(float distance)
IOrthoContentItemImplementation
setRightClickDistance in interface IOrthoContentItemImplementationdistance - the new right click distancepublic void setRotateTranslateScalable(boolean isEnabled)
IOrthoContentItemImplementation
setRotateTranslateScalable in interface IOrthoContentItemImplementationisEnabled - the new rotate translate scalable
public void setRotateTranslateScalable(boolean isEnabled,
boolean attachToParent,
ContentItem targetItem)
IOrthoContentItemImplementation
setRotateTranslateScalable in interface IOrthoContentItemImplementationisEnabled - the is enabledattachToParent - the attach to parenttargetItem - the target item
public void setScaleLimit(float min,
float max)
IOrthoContentItemImplementation
setScaleLimit in interface IOrthoContentItemImplementationmin - the minmax - the max
public void setSingleTouchRotateTranslate(boolean isEnabled)
throws java.lang.Exception
IOrthoContentItemImplementation
setSingleTouchRotateTranslate in interface IOrthoContentItemImplementationisEnabled - the new single touch rotate translate
java.lang.Exception - the exceptionpublic void setSnapable(boolean isEnabled)
IOrthoContentItemImplementation
setSnapable in interface IOrthoContentItemImplementationisEnabled - the new snapablepublic void setTolerance(float tolerance)
IOrthoContentItemImplementation
setTolerance in interface IOrthoContentItemImplementationtolerance - the new tolerance
public void setZRotateLimit(float min,
float max)
IOrthoContentItemImplementation
setZRotateLimit in interface IOrthoContentItemImplementationmin - the minmax - the maxpublic void turnOffEventDispatcher()
IOrthoContentItemImplementation
turnOffEventDispatcher in interface IOrthoContentItemImplementationpublic void update()
IContentItemImplementation
update in interface IContentItemImplementationupdate in class JMEContentItempublic void update(float interpolation)
IContentItemImplementation
update in interface IContentItemImplementationupdate in class JMEContentIteminterpolation - the interpolation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||