public class LWFObject extends BaseDisplayObject implements Playable
Modifier and Type | Field and Description |
---|---|
static boolean |
LOG_ENABLED |
static int |
SCALING_FIT_FOR_HEIGHT |
static int |
SCALING_FIT_FOR_WIDTH |
static int |
SCALING_NONE |
static int |
SCALING_SCALE_FOR_HEIGHT |
static int |
SCALING_SCALE_FOR_WIDTH |
static int |
SCALING_USE_DEFAULT |
ATT_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, mZ
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 |
---|
LWFObject() |
Modifier and Type | Method and Description |
---|---|
LWF |
attachLWF(LWFData data) |
LWF |
attachLWF(LWFData data,
int scaling) |
LWF |
attachLWF(LWFData data,
java.lang.String target,
java.lang.String attachName) |
LWF |
attachLWF(LWFData data,
java.lang.String target,
java.lang.String attachName,
int scaling) |
void |
dispose() |
protected boolean |
drawChildren(GLState glState) |
int |
getCurrentFrame() |
RectF |
getFrameRect(int frame) |
int |
getLoop() |
LWF |
getLWF() |
int |
getNumFrames() |
boolean |
isPlaying() |
boolean |
loaded() |
void |
play() |
void |
playAt(int frame) |
void |
setLoop(int type) |
void |
setStageSize(float width,
float height,
int defaultScaling) |
void |
stop() |
void |
stopAt(int frame) |
boolean |
update(int deltaTime) |
addManipulator, draw, drawBounds, drawEnd, drawStart, drawWireframe, 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, onAdded, 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, setSize, setSkew, setUIConstraint, setVisible, setX, setXMLAttributes, setY, setZ, shouldDraw, toString, updateBounds, updateChildren, validate
public static boolean LOG_ENABLED
public static final int SCALING_NONE
public static final int SCALING_FIT_FOR_HEIGHT
public static final int SCALING_FIT_FOR_WIDTH
public static final int SCALING_SCALE_FOR_HEIGHT
public static final int SCALING_SCALE_FOR_WIDTH
public static final int SCALING_USE_DEFAULT
public boolean update(int deltaTime)
update
in interface Displayable
update
in class BaseDisplayObject
protected boolean drawChildren(GLState glState)
drawChildren
in class BaseDisplayObject
public void setStageSize(float width, float height, int defaultScaling)
public int getCurrentFrame()
getCurrentFrame
in interface Playable
public int getNumFrames()
getNumFrames
in interface Playable
public RectF getFrameRect(int frame)
getFrameRect
in interface Playable
public LWF attachLWF(LWFData data, java.lang.String target, java.lang.String attachName, int scaling)
public LWF getLWF()
public boolean loaded()
public void dispose()
dispose
in interface Displayable
dispose
in class BaseDisplayObject