public class JMEImage extends JMEItem implements IImage, IInitable
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListenerKEY_JMEITEMDATA| Constructor and Description |
|---|
JMEImage(java.lang.String name,
java.util.UUID uuid)
Instantiates a new JME image.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getHeight()
Gets the height.
|
java.lang.String |
getImage()
Gets the image.
|
com.jme3.scene.Spatial |
getManipulableSpatial()
Gets the manipulable spatial.
|
com.jme3.math.Vector2f |
getSize()
Gets the size.
|
float |
getWidth()
Gets the width.
|
void |
initializeGeometry(com.jme3.asset.AssetManager assetManager)
Initialize geometry.
|
void |
setImage(java.io.File imageFile)
Sets the image.
|
void |
setImage(java.lang.String imageResource)
Sets the image.
|
void |
setSize(float width,
float height)
Sets the size.
|
void |
setSize(com.jme3.math.Vector2f size)
Sets the size.
|
void |
setTexture(com.jme3.texture.Texture tex)
Sets the texture.
|
void |
setWrapping(float xscale,
float yscale)
Sets the wrapping.
|
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 JMEImage(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic float getHeight()
IRectangularItemgetHeight in interface IRectangularItempublic java.lang.String getImage()
IImagepublic com.jme3.scene.Spatial getManipulableSpatial()
IItemgetManipulableSpatial in interface IItempublic com.jme3.math.Vector2f getSize()
IRectangularItemgetSize in interface IRectangularItempublic float getWidth()
IRectangularItemgetWidth in interface IRectangularItempublic void initializeGeometry(com.jme3.asset.AssetManager assetManager)
IInitableinitializeGeometry in interface IInitableassetManager - the asset managerpublic void setImage(java.io.File imageFile)
IImagepublic void setImage(java.lang.String imageResource)
IImagepublic void setSize(float width,
float height)
IRectangularItemsetSize in interface IImagesetSize in interface IRectangularItemwidth - the widthheight - the heightpublic void setSize(com.jme3.math.Vector2f size)
IRectangularItemsetSize in interface IRectangularItemsize - the new sizepublic void setTexture(com.jme3.texture.Texture tex)
IImagesetTexture in interface IImagetex - the new texturepublic void setWrapping(float xscale,
float yscale)
IImagesetWrapping in interface IImagexscale - the xscaleyscale - the yscale