public class BaseDrawable extends java.lang.Object implements Drawable
| Constructor and Description |
|---|
BaseDrawable() |
BaseDrawable(Drawable drawable)
Creates a new empty drawable with the same sizing information as the specified drawable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Batch batch,
float x,
float y,
float width,
float height)
Draws this drawable at the specified bounds.
|
float |
getBottomHeight() |
float |
getLeftWidth() |
float |
getMinHeight() |
float |
getMinWidth() |
java.lang.String |
getName() |
float |
getRightWidth() |
float |
getTopHeight() |
void |
setBottomHeight(float bottomHeight) |
void |
setLeftWidth(float leftWidth) |
void |
setMinHeight(float minHeight) |
void |
setMinWidth(float minWidth) |
void |
setName(java.lang.String name) |
void |
setRightWidth(float rightWidth) |
void |
setTopHeight(float topHeight) |
java.lang.String |
toString() |
public BaseDrawable()
public BaseDrawable(Drawable drawable)
public void draw(Batch batch, float x, float y, float width, float height)
DrawableBatch.getColor(), possibly by mixing
its own color.public float getLeftWidth()
getLeftWidth in interface Drawablepublic void setLeftWidth(float leftWidth)
setLeftWidth in interface Drawablepublic float getRightWidth()
getRightWidth in interface Drawablepublic void setRightWidth(float rightWidth)
setRightWidth in interface Drawablepublic float getTopHeight()
getTopHeight in interface Drawablepublic void setTopHeight(float topHeight)
setTopHeight in interface Drawablepublic float getBottomHeight()
getBottomHeight in interface Drawablepublic void setBottomHeight(float bottomHeight)
setBottomHeight in interface Drawablepublic float getMinWidth()
getMinWidth in interface Drawablepublic void setMinWidth(float minWidth)
setMinWidth in interface Drawablepublic float getMinHeight()
getMinHeight in interface Drawablepublic void setMinHeight(float minHeight)
setMinHeight in interface Drawablepublic java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Object