public interface IItem extends INestable
INestable.IChildrenChangedListener| Modifier and Type | Method and Description |
|---|---|
void |
addItemListener(IItemListener itemListener)
Adds the item listener.
|
void |
behaviourAdded(IBehaviour behaviour)
Behaviour added.
|
void |
centerItem()
Center item.
|
com.jme3.math.Vector2f |
convertWorldVelocityToLocalVelocity(com.jme3.math.Vector2f loc)
Convert world velocity to local velocity.
|
java.util.List<IBehaviour> |
getBehaviours()
Gets the behaviours.
|
<T extends IBehaviour> |
getBehaviours(java.lang.Class<T> clazz)
Gets the behaviours.
|
java.util.List<IItemListener> |
getItemListeners()
Gets the item listeners.
|
com.jme3.scene.Spatial |
getManipulableSpatial()
Gets the manipulable spatial.
|
MultiTouchEventDispatcher |
getMultiTouchDispatcher()
Gets the multi touch dispatcher.
|
java.lang.String |
getName()
Gets the name.
|
IItem |
getParentItem()
Gets the parent item.
|
com.jme3.math.Vector2f |
getRelativeLocation()
Gets the relative location.
|
com.jme3.math.Vector2f |
getRelativeLocationOfWorldLocation(com.jme3.math.Vector2f worldloc)
Gets the relative location of world location.
|
float |
getRelativeRotation()
Gets the relative rotation.
|
float |
getRelativeScale()
Gets the relative scale.
|
java.util.UUID |
getUUID()
Gets the uuid.
|
com.jme3.math.Vector2f |
getWorldLocation()
Gets the world location.
|
com.jme3.math.Vector2f |
getWorldLocation(com.jme3.math.Vector2f v)
Get the world location of an arbitrary point, where the arbitrary point
is given in relative coordinates to this item.
|
float |
getWorldRotationDegrees()
Gets the world rotation degrees.
|
int |
getZOrder()
Gets the z order.
|
IZOrderManager |
getZOrderManager()
Gets the z order manager.
|
boolean |
isVisible()
Checks if is visible.
|
void |
removeItemListener(IItemListener itemListener)
Removes the item listener.
|
void |
setInteractionEnabled(boolean b)
Sets the interaction enabled.
|
void |
setItemListeners(java.util.List<IItemListener> itemListeners)
Sets the item listeners.
|
void |
setParentItem(IItem parent)
Sets the parent item.
|
void |
setRelativeLocation(com.jme3.math.Vector2f loc)
Sets the relative location.
|
void |
setRelativeRotation(float angle)
Sets the relative rotation.
|
void |
setRelativeScale(float scale)
Sets the relative scale.
|
void |
setVisible(boolean isVisible)
Sets the visible.
|
void |
setWorldLocation(com.jme3.math.Vector2f loc)
Puts the item to a location on screen, given by screen coordinates
|
void |
setZOrder(int zOrder)
Sets the z order.
|
addItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItemvoid addItemListener(IItemListener itemListener)
itemListener - the item listenervoid behaviourAdded(IBehaviour behaviour)
behaviour - the behaviourvoid centerItem()
com.jme3.math.Vector2f convertWorldVelocityToLocalVelocity(com.jme3.math.Vector2f loc)
loc - the locjava.util.List<IBehaviour> getBehaviours()
<T extends IBehaviour> java.util.List<T> getBehaviours(java.lang.Class<T> clazz)
T - the generic typeclazz - the clazzjava.util.List<IItemListener> getItemListeners()
com.jme3.scene.Spatial getManipulableSpatial()
MultiTouchEventDispatcher getMultiTouchDispatcher()
java.lang.String getName()
IItem getParentItem()
com.jme3.math.Vector2f getRelativeLocation()
com.jme3.math.Vector2f getRelativeLocationOfWorldLocation(com.jme3.math.Vector2f worldloc)
worldloc - the worldlocfloat getRelativeRotation()
float getRelativeScale()
java.util.UUID getUUID()
com.jme3.math.Vector2f getWorldLocation()
com.jme3.math.Vector2f getWorldLocation(com.jme3.math.Vector2f v)
v - float getWorldRotationDegrees()
int getZOrder()
IZOrderManager getZOrderManager()
INestablegetZOrderManager in interface INestableboolean isVisible()
void removeItemListener(IItemListener itemListener)
itemListener - the item listenervoid setInteractionEnabled(boolean b)
b - the new interaction enabledvoid setItemListeners(java.util.List<IItemListener> itemListeners)
itemListeners - the new item listenersvoid setParentItem(IItem parent)
parent - the new parent itemvoid setRelativeLocation(com.jme3.math.Vector2f loc)
loc - the new relative locationvoid setRelativeRotation(float angle)
angle - the new relative rotationvoid setRelativeScale(float scale)
scale - the new relative scalevoid setVisible(boolean isVisible)
isVisible - the new visiblevoid setWorldLocation(com.jme3.math.Vector2f loc)
loc - a position, in screen coordinatesvoid setZOrder(int zOrder)
zOrder - the new z order