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  
RenderNode for this element to a parent
 RenderNode | 
void | 
detach(ParentRenderNode<?,?> parentRenderNode)
Detaches this element's  
RenderNode from a parent
 RenderNode | 
java.lang.String | 
getTexturePath()
Returns the current texture path 
 | 
TextureRegion | 
getTextureRegion(com.badlogic.gdx.assets.AssetManager assetManager)
Returns the current  
TextureRegion for this Image | 
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  
Image should scale to the size of its parent | 
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  
Image should 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  
Texture used by this Image | 
void | 
setTexturePath(java.lang.String texturePath)
Sets the current texture path. 
 | 
void | 
setTextureRegion(TextureRegion textureRegion)
Sets the current  
TextureRegion used by this Image | 
void | 
setVisibility(Visibility visibility)
Sets the current  
Visibility of this UiElement | 
void | 
setZIndex(int zIndex)
Sets the Z index of this  
UiElement. | 
void | 
syncWithRenderNode()
Syncs data between the  
UiElement and RenderNode | 
addEffectListener, addHoverListener, applyEffect, equals, getElementById, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeEffectListener, removeHoverListener, setDebugEnabledpublic 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 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