public class ScrollContainer extends JMEContainer implements IScrollContainer, IInitable
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
KEY_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, 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, 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
initializeGeometry
public ScrollContainer(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic int addFrame()
IScrollContainer
addFrame
in interface IScrollContainer
public void addListenerToArrows(MultiTouchEventAdapter mTEA)
IScrollContainer
addListenerToArrows
in interface IScrollContainer
mTEA
- the multi touch event adapterpublic void addToAllFrames(IItem item, int x, int y)
IScrollContainer
addToAllFrames
in interface IScrollContainer
item
- the user iconx
- the xy
- the ypublic void addToFrame(IItem item, int frame, int x, int y)
IScrollContainer
addToFrame
in interface IScrollContainer
item
- the audio recorderframe
- the framex
- the xy
- the ypublic IColourRectangle getBackground()
IScrollContainer
getBackground
in interface IScrollContainer
public IRoundedBorder getBorder()
IScrollContainer
getBorder
in interface IScrollContainer
public float getBorderWidth()
public int getCurrentFrame()
IScrollContainer
getCurrentFrame
in interface IScrollContainer
public int getHeight()
IScrollContainer
getHeight
in interface IScrollContainer
public int getNumberOfFrames()
public java.lang.String getOwner()
public int getWidth()
IScrollContainer
getWidth
in interface IScrollContainer
public void hideScrollButtons()
IScrollContainer
hideScrollButtons
in interface IScrollContainer
public void removeFrame(int toRemove)
IScrollContainer
removeFrame
in interface IScrollContainer
toRemove
- the to removepublic void removeItem(IItem item)
INestable
removeItem
in interface INestable
removeItem
in class JMEItem
item
- the itempublic void scrollToFrame(int frame)
IScrollContainer
scrollToFrame
in interface IScrollContainer
frame
- the framepublic void setActive(boolean active)
IScrollContainer
setActive
in interface IScrollContainer
active
- the new activepublic void setArrowHeightOverride(float newHeight)
IScrollContainer
setArrowHeightOverride
in interface IScrollContainer
newHeight
- the new arrow height overridepublic void setArrowWidthOverride(float newWidth)
IScrollContainer
setArrowWidthOverride
in interface IScrollContainer
newWidth
- the new arrow width overridepublic void setArrowYOverride(float newY)
IScrollContainer
setArrowYOverride
in interface IScrollContainer
newY
- 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)
IScrollContainer
setDimensions
in interface IScrollContainer
stage
- the stagelog
- the logwidth
- the widthheight
- the heightpublic void setFrameColour(com.jme3.math.ColorRGBA colour)
IScrollContainer
setFrameColour
in interface IScrollContainer
colour
- 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)
IScrollContainer
setVisibility
in interface IScrollContainer
isVisible
- the new visibilitypublic void showCurrentFrameContents()
IScrollContainer
showCurrentFrameContents
in interface IScrollContainer