public class UniClip extends UniSprite implements Playable
mAtlasFrame, mOffsetX, mOffsetY
mTextureCoords, NUM_VERTICES
mAlive, 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, TAG
LOOP_NONE, LOOP_REPEAT, LOOP_REVERSE
FLIP_X, FLIP_Y
ALL, 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, setSizeToTexture
resetVertices, setTextureCoords, stack
addManipulator, 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, validate
public UniClip()
public UniClip(AtlasFrameSet frameSet)
public void setAtlasFrameSet(AtlasFrameSet frameSet)
public AtlasFrameSet getAtlasFrameSet()
public RectF getFrameRect(int frame)
getFrameRect
in interface Playable
public void setOriginAtCenter()
setOriginAtCenter
in interface Displayable
setOriginAtCenter
in class UniObject
public boolean update(int deltaTime)
update
in interface Displayable
update
in class UniObject
public void setLoop(int type)
public int getCurrentFrame()
getCurrentFrame
in interface Playable
public int getNumFrames()
getNumFrames
in interface Playable
protected void onClipEnd(AtlasFrameSet frameSet)