public class CachableImage extends JMEImage implements ICachableImage, IInitable, IItemCachable
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CACHABLE_TYPE
The Constant CACHABLE_TYPE.
|
KEY_JMEITEMDATA| Constructor and Description |
|---|
CachableImage(java.lang.String name,
java.util.UUID uuid)
Instantiates a new cachable image.
|
| Modifier and Type | Method and Description |
|---|---|
GalleryItemDatabaseFormat |
deconstruct(java.lang.String loc)
Deconstruct.
|
void |
generateBorder(IStage stage,
com.jme3.math.ColorRGBA borderColour,
float borderWidth)
Generate border.
|
java.lang.String |
isCached() |
static CachableImage |
reconstruct(GalleryItemDatabaseFormat galleryItem,
IStage stage,
java.lang.String loc)
Reconstruct.
|
void |
removeBorder()
Removes the border.
|
void |
setCached(java.lang.String cached) |
void |
setImage(java.io.File imageFile)
Sets the image.
|
getHeight, getImage, getManipulableSpatial, getSize, getWidth, initializeGeometry, setImage, setSize, setSize, setTexture, setWrappingaddItem, 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, waitgetImage, setImage, setSize, setTexture, setWrappinggetHeight, getSize, getWidth, setSizeaddItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, getBehaviours, getBehaviours, getItemListeners, getManipulableSpatial, 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, removeIteminitializeGeometrypublic static final java.lang.String CACHABLE_TYPE
public CachableImage(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic static CachableImage reconstruct(GalleryItemDatabaseFormat galleryItem, IStage stage, java.lang.String loc)
galleryItem - the gallery itemstage - the stageloc - the locpublic GalleryItemDatabaseFormat deconstruct(java.lang.String loc)
IItemCachabledeconstruct in interface IItemCachableloc - the student idpublic void generateBorder(IStage stage, com.jme3.math.ColorRGBA borderColour, float borderWidth)
ICachableImagegenerateBorder in interface ICachableImagestage - the stageborderColour - the border colourborderWidth - the border widthpublic java.lang.String isCached()
public void removeBorder()
ICachableImageremoveBorder in interface ICachableImagepublic void setCached(java.lang.String cached)
cached - the cached to set