| Modifier and Type | Field and Description | 
|---|---|
| protected ImageRenderNode | renderNode | 
effects, styleId, visibility, zIndex| Constructor and Description | 
|---|
| Image()Constructor. | 
| Image(java.lang.String id)Constructor | 
| Image(java.lang.String id,
     java.lang.String texturePath)Constructor | 
| Image(java.lang.String id,
     com.badlogic.gdx.graphics.Texture texture)Constructor | 
| Image(java.lang.String id,
     TextureRegion textureRegion)Constructor | 
| Image(com.badlogic.gdx.graphics.Texture texture)Constructor. | 
| Image(TextureRegion textureRegion)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 | 
| java.lang.String | getAtlas()Returns the atlas (if any) to look up the texture in | 
| java.lang.String | getTexturePath()Returns the current texture path | 
| TextureRegion | getTextureRegion(com.badlogic.gdx.assets.AssetManager assetManager)Returns the current  TextureRegionfor thisImage | 
| 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 | isResponsive()Returns if this  Imageshould scale to the size of its parent | 
| 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 | setResponsive(boolean responsive)Sets if this  Imageshould scale to the size of its parent | 
| void | setStyleId(java.lang.String styleId)Sets the style if for this  UiElement | 
| void | setTexture(com.badlogic.gdx.graphics.Texture texture)Sets the current  Textureused by thisImage | 
| void | setTexturePath(java.lang.String texturePath)Sets the current texture path. | 
| void | setTextureRegion(TextureRegion textureRegion)Sets the current  TextureRegionused by thisImage | 
| void | setVisibility(Visibility visibility)Sets the current  Visibilityof thisUiElement | 
| void | setZIndex(int zIndex)Sets the Z index of this  UiElement. | 
| void | syncWithRenderNode()Syncs data between the  UiElementandRenderNode | 
addEffectListener, addHoverListener, applyEffect, equals, getElementById, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeEffectListener, removeHoverListener, setDebugEnabledprotected ImageRenderNode renderNode
public Image()
Imagepublic Image(java.lang.String id)
id - The unique ID for this Imagepublic Image(java.lang.String id,
             java.lang.String texturePath)
id - The unique ID for this ImagetexturePath - The path for the Texture to be loaded by the
            AssetManagerpublic Image(com.badlogic.gdx.graphics.Texture texture)
Imagetexture - The Texture to usepublic Image(TextureRegion textureRegion)
ImagetextureRegion - The TextureRegion to usepublic Image(java.lang.String id,
             com.badlogic.gdx.graphics.Texture texture)
id - The unique ID for this Imagetexture - The Texture to usepublic Image(java.lang.String id,
             TextureRegion textureRegion)
id - The unique ID for this ImagetextureRegion - The TextureRegion to usepublic 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 TextureRegion getTextureRegion(com.badlogic.gdx.assets.AssetManager assetManager)
TextureRegion for this ImageassetManager - The game's AssetManagerTextureRegion has been setpublic void setTextureRegion(TextureRegion textureRegion)
TextureRegion used by this ImagetextureRegion - The TextureRegion to usepublic void setTexture(com.badlogic.gdx.graphics.Texture texture)
Texture used by this Imagetexture - The Texture to usepublic java.lang.String getTexturePath()
public void setTexturePath(java.lang.String texturePath)
TextureRegion by loading it via the AssetManagertexturePath - The path to the texturepublic 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()
Image should scale to the size of its parentpublic void setResponsive(boolean responsive)
Image 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 syncWithRenderNode()
UiElementUiElement and RenderNodesyncWithRenderNode 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 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 flipped