|
||||||||||
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 spatialMethod Detail |
---|
public void addBringToTopListener(BringToTopListener l)
IOrthoContentItemImplementation
addBringToTopListener
in interface IOrthoContentItemImplementation
l
- the lpublic void addFlickListener(OrthoFlickListener l)
IOrthoContentItemImplementation
addFlickListener
in interface IOrthoContentItemImplementation
l
- the lpublic void addItemListener(ItemListener l)
IOrthoContentItemImplementation
addItemListener
in interface IOrthoContentItemImplementation
l
- the item listenerpublic void addMultitouchListener()
IContentItemImplementation
addMultitouchListener
in interface IContentItemImplementation
addMultitouchListener
in class JMEContentItem
public void addOrthoControlPointRotateTranslateScaleListener(OrthoControlPointRotateTranslateScaleListener l)
IOrthoContentItemImplementation
addOrthoControlPointRotateTranslateScaleListener
in interface IOrthoContentItemImplementation
l
- the lpublic void addScreenCursorListener(ScreenCursorListener l)
IOrthoContentItemImplementation
addScreenCursorListener
in interface IOrthoContentItemImplementation
l
- the lpublic void addSnapListener(OrthoSnapListener l)
IOrthoContentItemImplementation
addSnapListener
in interface IOrthoContentItemImplementation
l
- the lpublic void allowMoreThanTwoToRotateAndScale(boolean b)
IOrthoContentItemImplementation
allowMoreThanTwoToRotateAndScale
in interface IOrthoContentItemImplementation
b
- the bpublic void allowSingleTouchFreeMove(boolean b)
IOrthoContentItemImplementation
allowSingleTouchFreeMove
in interface IOrthoContentItemImplementation
b
- the bpublic void allowSnapToOccupiedLocation(boolean allowSnapToOccupiedLocation)
IOrthoContentItemImplementation
allowSnapToOccupiedLocation
in interface IOrthoContentItemImplementation
allowSnapToOccupiedLocation
- 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.CommonCursorEventListener
commonCursorEventDispatcher
- the common cursor event dispatcherc
- the cevent
- the eventpublic void cursorClicked(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorClicked
in interface OrthoCursorEventDispatcher.CommonCursorEventListener
commonCursorEventDispatcher
- the common cursor event dispatcherc
- the cevent
- the eventpublic void cursorPressed(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorPressed
in interface OrthoCursorEventDispatcher.CommonCursorEventListener
commonCursorEventDispatcher
- the common cursor event dispatcherc
- the cevent
- the eventpublic void cursorReleased(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorReleased
in interface OrthoCursorEventDispatcher.CommonCursorEventListener
commonCursorEventDispatcher
- the common cursor event dispatcherc
- the cevent
- the eventpublic void cursorRightClicked(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
OrthoCursorEventDispatcher.CommonCursorEventListener
cursorRightClicked
in interface OrthoCursorEventDispatcher.CommonCursorEventListener
commonCursorEventDispatcher
- the common cursor event dispatcherc
- the cevent
- the eventpublic void flick(float velocityX, float velocityY, float deceleration)
IOrthoContentItemImplementation
flick
in interface IOrthoContentItemImplementation
velocityX
- the velocity xvelocityY
- the velocity ydeceleration
- the decelerationpublic float getMaxScale()
IOrthoContentItemImplementation
getMaxScale
in interface IOrthoContentItemImplementation
public float getMinScale()
IOrthoContentItemImplementation
getMinScale
in interface IOrthoContentItemImplementation
public boolean isFlickable()
IOrthoContentItemImplementation
isFlickable
in interface IOrthoContentItemImplementation
public 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.FlickListener
multiTouchElement
- the multi touch elementtargetSpatial
- the target spatialnewLocationX
- the new location xnewLocationY
- the new location yoldLocationX
- the old location xoldLocationY
- the old location ypublic void itemMoved(OrthoControlPointRotateTranslateScale multiTouchElement, com.jme.scene.Spatial targetSpatial, float newLocationX, float newLocationY, float oldLocationX, float oldLocationY)
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
itemMoved
in interface OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
multiTouchElement
- the multi touch elementtargetSpatial
- the target spatialnewLocationX
- the new location xnewLocationY
- the new location yoldLocationX
- the old location xoldLocationY
- the old location ypublic void itemRotated(OrthoControlPointRotateTranslateScale multiTouchElement, com.jme.scene.Spatial targetSpatial, float newAngle, float oldAngle)
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
itemRotated
in interface OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
multiTouchElement
- the multi touch elementtargetSpatial
- the target spatialnewAngle
- the new angleoldAngle
- the old anglepublic void itemScaled(OrthoControlPointRotateTranslateScale multiTouchElement, com.jme.scene.Spatial targetSpatial, float scaleChange)
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
itemScaled
in interface OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
multiTouchElement
- the multi touch elementtargetSpatial
- the target spatialscaleChange
- the scale changepublic void itemSnapped(OrthoSnap multiTouchElement, com.jme.scene.Spatial targetSpatial, FixLocationStatus fixLocationStatus)
OrthoSnap.SnapListener
itemSnapped
in interface OrthoSnap.SnapListener
multiTouchElement
- the multi touch elementtargetSpatial
- the target spatialfixLocationStatus
- the fix location statuspublic void makeFlickable(float deceleration)
IOrthoContentItemImplementation
makeFlickable
in interface IOrthoContentItemImplementation
deceleration
- the decelerationpublic void makeUnflickable()
IOrthoContentItemImplementation
makeUnflickable
in interface IOrthoContentItemImplementation
public void placeRandom()
IOrthoContentItemImplementation
placeRandom
in interface IOrthoContentItemImplementation
public void removeBringToTopListeners(BringToTopListener l)
IOrthoContentItemImplementation
removeBringToTopListeners
in interface IOrthoContentItemImplementation
l
- the lpublic void removeFlickListeners(OrthoFlickListener l)
IOrthoContentItemImplementation
removeFlickListeners
in interface IOrthoContentItemImplementation
l
- the lpublic void removeItemListerner(ItemListener l)
IOrthoContentItemImplementation
removeItemListerner
in interface IOrthoContentItemImplementation
l
- the item listenerpublic void removeOrthoControlPointRotateTranslateScaleListeners(OrthoControlPointRotateTranslateScaleListener l)
IOrthoContentItemImplementation
removeOrthoControlPointRotateTranslateScaleListeners
in interface IOrthoContentItemImplementation
l
- the lpublic void removeScreenCursorListeners()
IOrthoContentItemImplementation
removeScreenCursorListeners
in interface IOrthoContentItemImplementation
public void removeSnapListeners(OrthoSnapListener l)
IOrthoContentItemImplementation
removeSnapListeners
in interface IOrthoContentItemImplementation
l
- the lpublic void reset()
IOrthoContentItemImplementation
reset
in interface IOrthoContentItemImplementation
public void rotateRandom()
IOrthoContentItemImplementation
rotateRandom
in interface IOrthoContentItemImplementation
public void screenCursorChanged(ContentItem item, long id, float x, float y, float pressure)
ScreenCursorListener
screenCursorChanged
in interface ScreenCursorListener
item
- the itemid
- the idx
- the xy
- the ypressure
- the pressurepublic void screenCursorClicked(ContentItem item, long id, float x, float y, float pressure)
ScreenCursorListener
screenCursorClicked
in interface ScreenCursorListener
item
- the itemid
- the idx
- the xy
- the ypressure
- the pressurepublic void screenCursorPressed(ContentItem item, long id, float x, float y, float pressure)
ScreenCursorListener
screenCursorPressed
in interface ScreenCursorListener
item
- the itemid
- the idx
- the xy
- the ypressure
- the pressurepublic void screenCursorReleased(ContentItem item, long id, float x, float y, float pressure)
ScreenCursorListener
screenCursorReleased
in interface ScreenCursorListener
item
- the itemid
- the idx
- the xy
- the ypressure
- the pressurepublic void setAsBottomObject()
IOrthoContentItemImplementation
setAsBottomObject
in interface IOrthoContentItemImplementation
public void setAsTopObject()
IOrthoContentItemImplementation
setAsTopObject
in interface IOrthoContentItemImplementation
public void setAsTopObjectAndBroadCastEvent()
IOrthoContentItemImplementation
setAsTopObjectAndBroadCastEvent
in interface IOrthoContentItemImplementation
public void setBackGround(Background backGround)
IContentItemImplementation
setBackGround
in interface IContentItemImplementation
setBackGround
in class JMEContentItem
backGround
- the new back groundpublic void setBorder(Border border)
IContentItemImplementation
setBorder
in interface IContentItemImplementation
setBorder
in class JMEContentItem
border
- the new borderpublic void setBringToTopable(boolean isEnabled)
IOrthoContentItemImplementation
setBringToTopable
in interface IOrthoContentItemImplementation
isEnabled
- the new bring to topablepublic void setFixLocations(java.util.List<FixLocationStatus> fixLocations)
IOrthoContentItemImplementation
setFixLocations
in interface IOrthoContentItemImplementation
fixLocations
- the new fix locationspublic void setLocalLocation(Location location)
IContentItemImplementation
setLocalLocation
in interface IContentItemImplementation
setLocalLocation
in class JMEContentItem
location
- the new local locationpublic void setName(java.lang.String name)
IContentItemImplementation
setName
in interface IContentItemImplementation
setName
in class JMEContentItem
name
- the new namepublic void setOrder(int order)
IOrthoContentItemImplementation
setOrder
in interface IOrthoContentItemImplementation
order
- the new orderpublic void setRightClickDistance(float distance)
IOrthoContentItemImplementation
setRightClickDistance
in interface IOrthoContentItemImplementation
distance
- the new right click distancepublic void setRotateTranslateScalable(boolean isEnabled)
IOrthoContentItemImplementation
setRotateTranslateScalable
in interface IOrthoContentItemImplementation
isEnabled
- the new rotate translate scalablepublic void setRotateTranslateScalable(boolean isEnabled, boolean attachToParent, ContentItem targetItem)
IOrthoContentItemImplementation
setRotateTranslateScalable
in interface IOrthoContentItemImplementation
isEnabled
- the is enabledattachToParent
- the attach to parenttargetItem
- the target itempublic void setScaleLimit(float min, float max)
IOrthoContentItemImplementation
setScaleLimit
in interface IOrthoContentItemImplementation
min
- the minmax
- the maxpublic void setSingleTouchRotateTranslate(boolean isEnabled) throws java.lang.Exception
IOrthoContentItemImplementation
setSingleTouchRotateTranslate
in interface IOrthoContentItemImplementation
isEnabled
- the new single touch rotate translate
java.lang.Exception
- the exceptionpublic void setSnapable(boolean isEnabled)
IOrthoContentItemImplementation
setSnapable
in interface IOrthoContentItemImplementation
isEnabled
- the new snapablepublic void setTolerance(float tolerance)
IOrthoContentItemImplementation
setTolerance
in interface IOrthoContentItemImplementation
tolerance
- the new tolerancepublic void setZRotateLimit(float min, float max)
IOrthoContentItemImplementation
setZRotateLimit
in interface IOrthoContentItemImplementation
min
- the minmax
- the maxpublic void turnOffEventDispatcher()
IOrthoContentItemImplementation
turnOffEventDispatcher
in interface IOrthoContentItemImplementation
public void update()
IContentItemImplementation
update
in interface IContentItemImplementation
update
in class JMEContentItem
public void update(float interpolation)
IContentItemImplementation
update
in interface IContentItemImplementation
update
in class JMEContentItem
interpolation
- the interpolation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |