Class NinePatchTexture
java.lang.Object
zombie.asset.Asset
zombie.core.textures.NinePatchTexture
-
Nested Class Summary
Nested classes/interfaces inherited from class Asset
Asset.ObserverCallback, Asset.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AssetTypestatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionintgetColumnWidth(int column) intintintgetRowHeight(int row) static NinePatchTexturegetSharedTexture(String path) getType()booleanbooleanbooleanbooleanbooleanis1x3()booleanis3x1()booleanis9x9()static voidvoidrender(float x, float y, float width, float height) voidrender(float x, float y, float width, float height, float r, float g, float b, float a) static voidReset()voidsetImageData(ImageData imageData) Methods inherited from class Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, isEmpty, isFailure, isReady, onCreated, removeDependency, setAssetParams
-
Field Details
-
ASSET_TYPE
-
TOP_LEFT
public static final int TOP_LEFT- See Also:
-
TOP_MIDDLE
public static final int TOP_MIDDLE- See Also:
-
TOP_RIGHT
public static final int TOP_RIGHT- See Also:
-
MIDDLE_LEFT
public static final int MIDDLE_LEFT- See Also:
-
MIDDLE_CENTER
public static final int MIDDLE_CENTER- See Also:
-
MIDDLE_RIGHT
public static final int MIDDLE_RIGHT- See Also:
-
BOTTOM_LEFT
public static final int BOTTOM_LEFT- See Also:
-
BOTTOM_MIDDLE
public static final int BOTTOM_MIDDLE- See Also:
-
BOTTOM_RIGHT
public static final int BOTTOM_RIGHT- See Also:
-
-
Method Details
-
onTexturePacksChanged
public static void onTexturePacksChanged() -
Reset
public static void Reset() -
getType
-
getColumnWidth
public int getColumnWidth(int column) -
getRowHeight
public int getRowHeight(int row) -
getMinWidth
public int getMinWidth() -
getMinHeight
public int getMinHeight() -
hasTopRow
public boolean hasTopRow() -
hasBottomRow
public boolean hasBottomRow() -
hasLeftColumn
public boolean hasLeftColumn() -
hasRightColumn
public boolean hasRightColumn() -
is9x9
public boolean is9x9() -
is3x1
public boolean is3x1() -
is1x3
public boolean is1x3() -
render
public void render(float x, float y, float width, float height) -
render
public void render(float x, float y, float width, float height, float r, float g, float b, float a) -
setImageData