public class ScrollContainer extends JMEContainer implements IScrollContainer, IInitable
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListenerKEY_JMEITEMDATA| Constructor and Description |
|---|
ScrollContainer(java.lang.String name,
java.util.UUID uuid)
Instantiates a new scroll container.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addFrame()
Adds the frame.
|
void |
addListenerToArrows(MultiTouchEventAdapter mTEA)
Adds the listener to arrows.
|
void |
addToAllFrames(IItem item,
int x,
int y)
Adds the to all frames.
|
void |
addToFrame(IItem item,
int frame,
int x,
int y)
Adds the to frame.
|
IColourRectangle |
getBackground()
Gets the background.
|
IRoundedBorder |
getBorder()
Gets the border.
|
float |
getBorderWidth()
Gets the border width.
|
int |
getCurrentFrame()
Gets the current frame.
|
int |
getHeight()
Gets the height.
|
int |
getNumberOfFrames()
Gets the number of frames.
|
java.lang.String |
getOwner()
Gets the owner.
|
int |
getWidth()
Gets the width.
|
void |
hideScrollButtons()
Hide scroll buttons.
|
void |
removeFrame(int toRemove)
Removes the frame.
|
void |
removeItem(IItem item)
Removes the item.
|
void |
scrollToFrame(int frame)
Scroll to frame.
|
void |
setActive(boolean active)
Sets the active.
|
void |
setArrowHeightOverride(float newHeight)
Sets the arrow height override.
|
void |
setArrowWidthOverride(float newWidth)
Sets the arrow width override.
|
void |
setArrowYOverride(float newY)
Sets the arrow y override.
|
void |
setBackgroundColour(com.jme3.math.ColorRGBA colour)
Sets the background colour.
|
void |
setDimensions(IStage stage,
java.util.logging.Logger log,
int width,
int height)
Sets the dimensions.
|
void |
setFrameColour(com.jme3.math.ColorRGBA colour)
Sets the frame colour.
|
void |
setOwner(java.lang.String owner)
Sets the owner.
|
void |
setScalable(boolean scalable)
Sets the scalable.
|
void |
setVisibility(java.lang.Boolean isVisible)
Sets the visibility.
|
void |
showCurrentFrameContents()
Show current frame contents.
|
getManipulableSpatial, initializeGeometryaddItem, 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, 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, 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, removeAllItemsinitializeGeometrypublic ScrollContainer(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic int addFrame()
IScrollContaineraddFrame in interface IScrollContainerpublic void addListenerToArrows(MultiTouchEventAdapter mTEA)
IScrollContaineraddListenerToArrows in interface IScrollContainermTEA - the multi touch event adapterpublic void addToAllFrames(IItem item, int x, int y)
IScrollContaineraddToAllFrames in interface IScrollContaineritem - the user iconx - the xy - the ypublic void addToFrame(IItem item, int frame, int x, int y)
IScrollContaineraddToFrame in interface IScrollContaineritem - the audio recorderframe - the framex - the xy - the ypublic IColourRectangle getBackground()
IScrollContainergetBackground in interface IScrollContainerpublic IRoundedBorder getBorder()
IScrollContainergetBorder in interface IScrollContainerpublic float getBorderWidth()
public int getCurrentFrame()
IScrollContainergetCurrentFrame in interface IScrollContainerpublic int getHeight()
IScrollContainergetHeight in interface IScrollContainerpublic int getNumberOfFrames()
public java.lang.String getOwner()
public int getWidth()
IScrollContainergetWidth in interface IScrollContainerpublic void hideScrollButtons()
IScrollContainerhideScrollButtons in interface IScrollContainerpublic void removeFrame(int toRemove)
IScrollContainerremoveFrame in interface IScrollContainertoRemove - the to removepublic void removeItem(IItem item)
INestableremoveItem in interface INestableremoveItem in class JMEItemitem - the itempublic void scrollToFrame(int frame)
IScrollContainerscrollToFrame in interface IScrollContainerframe - the framepublic void setActive(boolean active)
IScrollContainersetActive in interface IScrollContaineractive - the new activepublic void setArrowHeightOverride(float newHeight)
IScrollContainersetArrowHeightOverride in interface IScrollContainernewHeight - the new arrow height overridepublic void setArrowWidthOverride(float newWidth)
IScrollContainersetArrowWidthOverride in interface IScrollContainernewWidth - the new arrow width overridepublic void setArrowYOverride(float newY)
IScrollContainersetArrowYOverride in interface IScrollContainernewY - the new arrow y overridepublic void setBackgroundColour(com.jme3.math.ColorRGBA colour)
colour - the new background colourpublic void setDimensions(IStage stage, java.util.logging.Logger log, int width, int height)
IScrollContainersetDimensions in interface IScrollContainerstage - the stagelog - the logwidth - the widthheight - the heightpublic void setFrameColour(com.jme3.math.ColorRGBA colour)
IScrollContainersetFrameColour in interface IScrollContainercolour - the new frame colourpublic void setOwner(java.lang.String owner)
owner - the new ownerpublic void setScalable(boolean scalable)
scalable - the new scalablepublic void setVisibility(java.lang.Boolean isVisible)
IScrollContainersetVisibility in interface IScrollContainerisVisible - the new visibilitypublic void showCurrentFrameContents()
IScrollContainershowCurrentFrameContents in interface IScrollContainer