Package com.prineside.tdi2.scene2d.utils
Class BaseDrawable
java.lang.Object
com.prineside.tdi2.scene2d.utils.BaseDrawable
- All Implemented Interfaces:
Drawable
- Direct Known Subclasses:
NinePatchDrawable,QuadDrawable,QuadDrawableStack,SpriteDrawable,TextureRegionDrawable
Drawable that stores the size information but doesn't draw anything.
- Author:
- Nathan Sweet
-
Constructor Summary
ConstructorsConstructorDescriptionBaseDrawable(Drawable drawable) Creates a new empty drawable with the same sizing information as the specified drawable. -
Method Summary
Modifier and TypeMethodDescriptionvoidDraws this drawable at the specified bounds.floatfloatfloatfloatgetName()floatfloatvoidsetBottomHeight(float bottomHeight) voidsetLeftWidth(float leftWidth) voidsetMinHeight(float minHeight) voidsetMinSize(float minWidth, float minHeight) voidsetMinWidth(float minWidth) voidvoidsetPadding(float topHeight, float leftWidth, float bottomHeight, float rightWidth) voidsetRightWidth(float rightWidth) voidsetTopHeight(float topHeight) toString()
-
Constructor Details
-
BaseDrawable
public BaseDrawable() -
BaseDrawable
Creates a new empty drawable with the same sizing information as the specified drawable.
-
-
Method Details
-
draw
Description copied from interface:DrawableDraws this drawable at the specified bounds. The drawable should be tinted withBatch.getColor(), possibly by mixing its own color. -
getLeftWidth
public float getLeftWidth()- Specified by:
getLeftWidthin interfaceDrawable
-
setLeftWidth
public void setLeftWidth(float leftWidth) - Specified by:
setLeftWidthin interfaceDrawable
-
getRightWidth
public float getRightWidth()- Specified by:
getRightWidthin interfaceDrawable
-
setRightWidth
public void setRightWidth(float rightWidth) - Specified by:
setRightWidthin interfaceDrawable
-
getTopHeight
public float getTopHeight()- Specified by:
getTopHeightin interfaceDrawable
-
setTopHeight
public void setTopHeight(float topHeight) - Specified by:
setTopHeightin interfaceDrawable
-
getBottomHeight
public float getBottomHeight()- Specified by:
getBottomHeightin interfaceDrawable
-
setBottomHeight
public void setBottomHeight(float bottomHeight) - Specified by:
setBottomHeightin interfaceDrawable
-
setPadding
public void setPadding(float topHeight, float leftWidth, float bottomHeight, float rightWidth) -
getMinWidth
public float getMinWidth()- Specified by:
getMinWidthin interfaceDrawable
-
setMinWidth
public void setMinWidth(float minWidth) - Specified by:
setMinWidthin interfaceDrawable
-
getMinHeight
public float getMinHeight()- Specified by:
getMinHeightin interfaceDrawable
-
setMinHeight
public void setMinHeight(float minHeight) - Specified by:
setMinHeightin interfaceDrawable
-
setMinSize
public void setMinSize(float minWidth, float minHeight) -
getName
-
setName
-
toString
-