Package arc.scene.style
Class ScaledNinePatchDrawable
java.lang.Object
arc.scene.style.BaseDrawable
arc.scene.style.NinePatchDrawable
arc.scene.style.ScaledNinePatchDrawable
- All Implemented Interfaces:
Drawable
,TransformDrawable
-
Field Summary
Fields inherited from class arc.scene.style.NinePatchDrawable
patch
-
Constructor Summary
ConstructorDescriptionScaledNinePatchDrawable
(NinePatch patch) ScaledNinePatchDrawable
(NinePatch patch, float multiplier) ScaledNinePatchDrawable
(NinePatchDrawable drawable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(float x, float y, float width, float height) Draws this drawable at the specified bounds.float
float
float
float
void
Methods inherited from class arc.scene.style.NinePatchDrawable
draw, getPatch, tint
Methods inherited from class arc.scene.style.BaseDrawable
getMinHeight, getMinWidth, getName, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setName, setRightWidth, setTopHeight, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface arc.scene.style.Drawable
getMinHeight, getMinWidth, imageSize, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setRightWidth, setTopHeight
-
Constructor Details
-
ScaledNinePatchDrawable
-
ScaledNinePatchDrawable
-
ScaledNinePatchDrawable
-
-
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.- Specified by:
draw
in interfaceDrawable
- Overrides:
draw
in classNinePatchDrawable
-
setPatch
- Overrides:
setPatch
in classNinePatchDrawable
-
getLeftWidth
public float getLeftWidth()- Specified by:
getLeftWidth
in interfaceDrawable
- Overrides:
getLeftWidth
in classBaseDrawable
-
getRightWidth
public float getRightWidth()- Specified by:
getRightWidth
in interfaceDrawable
- Overrides:
getRightWidth
in classBaseDrawable
-
getTopHeight
public float getTopHeight()- Specified by:
getTopHeight
in interfaceDrawable
- Overrides:
getTopHeight
in classBaseDrawable
-
getBottomHeight
public float getBottomHeight()- Specified by:
getBottomHeight
in interfaceDrawable
- Overrides:
getBottomHeight
in classBaseDrawable
-