Package arc.scene.style
Class BaseDrawable
java.lang.Object
arc.scene.style.BaseDrawable
- All Implemented Interfaces:
Drawable
- Direct Known Subclasses:
NinePatchDrawable
,TextureRegionDrawable
Drawable that stores the size information but doesn't draw anything.
-
Constructor Summary
ConstructorDescriptionBaseDrawable
(Drawable drawable) Creates a new empty drawable with the same sizing information as the specified drawable. -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(float x, float y, float width, float height) Draws this drawable at the specified bounds.void
draw
(float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation) float
float
float
float
getName()
float
float
void
setBottomHeight
(float bottomHeight) void
setLeftWidth
(float leftWidth) void
setMinHeight
(float minHeight) void
setMinWidth
(float minWidth) void
void
setRightWidth
(float rightWidth) void
setTopHeight
(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
public void draw(float x, float y, float width, float height) Description copied from interface:Drawable
Draws this drawable at the specified bounds. -
draw
public void draw(float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation) -
getLeftWidth
public float getLeftWidth()- Specified by:
getLeftWidth
in interfaceDrawable
-
setLeftWidth
public void setLeftWidth(float leftWidth) - Specified by:
setLeftWidth
in interfaceDrawable
-
getRightWidth
public float getRightWidth()- Specified by:
getRightWidth
in interfaceDrawable
-
setRightWidth
public void setRightWidth(float rightWidth) - Specified by:
setRightWidth
in interfaceDrawable
-
getTopHeight
public float getTopHeight()- Specified by:
getTopHeight
in interfaceDrawable
-
setTopHeight
public void setTopHeight(float topHeight) - Specified by:
setTopHeight
in interfaceDrawable
-
getBottomHeight
public float getBottomHeight()- Specified by:
getBottomHeight
in interfaceDrawable
-
setBottomHeight
public void setBottomHeight(float bottomHeight) - Specified by:
setBottomHeight
in interfaceDrawable
-
getMinWidth
public float getMinWidth()- Specified by:
getMinWidth
in interfaceDrawable
-
setMinWidth
public void setMinWidth(float minWidth) - Specified by:
setMinWidth
in interfaceDrawable
-
getMinHeight
public float getMinHeight()- Specified by:
getMinHeight
in interfaceDrawable
-
setMinHeight
public void setMinHeight(float minHeight) - Specified by:
setMinHeight
in interfaceDrawable
-
getName
-
setName
-
toString
-