public class Sprite9 extends Rectangular
| Modifier and Type | Field and Description |
|---|---|
protected static int |
NUM_PATCHES |
mFocus, mTouchable, mTouchListener, mTouchPointerIDATT_ASYNC, ATT_SOURCE, mColorBuffer, mTexture, mTextureCoordBuffer, mTextureCoordBufferScaled, mVertexBuffer, TAGATT_ALPHA, ATT_ANIMATOR, ATT_BLEND_MODE, ATT_COLOR, ATT_DEBUG, ATT_ORIGIN_AT_CENTER, ATT_ROTATION, ATT_VISIBLE, mAlive, mAlpha, mAlphaTestEnabled, mAutoUpdateBounds, mBlendFunc, mBounds, mBypassCameraClipping, mColor, mDebugFlags, mFrameDuration, mHasTransformValues, mId, mInvalidateFlags, mManipulators, mMask, mMatrix, mNumManipulators, mOrigin, mParent, mPerspectiveEnabled, mPivot, mPosition, mRotation, mRotationVectorX, mRotationVectorY, mRotationVectorZ, mScale, mScene, mSceneSize, mSize, mSkew, mTransformMatrix, mTransformMatrixValues, mUIConstraint, mVisible, mZFLIP_X, FLIP_YALL, ALPHA, BLEND, BOUNDS, CACHE, CHILDREN, COLOR, DEPTH, FRAME, ORIGIN, PARENT, PARENT_BOUNDS, PERSPECTIVE, PIVOT, POSITION, ROTATION, SCALE, SIZE, SKEW, TEXTURE, TEXTURE_COORDS, TRANSFORM_MATRIX, VERTICES, VISIBILITY, VISUAL| Constructor and Description |
|---|
Sprite9() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected boolean |
drawChildren(GLState glState) |
RectF |
get9Patches() |
boolean |
is9PatchEnabled() |
boolean |
isSizeToTexture() |
protected void |
onTextureLoaded(Texture texture) |
void |
set9PatchEnabled(boolean value) |
void |
set9Patches(float left,
float right,
float top,
float bottom) |
void |
setSize(float w,
float h) |
void |
setSizeToTexture(boolean value) |
void |
setTexture(Texture texture) |
void |
setXMLAttributes(XmlPullParser xmlParser,
UIManager manager) |
protected void |
validateTextureCoordBuffer()
validate texture coords
|
drawWireframe, getTouchListener, hitTest, isTouchable, onTouchEvent, setRect, setTouchable, setTouchListenerdrawStart, flipTextureCoordBuffer, getColorBuffer, getTexture, getTextureCoordBuffer, getVertexBuffer, onAdded, setColorBuffer, setTextureCoordBuffer, setTextureCoordBuffer, setVertexBuffer, updateaddManipulator, draw, drawBounds, drawEnd, getAlpha, getBlendFunc, getBounds, getColor, getDebugFlags, getFps, getGlobalPosition, getHeight, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getMask, getMatrix, getNumManipulators, getObjectTree, getOrigin, getParent, getParentMatrix, getPivot, getPosition, getRotation, getScale, getScene, getSceneSize, getSize, getSkew, getUIConstraint, getWidth, getX, getY, getZ, globalToLocal, invalidate, invalidate, isAlive, isAlphaTestEnabled, isAutoUpdateBounds, isBypassCameraClipping, isOriginAtCenter, isPerspectiveEnabled, isVisible, localToGlobal, move, moveTo, onAddedToScene, onCreateChildren, onPreConcatParentMatrix, onRemoved, onRemovedFromScene, queueEvent, removeAllManipulators, removeFromParent, removeManipulator, rotate, setAlive, setAlpha, setAlphaTestEnabled, setAutoUpdateBounds, setBlendFunc, setBypassCameraClipping, setColor, setDebugFlags, setFps, setId, setMask, setOrigin, setOrigin, setOriginAtCenter, setPerspectiveEnabled, setPivot, setPivot, setPivotAtCenter, setPosition, setPosition, setRotation, setRotationVector, setScale, setScale, setSize, setSkew, setUIConstraint, setVisible, setX, setY, setZ, shouldDraw, toString, updateBounds, updateChildren, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdraw, isPerspectiveEnabled, onAdded, onCreateChildren, setPerspectiveEnabledaddManipulator, getAlpha, getBlendFunc, getBounds, getColor, getFps, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getNumManipulators, getObjectTree, getOrigin, getParent, getPivot, getScene, getSkew, getZ, globalToLocal, invalidate, invalidate, isAlive, isAutoUpdateBounds, isVisible, localToGlobal, onAddedToScene, onRemoved, onRemovedFromScene, queueEvent, removeAllManipulators, removeFromParent, removeManipulator, setAlive, setAlpha, setAutoUpdateBounds, setBlendFunc, setColor, setFps, setId, setOrigin, setOrigin, setOriginAtCenter, setPivot, setPivot, setPivotAtCenter, setSkew, setVisible, setZ, shouldDraw, update, updateBoundsgetHeight, getPosition, getRotation, getScale, getSize, getWidth, getX, getY, move, moveTo, rotate, setPosition, setPosition, setRotation, setScale, setScale, setSize, setX, setYprotected static final int NUM_PATCHES
public void set9Patches(float left,
float right,
float top,
float bottom)
public RectF get9Patches()
public boolean is9PatchEnabled()
public void set9PatchEnabled(boolean value)
public boolean isSizeToTexture()
public void setSizeToTexture(boolean value)
public void setTexture(Texture texture)
setTexture in class Shapetexture - the texture to setprotected void onTextureLoaded(Texture texture)
onTextureLoaded in class Shapeprotected void validateTextureCoordBuffer()
ShapevalidateTextureCoordBuffer in class Shapepublic void setSize(float w,
float h)
setSize in interface ManipulatablesetSize in class Rectangularprotected boolean drawChildren(GLState glState)
drawChildren in class Shapepublic void setXMLAttributes(XmlPullParser xmlParser,
UIManager manager)
setXMLAttributes in interface DisplayObjectsetXMLAttributes in class Rectangularpublic void dispose()
dispose in interface Displayabledispose in class Shape