public class JMELine extends JMEItem implements ILine, IInitable, IItemListener
com.jme3.scene.Spatial.CullHintILine.LineModeINestable.IChildrenChangedListenerKEY_JMEITEMDATA| Constructor and Description |
|---|
JMELine(java.lang.String name,
java.util.UUID uuid)
Instantiates a new JME line.
|
| Modifier and Type | Method and Description |
|---|---|
IItem |
getDestinationItem()
Gets the destination item.
|
com.jme3.math.Vector2f |
getEndPosition()
Gets the end position.
|
float |
getLength()
Gets the length.
|
com.jme3.scene.Spatial |
getManipulableSpatial()
Gets the manipulable spatial.
|
ILine.LineMode |
getMode()
Gets the mode.
|
IItem |
getSourceItem()
Gets the source item.
|
com.jme3.math.Vector2f |
getStartPosition()
Gets the start position.
|
void |
initializeGeometry(com.jme3.asset.AssetManager assetManager)
Initialize geometry.
|
void |
itemCursorChanged(IItem item,
MultiTouchCursorEvent event)
Item cursor changed.
|
void |
itemCursorClicked(IItem item,
MultiTouchCursorEvent event)
Item cursor clicked.
|
void |
itemCursorPressed(IItem item,
MultiTouchCursorEvent event)
Item cursor pressed.
|
void |
itemCursorReleased(IItem item,
MultiTouchCursorEvent event)
Item cursor released.
|
void |
itemMoved(IItem item)
Item moved.
|
void |
itemRotated(IItem item)
Item rotated.
|
void |
itemScaled(IItem item)
Item scaled.
|
void |
itemVisibilityChanged(IItem item,
boolean isVisible)
Item visibility changed.
|
void |
itemZOrderChanged(IItem item)
Item z order changed.
|
void |
setDestinationItem(IItem item)
Sets the destination item.
|
void |
setEndPosition(com.jme3.math.Vector2f v)
Sets the end position.
|
void |
setLineColour(com.jme3.math.ColorRGBA c)
Sets the line colour.
|
void |
setLineVisibilityChangesWithItemVisibility(boolean autoVisibilityChange)
Sets the line visibility changes with item visibility.
|
void |
setLineWidth(float width)
Sets the line width.
|
void |
setSourceItem(IItem item)
Sets the source item.
|
void |
setStartPosition(com.jme3.math.Vector2f v)
Sets the start position.
|
addItem, addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, deRegisterChildrenChangedListener, getBehaviours, getBehaviours, getChildItems, getChildrenCount, getItemChildren, getItemListeners, getItemName, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, hasChildren, isVisible, registerChildrenChangedListener, removeAllItems, removeItem, removeItemListener, setInteractionEnabled, setItemListeners, setItemName, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder, toStringattachChild, attachChildAt, childChange, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, writeaddControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getControl, getControl, getCullHint, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, worldToLocalequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, getBehaviours, getBehaviours, getItemListeners, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, isVisible, removeItemListener, setInteractionEnabled, setItemListeners, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrderaddItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItempublic JMELine(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic IItem getDestinationItem()
ILinegetDestinationItem in interface ILinepublic com.jme3.math.Vector2f getEndPosition()
ILinegetEndPosition in interface ILinepublic float getLength()
ILinepublic com.jme3.scene.Spatial getManipulableSpatial()
IItemgetManipulableSpatial in interface IItempublic ILine.LineMode getMode()
ILinepublic IItem getSourceItem()
ILinegetSourceItem in interface ILinepublic com.jme3.math.Vector2f getStartPosition()
ILinegetStartPosition in interface ILinepublic void initializeGeometry(com.jme3.asset.AssetManager assetManager)
IInitableinitializeGeometry in interface IInitableassetManager - the asset managerpublic void itemCursorChanged(IItem item, MultiTouchCursorEvent event)
IItemListeneritemCursorChanged in interface IItemListeneritem - the itemevent - the eventpublic void itemCursorClicked(IItem item, MultiTouchCursorEvent event)
IItemListeneritemCursorClicked in interface IItemListeneritem - the itemevent - the eventpublic void itemCursorPressed(IItem item, MultiTouchCursorEvent event)
IItemListeneritemCursorPressed in interface IItemListeneritem - the itemevent - the eventpublic void itemCursorReleased(IItem item, MultiTouchCursorEvent event)
IItemListeneritemCursorReleased in interface IItemListeneritem - the itemevent - the eventpublic void itemMoved(IItem item)
IItemListeneritemMoved in interface IItemListeneritem - the itempublic void itemRotated(IItem item)
IItemListeneritemRotated in interface IItemListeneritem - the itempublic void itemScaled(IItem item)
IItemListeneritemScaled in interface IItemListeneritem - the itempublic void itemVisibilityChanged(IItem item, boolean isVisible)
IItemListeneritemVisibilityChanged in interface IItemListeneritem - the itemisVisible - the is visiblepublic void itemZOrderChanged(IItem item)
IItemListeneritemZOrderChanged in interface IItemListeneritem - the itempublic void setDestinationItem(IItem item)
ILinesetDestinationItem in interface ILineitem - the new destination itempublic void setEndPosition(com.jme3.math.Vector2f v)
ILinesetEndPosition in interface ILinev - the new end positionpublic void setLineColour(com.jme3.math.ColorRGBA c)
ILinesetLineColour in interface ILinec - the new line colourpublic void setLineVisibilityChangesWithItemVisibility(boolean autoVisibilityChange)
ILinesetLineVisibilityChangesWithItemVisibility in interface ILineautoVisibilityChange - the new line visibility changes with item
visibilitypublic void setLineWidth(float width)
ILinesetLineWidth in interface ILinewidth - the new line widthpublic void setSourceItem(IItem item)
ILinesetSourceItem in interface ILineitem - the new source itempublic void setStartPosition(com.jme3.math.Vector2f v)
ILinesetStartPosition in interface ILinev - the new start position