com.jme.widget.image
Class WidgetAnimatedImage

java.lang.Object
  extended bycom.jme.scene.Spatial
      extended bycom.jme.widget.WidgetAbstractImpl
          extended bycom.jme.widget.image.WidgetImage
              extended bycom.jme.widget.image.WidgetAnimatedImage
All Implemented Interfaces:
java.io.Serializable, Widget, WidgetMouseHandlerInterface

public class WidgetAnimatedImage
extends WidgetImage

WidgetAnimatedImage

Since:
0.6
Version:
$$Id: WidgetAnimatedImage.java,v 1.2 2004/09/14 21:52:09 mojomonkey Exp $$
Author:
Mike Kienenberger 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.
See Also:
Serialized Form

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 com.jme.widget.WidgetAbstractImpl
addMouseButtonDownObserver, addMouseButtonUpObserver, addMouseDragObserver, addMouseEnterObserver, addMouseExitObserver, addMouseMoveObserver, canClose, close, deleteMouseButtonDownObserver, deleteMouseButtonDownObservers, deleteMouseButtonUpObserver, deleteMouseButtonUpObservers, deleteMouseDragObserver, deleteMouseDragObservers, deleteMouseEnterObserver, deleteMouseEnterObservers, deleteMouseExitObserver, deleteMouseExitObservers, deleteMouseMoveObserver, deleteMouseMoveObservers, doAlignment, doMouseDrag, doMouseEnter, doMouseExit, doMouseMove, doParentLayout, getAbsoluteLocation, getAlignment, getBgColor, getBorder, getExtents, getFgColor, getHeight, getInputHandler, getLastWidgetUnderMouse, getLocation, getMouseInput, getMouseOwner, getNotifierMouseButtonDown, getNotifierMouseButtonUp, getNotifierMouseDrag, getNotifierMouseEnter, getNotifierMouseExit, getNotifierMouseMove, getOwner, getSize, getTextureCoords, getTopLevelComponent, getViewRectangle, getWidgetParent, getWidgetRenderer, getWidgetUnderMouse, getWidth, getX, getXOffset, getY, getYOffset, getZOrder, handleMouseButtonDown, handleMouseButtonUp, handleMouseDrag, handleMouseEnter, handleMouseExit, handleMouseMove, isApplyOffsetX, isApplyOffsetY, isCantOwnMouse, isCulled, isMouseInWidget, isOpaque, isTopLevel, isVisible, setAlignment, setApplyOffsetX, setApplyOffsetY, setBgColor, setBorder, setCantOwnMouse, setFgColor, setHeight, setInputHandler, setLastWidgetUnderMouse, setMouseOwner, setOwner, setPreferredSize, setTextureCoords, setViewRectangle, setVisible, setWidgetParent, setWidgetRenderer, setWidgetUnderMouse, setWidth, setZOrder, toString, updateWorldBound
 
Methods inherited from class com.jme.scene.Spatial
addController, applyDefaultStates, applyRenderState, calculateCollisions, calculatePick, clearCurrentState, clearCurrentStates, clearRenderState, getController, getControllers, getCurrentState, getLastFrustumIntersection, getLightCombineMode, getLocalRotation, getLocalScale, getLocalTranslation, getName, getParent, getRenderQueueMode, getRenderStateList, getTextureCombineMode, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, isForceCulled, isForceView, onDrawBounds, propagateBoundToRoot, propagateStatesFromRoot, putClone, removeController, removeFromParent, setForceCull, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setName, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setWorldBound, updateCollisionTree, updateGeometricState, updateRenderState, updateRenderState, updateWorldData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

imageList

protected java.util.List imageList
Constructor Detail

WidgetAnimatedImage

public WidgetAnimatedImage()

WidgetAnimatedImage

public WidgetAnimatedImage(java.util.List imageList)

WidgetAnimatedImage

public WidgetAnimatedImage(java.util.List imageList,
                           WidgetAlignmentType alignment,
                           int scaleMode)
Method Detail

initWidgetRenderer

public void initWidgetRenderer()
Description copied from interface: Widget
initWidgetRenderer

Specified by:
initWidgetRenderer in interface Widget
Overrides:
initWidgetRenderer in class WidgetImage

update

public void update()

reset

public void reset()

setImageIndexTo

public void setImageIndexTo(int newIndex)