Java com.badlogic.gdx.graphics.g2d NinePatch fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics.g2d NinePatch fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics.g2d NinePatch.

The text is from its open source code.

Constructor

NinePatch(Texture texture, int left, int right, int top, int bottom)
Create a ninepatch by cutting up the given texture into nine patches.
NinePatch(TextureRegion region, int left, int right, int top, int bottom)
Create a ninepatch by cutting up the given texture region into nine patches.
NinePatch(Texture texture, Color color)
Construct a degenerate "nine" patch with only a center component.
NinePatch(TextureRegion region, Color color)
Construct a degenerate "nine" patch with only a center component.
NinePatch(NinePatch ninePatch, Color color)
NinePatch(Texture texture)
Construct a degenerate "nine" patch with only a center component.
NinePatch(TextureRegion region)
Construct a degenerate "nine" patch with only a center component.
NinePatch(TextureRegion... patches)
Construct a nine patch from the given nine texture regions.
NinePatch(NinePatch ninePatch)

Method

TexturegetTexture()
floatgetTotalHeight()
floatgetTotalWidth()
voidscale(float scaleX, float scaleY)
Multiplies the top/left/bottom/right sizes and padding by the specified amount.
voidsetBottomHeight(float bottomHeight)
Set the draw-time height of the three bottom edge patches
voidsetColor(Color color)
Copy given color.
voidsetLeftWidth(float leftWidth)
Set the draw-time width of the three left edge patches
voidsetMiddleHeight(float middleHeight)
Set the height of the middle row of the patch.
voidsetMiddleWidth(float middleWidth)
Set the width of the middle column of the patch.
voidsetPadding(int left, int right, int top, int bottom)
Set the padding for content inside this ninepatch.
voidsetRightWidth(float rightWidth)
Set the draw-time width of the three right edge patches
voidsetTopHeight(float topHeight)
Set the draw-time height of the three top edge patches