public class NovaEmitter extends RectangularEmitter implements Reusable, Timeline.Listener, Animator.AnimatorListener
ParticleEmitter.Listener
Modifier and Type | Field and Description |
---|---|
protected Animator |
mAnimator |
protected NovaEmitterVO |
mEmitterVO |
protected NovaFactory |
mFactory |
protected |
mLayers |
protected MotionTrail |
mMotionTrail |
protected java.lang.Object[] |
mParams |
protected Timeline |
mTimeline |
mFinished, mListener, mRandom, mRemoveOnFinish, nNumParticles
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, TAG
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 |
---|
NovaEmitter(NovaFactory factory,
NovaEmitterVO vo,
PointF pos,
java.lang.Object... params) |
Modifier and Type | Method and Description |
---|---|
protected void |
createLayers() |
protected void |
createManipulators() |
Animator |
getAnimator() |
NovaEmitterVO |
getEmitterVO() |
Timeline |
getTimeline() |
void |
onAdded(Container parent)
This is called after this object is added to a Container
|
void |
onAnimationEnd(Animator animator) |
void |
onAnimationUpdate(Animator animator,
float value) |
void |
onParticleFinish(Particle particle) |
void |
onRemoved()
This is called after this object is removed from a Container
|
void |
onTimelineComplete(Timeline timeline) |
void |
reset(java.lang.Object... params) |
addParticle, dispose, drawChildren, finish, getListener, getNextPosition, getNextPosition, getNumParticles, isFinished, isRemoveOnFinish, queueFinish, removeParticle, setListener, setRemoveOnFinish
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, onAddedToScene, onCreateChildren, onPreConcatParentMatrix, 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, update, updateBounds, updateChildren, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPosition, getSize
protected final Timeline mTimeline
protected final NovaFactory mFactory
protected NovaEmitterVO mEmitterVO
protected java.lang.Object[] mParams
protected Animator mAnimator
protected MotionTrail mMotionTrail
protectedmLayers
public NovaEmitter(NovaFactory factory, NovaEmitterVO vo, PointF pos, java.lang.Object... params)
public NovaEmitterVO getEmitterVO()
public Animator getAnimator()
public Timeline getTimeline()
protected void createManipulators()
protected void createLayers()
public void onParticleFinish(Particle particle)
onParticleFinish
in interface Particle.Listener
onParticleFinish
in class RectangularEmitter
public void onAdded(Container parent)
BaseDisplayObject
onAdded
in interface DisplayObject
onAdded
in class BaseDisplayObject
public void onRemoved()
BaseDisplayObject
onRemoved
in interface Displayable
onRemoved
in class RectangularEmitter
public void onAnimationEnd(Animator animator)
onAnimationEnd
in interface Animator.AnimatorListener
public void onAnimationUpdate(Animator animator, float value)
onAnimationUpdate
in interface Animator.AnimatorListener
public void onTimelineComplete(Timeline timeline)
onTimelineComplete
in interface Timeline.Listener