public class BackgroundColor
extends java.lang.Object
implements com.badlogic.gdx.scenes.scene2d.utils.Drawable
| Constructor and Description |
|---|
BackgroundColor(java.lang.String filename) |
BackgroundColor(java.lang.String filename,
float x,
float y) |
BackgroundColor(java.lang.String filename,
float x,
float y,
float width,
float height) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height) |
float |
getBottomHeight() |
java.lang.Boolean |
getFillParent() |
float |
getHeight() |
float |
getLeftWidth() |
float |
getMinHeight() |
float |
getMinWidth() |
float |
getRightWidth() |
float |
getTopHeight() |
float |
getWidth() |
float |
getX() |
float |
getY() |
void |
setBottomHeight(float bottomHeight) |
void |
setColor(float r,
float g,
float b,
float a) |
void |
setColor(int r,
int g,
int b,
int a) |
void |
setFillParent(java.lang.Boolean fillParent) |
void |
setHeight(float height) |
void |
setLeftWidth(float leftWidth) |
void |
setMinHeight(float minHeight) |
void |
setMinWidth(float minWidth) |
void |
setRightWidth(float rightWidth) |
void |
setTopHeight(float topHeight) |
void |
setWidth(float width) |
void |
setX(float x) |
void |
setY(float y) |
public BackgroundColor(java.lang.String filename)
public BackgroundColor(java.lang.String filename,
float x,
float y)
public BackgroundColor(java.lang.String filename,
float x,
float y,
float width,
float height)
public void setColor(int r,
int g,
int b,
int a)
public void setColor(float r,
float g,
float b,
float a)
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height)
draw in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic float getLeftWidth()
getLeftWidth in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic void setLeftWidth(float leftWidth)
setLeftWidth in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic float getRightWidth()
getRightWidth in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic void setRightWidth(float rightWidth)
setRightWidth in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic float getTopHeight()
getTopHeight in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic void setTopHeight(float topHeight)
setTopHeight in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic float getBottomHeight()
getBottomHeight in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic void setBottomHeight(float bottomHeight)
setBottomHeight in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic float getMinWidth()
getMinWidth in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic void setMinWidth(float minWidth)
setMinWidth in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic float getMinHeight()
getMinHeight in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic void setMinHeight(float minHeight)
setMinHeight in interface com.badlogic.gdx.scenes.scene2d.utils.Drawablepublic float getX()
public void setX(float x)
public float getY()
public void setY(float y)
public float getWidth()
public void setWidth(float width)
public float getHeight()
public void setHeight(float height)
public java.lang.Boolean getFillParent()
public void setFillParent(java.lang.Boolean fillParent)