public class ScreenshotContainer extends JMEContainer implements IScreenshotContainer, IInitable, IItemCachable
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHABLE_TYPE
The Constant CACHABLE_TYPE.
|
KEY_JMEITEMDATA
Constructor and Description |
---|
ScreenshotContainer(java.lang.String name,
java.util.UUID uuid)
Instantiates a new screenshot container.
|
Modifier and Type | Method and Description |
---|---|
GalleryItemDatabaseFormat |
deconstruct(java.lang.String loc)
Deconstruct.
|
java.lang.String |
isCached() |
static ScreenshotContainer |
reconstruct(GalleryItemDatabaseFormat galleryItem,
IStage stage,
java.lang.String loc)
Reconstruct.
|
void |
setCached(java.lang.String cached) |
boolean |
setScreenShotImage(java.io.File screenShotFile,
IStage stage,
float width,
float height)
Sets the screen shot image.
|
getManipulableSpatial, initializeGeometry
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, toString
attachChild, 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, write
addControl, 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, worldToLocal
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItemListener, 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, setZOrder
addItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItem
initializeGeometry
public static final java.lang.String CACHABLE_TYPE
public ScreenshotContainer(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic static ScreenshotContainer reconstruct(GalleryItemDatabaseFormat galleryItem, IStage stage, java.lang.String loc)
galleryItem
- the gallery itemstage
- the stageloc
- the locpublic GalleryItemDatabaseFormat deconstruct(java.lang.String loc)
IItemCachable
deconstruct
in interface IItemCachable
loc
- the student idpublic java.lang.String isCached()
public void setCached(java.lang.String cached)
cached
- the cached to setpublic boolean setScreenShotImage(java.io.File screenShotFile, IStage stage, float width, float height)
IScreenshotContainer
setScreenShotImage
in interface IScreenshotContainer
screenShotFile
- the screen shot filestage
- the stagewidth
- the widthheight
- the height