public interface NinePatch
Modifier and Type | Method and Description |
---|---|
float |
getBottomHeight() |
Color |
getColor() |
float |
getLeftWidth() |
float |
getMiddleHeight() |
float |
getMiddleWidth() |
float |
getPaddingBottom()
Returns the bottom padding if set, else returns
getBottomHeight() . |
float |
getPaddingLeft()
Returns the left padding if set, else returns
getLeftWidth() . |
float |
getPaddingRight()
Returns the right padding if set, else returns
getRightWidth() . |
float |
getPaddingTop()
Returns the top padding if set, else returns
getTopHeight() . |
float |
getRightWidth() |
Texture |
getTexture() |
float |
getTopHeight() |
float |
getTotalHeight() |
float |
getTotalWidth() |
void |
render(Graphics g,
float x,
float y,
float width,
float height) |
void |
scale(float scaleX,
float scaleY) |
void |
setBottomHeight(float bottomHeight)
Set the draw-time height of the three bottom edge patches
|
void |
setColor(Color color)
Copy given color.
|
void |
setLeftWidth(float leftWidth)
Set the draw-time width of the three left edge patches
|
void |
setMiddleHeight(float middleHeight)
Set the height of the middle row of the patch.
|
void |
setMiddleWidth(float middleWidth)
Set the width of the middle column of the patch.
|
void |
setPadding(float left,
float right,
float top,
float bottom)
Set the padding for content inside this ninepatch.
|
void |
setPaddingBottom(float bottom)
|
void |
setPaddingLeft(float left)
|
void |
setPaddingRight(float right)
|
void |
setPaddingTop(float top)
|
void |
setRightWidth(float rightWidth)
Set the draw-time width of the three right edge patches
|
void |
setTopHeight(float topHeight)
Set the draw-time height of the three top edge patches
|
void render(Graphics g, float x, float y, float width, float height)
Color getColor()
void setColor(Color color)
float getLeftWidth()
void setLeftWidth(float leftWidth)
float getRightWidth()
void setRightWidth(float rightWidth)
float getTopHeight()
void setTopHeight(float topHeight)
float getBottomHeight()
void setBottomHeight(float bottomHeight)
float getMiddleWidth()
void setMiddleWidth(float middleWidth)
default total width
.float getMiddleHeight()
void setMiddleHeight(float middleHeight)
default total height
.float getTotalWidth()
float getTotalHeight()
void setPadding(float left, float right, float top, float bottom)
float getPaddingLeft()
getLeftWidth()
.void setPaddingLeft(float left)
float getPaddingRight()
getRightWidth()
.void setPaddingRight(float right)
float getPaddingTop()
getTopHeight()
.void setPaddingTop(float top)
float getPaddingBottom()
getBottomHeight()
.void setPaddingBottom(float bottom)
void scale(float scaleX, float scaleY)
Texture getTexture()