public class BaseDrawable extends 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() |
String |
getName() |
float |
getRightWidth() |
float |
getTopHeight() |
void |
setBottomHeight(float bottomHeight) |
void |
setLeftWidth(float leftWidth) |
void |
setMinHeight(float minHeight) |
void |
setMinWidth(float minWidth) |
void |
setName(String name) |
void |
setRightWidth(float rightWidth) |
void |
setTopHeight(float topHeight) |
String |
toString() |
public BaseDrawable()
public BaseDrawable(Drawable drawable)
public void draw(Batch batch, float x, float y, float width, float height)
Drawable
Batch.getColor()
, possibly by mixing
its own color.public float getLeftWidth()
getLeftWidth
in interface Drawable
public void setLeftWidth(float leftWidth)
setLeftWidth
in interface Drawable
public float getRightWidth()
getRightWidth
in interface Drawable
public void setRightWidth(float rightWidth)
setRightWidth
in interface Drawable
public float getTopHeight()
getTopHeight
in interface Drawable
public void setTopHeight(float topHeight)
setTopHeight
in interface Drawable
public float getBottomHeight()
getBottomHeight
in interface Drawable
public void setBottomHeight(float bottomHeight)
setBottomHeight
in interface Drawable
public float getMinWidth()
getMinWidth
in interface Drawable
public void setMinWidth(float minWidth)
setMinWidth
in interface Drawable
public float getMinHeight()
getMinHeight
in interface Drawable
public void setMinHeight(float minHeight)
setMinHeight
in interface Drawable
public String getName()
public void setName(String name)
Copyright © 2015. All rights reserved.