public class UniClip extends UniSprite implements Playable
mAtlasFrame, mOffsetX, mOffsetYmTextureCoords, NUM_VERTICESmAlive, mAlpha, mAutoUpdateBounds, mBlendColor, mBlendFunc, mBounds, mBypassCameraClipping, mColor, mDebugFlags, mFrameDuration, mGlobalPosition, mHasOrigin, mId, mInvalidateFlags, mManipulators, mMatrix, mMatrixForVertices, mNumManipulators, mOrigin, mOriginAtCenter, mParent, mPivot, mPosition, mRotation, mScale, mScene, mSize, mSkew, mStackable, mVertices, mVisible, mZ, TAGLOOP_NONE, LOOP_REPEAT, LOOP_REVERSEFLIP_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 |
|---|
UniClip() |
UniClip(AtlasFrameSet frameSet) |
| Modifier and Type | Method and Description |
|---|---|
AtlasFrameSet |
getAtlasFrameSet() |
int |
getCurrentFrame() |
RectF |
getFrameRect(int frame) |
int |
getLoop() |
int |
getNumFrames() |
boolean |
isPlaying() |
protected void |
onClipEnd(AtlasFrameSet frameSet) |
void |
play() |
void |
playAt(int frame) |
void |
setAtlasFrameSet(AtlasFrameSet frameSet) |
void |
setLoop(int type) |
void |
setOriginAtCenter() |
void |
stop() |
void |
stopAt(int frame) |
boolean |
update(int deltaTime) |
getAtlasFrame, isSizeToFrame, isSizeToTexture, onAdded, setAtlasFrame, setSizeToFrame, setSizeToTextureresetVertices, setTextureCoords, stackaddManipulator, dispose, drawBounds, drawWireframe, getAlpha, getBlendFunc, getBounds, getColor, getDebugFlags, getFps, getGlobalPosition, getHeight, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getMatrix, getNumManipulators, getNumStackedChildren, getObjectTree, getOrigin, getParent, getPivot, getPosition, getRotation, getScale, getScene, getSize, getSkew, getWidth, getX, getY, getZ, globalToLocal, invalidate, invalidate, isAlive, isAutoUpdateBounds, isBypassCameraClipping, isOriginAtCenter, isStackable, isVisible, localToGlobal, move, moveTo, onAddedToScene, onRemoved, onRemovedFromScene, queueEvent, removeAllManipulators, removeFromParent, removeManipulator, rotate, setAlive, setAlpha, setAutoUpdateBounds, setBlendFunc, setBypassCameraClipping, setColor, setDebugFlags, setFps, setId, setOrigin, setOrigin, setPivot, setPivot, setPivotAtCenter, setPosition, setPosition, setRotation, setScale, setScale, setSize, setSize, setSkew, setStackable, setVisible, setX, setY, setZ, shouldDraw, updateBounds, updateMatrix, validatepublic UniClip()
public UniClip(AtlasFrameSet frameSet)
public void setAtlasFrameSet(AtlasFrameSet frameSet)
public AtlasFrameSet getAtlasFrameSet()
public RectF getFrameRect(int frame)
getFrameRect in interface Playablepublic void setOriginAtCenter()
setOriginAtCenter in interface DisplayablesetOriginAtCenter in class UniObjectpublic boolean update(int deltaTime)
update in interface Displayableupdate in class UniObjectpublic void setLoop(int type)
public int getCurrentFrame()
getCurrentFrame in interface Playablepublic int getNumFrames()
getNumFrames in interface Playableprotected void onClipEnd(AtlasFrameSet frameSet)