|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.widget.WidgetAbstractImpl
com.jme.widget.image.WidgetImage
com.jme.widget.image.WidgetAnimatedImage
WidgetAnimatedImage
WidgetAnimatedImage is a widget that draws an animated 2d image.
The image may be scaled by four methods:
SCALE_MODE_NONE - The image will not be scaled.
SCALE_MODE_SIZE_TO_FIT - The image will be scaled to fill the size of the widget.
SCALE_MODE_ABSOLUTE - The image is scaled vertically and horizontally by a percentage of the original size of the image.
SCALE_MODE_RELATIVE - The image is scaled vertically and horizontally by a percentage of the size of the widget.| Field Summary | |
protected java.util.List |
imageList
|
| Fields inherited from class com.jme.widget.image.WidgetImage |
SCALE_MODE_ABSOLUTE, SCALE_MODE_NONE, SCALE_MODE_RELATIVE, SCALE_MODE_SIZE_TO_FIT |
| Fields inherited from class com.jme.widget.WidgetAbstractImpl |
alignment, bgColor, border, cantOwnMouse, DEFAULT_BORDER_SIZE, DEFAULT_COMP_HEIGHT, DEFAULT_COMP_WIDTH, defaultBgColor, defaultFgColor, fgColor, localBound, notifierMouseButtonDown, notifierMouseButtonUp, notifierMouseDrag, notifierMouseEnter, notifierMouseExit, notifierMouseMove, opaque, preferredSize, textureCoords, viewRectangle, visible, zOrder |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation |
| Constructor Summary | |
WidgetAnimatedImage()
|
|
WidgetAnimatedImage(java.util.List imageList)
|
|
WidgetAnimatedImage(java.util.List imageList,
WidgetAlignmentType alignment,
int scaleMode)
|
|
| Method Summary | |
void |
initWidgetRenderer()
initWidgetRenderer |
void |
reset()
|
void |
setImageIndexTo(int newIndex)
|
void |
update()
|
| Methods inherited from class com.jme.widget.image.WidgetImage |
alignCenter, alignEast, alignNorth, alignSouth, alignWest, doMouseButtonDown, doMouseButtonUp, draw, drawBounds, findCollisions, findPick, getHorizontalScale, getImage, getPreferredSize, getScaleMode, getVerticalScale, hasCollision, onDraw, setForceView, setHorizontalScale, setImage, setLocation, setLocation, setPreferredSize, setScaleMode, setSize, setSize, setVerticalScale, setX, setY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.List imageList
| Constructor Detail |
public WidgetAnimatedImage()
public WidgetAnimatedImage(java.util.List imageList)
public WidgetAnimatedImage(java.util.List imageList,
WidgetAlignmentType alignment,
int scaleMode)
| Method Detail |
public void initWidgetRenderer()
WidgetinitWidgetRenderer
initWidgetRenderer in interface WidgetinitWidgetRenderer in class WidgetImagepublic void update()
public void reset()
public void setImageIndexTo(int newIndex)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||