public class SparkGroup extends DisplayGroup
Modifier and Type | Field and Description |
---|---|
protected int |
mAnimationDuration |
protected int |
mAnimationStyle |
protected GLColor[] |
mColors |
protected int |
mNumSparks |
protected float |
mRadius1 |
protected float |
mRadius2 |
protected java.lang.Class<? extends Sparkable> |
mSparkClass |
protected float |
mWeight1 |
protected float |
mWeight2 |
protected static java.util.Random |
RANDOM |
static int |
STYLE_FAN |
static int |
STYLE_FAN_REVERSED |
static int |
STYLE_RANDOM |
ATT_CACHE_ENABLED, ATT_CLIPPING_ENABLED, ATT_TOUCHABLE, mCacheDrawer, mCacheEnabled, mCacheFrameBuffer, mCachePolicy, mCacheProjection, mChildren, mChildrenDisplayOrder, mChildrenIds, mClippingEnabled, mClipStageRect, mNumChildren, mOriginalScissor, mOriginalScissorEnabled, mTouchable, mVisibleTouchables, mWrapContentHeight, mWrapContentWidth
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
CACHE_WHEN_CHILDREN_CHANGED, CACHE_WHEN_CHILDREN_STABLE
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 |
---|
SparkGroup(java.lang.Class<? extends Sparkable> sparkClass,
int numSparks,
float r1,
float r2,
float weight1,
float weight2,
GLColor... colors) |
Modifier and Type | Method and Description |
---|---|
void |
setAnimationDuration(int duration) |
void |
setAnimationStyle(int style) |
void |
setColors(GLColor... colors) |
void |
setNumSparks(int numSparks) |
addChild, addChild, clearCache, dispose, draw, drawChildren, getCachePolicy, getCacheProjection, getChildAt, getChildById, getChildIndex, getNumChildren, getNumGrandChildren, getObjectTree, initCache, isCacheEnabled, isChildInBounds, isClippingEnabled, isTouchable, isWrapContenHeight, isWrapContentWidth, onAddedChild, onAddedToScene, onRemovedChild, onRemovedFromScene, onTouchEvent, removeAllChildren, removeChild, removeChild, sendChildToBottom, sendChildToTop, setCacheEnabled, setCachePolicy, setCacheProjection, setChildrenDisplayOrder, setClippingEnabled, setTouchable, setWrapContentHeight, setWrapContentWidth, setXMLAttributes, swapChildren, swapChildren, updateChildren
addManipulator, drawBounds, drawEnd, drawStart, drawWireframe, getAlpha, getBlendFunc, getBounds, getColor, getDebugFlags, getFps, getGlobalPosition, getHeight, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getMask, getMatrix, getNumManipulators, 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, onCreateChildren, onPreConcatParentMatrix, onRemoved, 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, setY, setZ, shouldDraw, toString, update, updateBounds, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMatrix, getScene, getSize, globalToLocal, invalidate, invalidate, localToGlobal, queueEvent
public static final int STYLE_RANDOM
public static final int STYLE_FAN
public static final int STYLE_FAN_REVERSED
protected static final java.util.Random RANDOM
protected java.lang.Class<? extends Sparkable> mSparkClass
protected int mNumSparks
protected float mRadius1
protected float mRadius2
protected float mWeight1
protected float mWeight2
protected int mAnimationStyle
protected int mAnimationDuration
protected GLColor[] mColors
public void setNumSparks(int numSparks)
numSparks
- public void setColors(GLColor... colors)
public void setAnimationStyle(int style)
public void setAnimationDuration(int duration)