NinePatch.
The drawable sizes are set when the ninepatch is set, but they are separate values. Eg, Drawable#getLeftWidth() could
be set to more than NinePatch#getLeftWidth() in order to provide more space on the left than actually exists in the
ninepatch.
The min size is set to the ninepatch total size by default. It could be set to the left+right and top+bottom, excluding the middle size, to allow the drawable to be sized down as small as possible.
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | draw(Batch batch, float x, float y, float width, float height)
Overrides com. Implements com. Draws this drawable at the specified bounds. |
| public void | draw(Batch batch, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation)
Implements com.
|
| public NinePatch | |
| public void | |
| public NinePatchDrawable |
| patch | back to summary |
|---|---|
| private NinePatch patch | |
| NinePatchDrawable | back to summary |
|---|---|
| public NinePatchDrawable() Creates an uninitialized NinePatchDrawable. The ninepatch must be | |
| NinePatchDrawable | back to summary |
|---|---|
| public NinePatchDrawable(NinePatch patch) | |
| NinePatchDrawable | back to summary |
|---|---|
| public NinePatchDrawable(NinePatchDrawable drawable) | |
| draw | back to summary |
|---|---|
| public void draw(Batch batch, float x, float y, float width, float height) Overrides com. Implements com. Doc from com. Draws this drawable at the specified bounds. The drawable should be tinted with | |
| draw | back to summary |
|---|---|
| public void draw(Batch batch, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation) Implements com. | |
| getPatch | back to summary |
|---|---|
| public NinePatch getPatch() | |
| setPatch | back to summary |
|---|---|
| public void setPatch(NinePatch patch) Sets this drawable's ninepatch and set the min width, min height, top height, right width, bottom height, and left width to the patch's padding. | |
| tint | back to summary |
|---|---|
| public NinePatchDrawable tint(Color tint) Creates a new drawable that renders the same as this drawable tinted the specified color. | |