| Modifier and Type | Field and Description | 
|---|---|
| protected AnimatedImageRenderNode | renderNode | 
deferredLayout, deferredRender, deferredUpdate, effects, height, styleId, visibility, width, x, y, zIndex| Constructor and Description | 
|---|
| AnimatedImage()Constructor. | 
| AnimatedImage(java.lang.String id)Constructor | 
| AnimatedImage(java.lang.String id,
             float x,
             float y,
             float width,
             float height)Constructor | 
| AnimatedImage(java.lang.String id,
             java.lang.String[] texturePaths,
             float[] durations)Constructor | 
| AnimatedImage(java.lang.String id,
             com.badlogic.gdx.graphics.Texture[] textures,
             float[] durations)Constructor | 
| AnimatedImage(java.lang.String id,
             TextureRegion[] textureRegions,
             float[] durations)Constructor | 
| AnimatedImage(com.badlogic.gdx.graphics.Texture[] textures,
             float[] durations)Constructor. | 
| AnimatedImage(TextureRegion[] textureRegions,
             float[] durations)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | attach(ParentRenderNode<?,?> parentRenderNode)Attaches a  RenderNodefor this element to a parentRenderNode | 
| void | detach(ParentRenderNode<?,?> parentRenderNode)Detaches this element's  RenderNodefrom a parentRenderNode | 
| protected void | estimateSize() | 
| java.lang.String | getAtlas()Returns the atlas (if any) to look up the texture in | 
| float[] | getFrameDurations()Returns the animation frame durations | 
| int | getRenderHeight()Returns the height this element is currently rendering at | 
| int | getRenderWidth()Returns the width this element is currently rendering at | 
| int | getRenderX()Returns X coordinate of where this element is currently rendering | 
| int | getRenderY()Returns Y coordinate of where this element is currently rendering | 
| StyleRule | getStyleRule() | 
| java.lang.String[] | getTexturePaths()Returns the texture paths for the animation | 
| TextureRegion[] | getTextureRegions(com.badlogic.gdx.assets.AssetManager assetManager)Returns the current  TextureRegionarray for thisAnimatedImage | 
| void | invokeBeginHover()Triggers the begin hover event | 
| void | invokeEndHover()Triggers the end hover event | 
| boolean | isFlipX()Returns if the texture should be flipped horizontally during rendering | 
| boolean | isFlipY()Returns if the texture should be flipped vertically during rendering | 
| boolean | isInitialLayoutOccurred() | 
| boolean | isInitialUpdateOccurred() | 
| boolean | isRenderNodeDirty() | 
| boolean | isResponsive()Returns if this  AnimatedImageshould scale to the size of its
 parent | 
| void | postDeserialize() | 
| void | setAtlas(java.lang.String atlas)Sets the atlas to look up the texture in | 
| void | setFlipX(boolean flipX)Sets if the texture should be flipped horizontally during rendering | 
| void | setFlipY(boolean flipY)Sets if the texture should be flipped vertically during rendering | 
| void | setRenderNodeDirty() | 
| void | setResponsive(boolean responsive)Sets if this  AnimatedImageshould scale to the size of its parent | 
| void | setStyleId(java.lang.String styleId)Sets the style if for this  UiElement | 
| void | setTexturePaths(java.lang.String[] texturePaths,
               float[] durations)Sets the current texture path array. | 
| void | setTextureRegions(TextureRegion[] textureRegions,
                 float[] durations)Sets the current  TextureRegionarray used by thisAnimatedImage | 
| void | setTextures(com.badlogic.gdx.graphics.Texture[] textures,
           float[] durations)Sets the current  Texturearray used by thisAnimatedImage | 
| void | setVisibility(Visibility visibility)Sets the current  Visibilityof thisUiElement | 
| void | setZIndex(int zIndex)Sets the Z index of this  UiElement. | 
| void | syncWithUpdate(UiContainerRenderTree rootNode)Syncs data between the  UiElementandRenderNodeduring update | 
addEffectListener, addHoverListener, addNodeStateListener, alignAbove, alignBelow, alignEdgeToEdge, alignLeftOf, alignRightOf, applyEffect, deferUntilLayout, deferUntilLayout, deferUntilRender, deferUntilRender, deferUntilUpdate, deferUntilUpdate, deferUntilUpdate, deferUntilUpdate, equals, getContentHeight, getContentWidth, getElementById, getHeight, getId, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getStyleId, getVisibility, getWidth, getX, getY, getZIndex, hashCode, isDebugEnabled, isFlexLayout, isInitialised, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, notifyNodeStateListeners, removeEffectListener, removeHoverListener, removeNodeStateListener, set, setContentHeight, setContentWidth, setDebugEnabled, setHeight, setHeightToContentHeightOf, setHeightToHeightOf, setWidth, setWidthToContentWidthOf, setWidthToWidthOf, setX, setXY, setY, snapTo, snapTo, syncWithLayout, syncWithRenderprotected AnimatedImageRenderNode renderNode
public AnimatedImage()
AnimatedImagepublic AnimatedImage(java.lang.String id)
id - The unique ID for this AnimatedImagepublic AnimatedImage(java.lang.String id,
                     float x,
                     float y,
                     float width,
                     float height)
id - The unique ID for this element (if null an ID will be generated)x - The x coordinate of this element relative to its parenty - The y coordinate of this element relative to its parentwidth - The width of this elementheight - The height of this elementpublic AnimatedImage(java.lang.String id,
                     java.lang.String[] texturePaths,
                     float[] durations)
id - The unique ID for this AnimatedImagetexturePaths - The paths for the textures to be loaded by the
            AssetManagerdurations - The durations for each frame (in seconds)public AnimatedImage(com.badlogic.gdx.graphics.Texture[] textures,
                     float[] durations)
AnimatedImagetextures - The Textures to use for each framedurations - The durations for each frame (in seconds)public AnimatedImage(TextureRegion[] textureRegions, float[] durations)
AnimatedImagetextureRegions - The TextureRegions to use for each framedurations - The durations for each frame (in seconds)public AnimatedImage(java.lang.String id,
                     com.badlogic.gdx.graphics.Texture[] textures,
                     float[] durations)
id - The unique ID for this AnimatedImagetextures - The Textures to use for each framedurations - The durations for each frame (in seconds)public AnimatedImage(java.lang.String id,
                     TextureRegion[] textureRegions,
                     float[] durations)
id - The unique ID for this AnimatedImagetextureRegions - The TextureRegions to use for each framedurations - The durations for each frame (in seconds)public void postDeserialize()
protected void estimateSize()
public void attach(ParentRenderNode<?,?> parentRenderNode)
UiElementRenderNode for this element to a parent
 RenderNodeattach in class UiElementparentRenderNode - The parent RenderNode to attach topublic void detach(ParentRenderNode<?,?> parentRenderNode)
UiElementRenderNode from a parent
 RenderNodedetach in class UiElementparentRenderNode - The parent RenderNode to detach frompublic void invokeBeginHover()
Hoverablepublic void invokeEndHover()
Hoverablepublic TextureRegion[] getTextureRegions(com.badlogic.gdx.assets.AssetManager assetManager)
TextureRegion array for this
 AnimatedImageassetManager - The game's AssetManagerpublic void setTextureRegions(TextureRegion[] textureRegions, float[] durations)
TextureRegion array used by this
 AnimatedImagetextureRegions - The TextureRegions to use for the animationdurations - The durations for each frame (in seconds)public void setTextures(com.badlogic.gdx.graphics.Texture[] textures,
                        float[] durations)
Texture array used by this AnimatedImagetextures - The Textures to use for the animationdurations - The durations for each frame (in seconds)public java.lang.String[] getTexturePaths()
public float[] getFrameDurations()
public void setTexturePaths(java.lang.String[] texturePaths,
                            float[] durations)
TextureRegion array by loading it via the AssetManagertexturePaths - The paths to the textures for the animationdurations - The durations for each frame (in seconds)public java.lang.String getAtlas()
public void setAtlas(java.lang.String atlas)
atlas - Null if the texture should not be looked up via an atlaspublic boolean isResponsive()
AnimatedImage should scale to the size of its
 parentpublic void setResponsive(boolean responsive)
AnimatedImage should scale to the size of its parentresponsive - public void setVisibility(Visibility visibility)
UiElementVisibility of this UiElementsetVisibility in class UiElementvisibility - The Visibility to setpublic void syncWithUpdate(UiContainerRenderTree rootNode)
UiElementUiElement and RenderNode during updatesyncWithUpdate in class UiElementpublic void setStyleId(java.lang.String styleId)
UiElementUiElementsetStyleId in class UiElementstyleId - The style id to setpublic void setZIndex(int zIndex)
UiElementUiElement. Elements will be rendered on
 different Z layers in ascending Z order (negatives values first, positive values last)public StyleRule getStyleRule()
getStyleRule in class UiElementpublic boolean isFlipX()
public void setFlipX(boolean flipX)
flipX - True if the texture should be flippedpublic boolean isFlipY()
public void setFlipY(boolean flipY)
flipY - True if the texture should be flippedpublic boolean isRenderNodeDirty()
isRenderNodeDirty in class UiElementpublic void setRenderNodeDirty()
setRenderNodeDirty in class UiElementpublic boolean isInitialLayoutOccurred()
isInitialLayoutOccurred in class UiElementpublic boolean isInitialUpdateOccurred()
isInitialUpdateOccurred in class UiElementpublic int getRenderX()
UiElementgetRenderX in class UiElementInteger.MIN_VALUE if not renderingpublic int getRenderY()
UiElementgetRenderY in class UiElementInteger.MIN_VALUE if not renderingpublic int getRenderWidth()
UiElementgetRenderWidth in class UiElementpublic int getRenderHeight()
UiElementgetRenderHeight in class UiElement