public class ImageButton extends Button
Button that only contains an imageeffects, styleId, visibility, zIndex| Constructor and Description | 
|---|
ImageButton()
Constructor. 
 | 
ImageButton(java.lang.String id)
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 | 
TextureRegion | 
getTextureRegion(com.badlogic.gdx.assets.AssetManager assetManager)
Returns the current  
TextureRegion for this ImageButton | 
boolean | 
isResponsive()
Returns if the image should scale to the size of the  
ImageButton | 
void | 
setLayout(java.lang.String layout)
Sets the current layout for this  
Button | 
void | 
setResponsive(boolean responsive)
Sets if the image should scale to the size of the  
ImageButton | 
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 ImageButton | 
void | 
setTexturePath(java.lang.String texturePath)
Sets the current texture path. 
 | 
void | 
setTextureRegion(TextureRegion textureRegion)
Sets the current  
TextureRegion used by this ImageButton | 
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 | 
addActionListener, getLayout, isEnabled, notifyActionListenersOfBeginEvent, notifyActionListenersOfEndEvent, removeActionListener, setEnabledaddEffectListener, addHoverListener, applyEffect, equals, getElementById, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeEffectListener, removeHoverListener, setDebugEnabledclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddHoverListener, getId, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeHoverListenerpublic ImageButton()
ImageButtonpublic ImageButton(java.lang.String id)
id - The unique ID for this ImageButtonpublic TextureRegion getTextureRegion(com.badlogic.gdx.assets.AssetManager assetManager)
TextureRegion for this ImageButtonassetManager - The game's AssetManagerTextureRegion has been setpublic void setTextureRegion(TextureRegion textureRegion)
TextureRegion used by this ImageButtontextureRegion - The TextureRegion to usepublic void setTexture(com.badlogic.gdx.graphics.Texture texture)
Texture used by this ImageButtontexture - The Texture to usepublic void setTexturePath(java.lang.String texturePath)
TextureRegion by loading it via the AssetManagertexturePath - The path to the texturepublic boolean isResponsive()
ImageButtonpublic void setResponsive(boolean responsive)
ImageButtonresponsive - 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 setVisibility(Visibility visibility)
UiElementVisibility of this UiElementsetVisibility in class UiElementvisibility - The Visibility to setpublic void setStyleId(java.lang.String styleId)
UiElementUiElementsetStyleId in class UiElementstyleId - The style id to setpublic void syncWithRenderNode()
UiElementUiElement and RenderNodesyncWithRenderNode in class UiElementpublic void setZIndex(int zIndex)
UiElementUiElement. Elements will be rendered on
 different Z layers in ascending Z order (negatives values first, positive values last)