public abstract class LinearGroup extends DisplayGroup
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ATT_ALIGN |
protected static java.lang.String |
ATT_REPEATING |
protected int |
mAlignment |
protected boolean |
mAutoSleepChildren |
protected boolean |
mBoundsCheckEnabled |
protected float |
mGap |
protected float |
mOffsetX |
protected float |
mOffsetY |
protected boolean |
mRepeating |
protected PointF |
mScrollPosition |
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 |
---|
LinearGroup() |
Modifier and Type | Method and Description |
---|---|
int |
getAlignment() |
abstract PointF |
getContentSize() |
float |
getGap() |
abstract PointF |
getScrollMax() |
PointF |
getScrollPosition() |
protected void |
invalidateChildrenPosition() |
boolean |
isAutoSleepChildren() |
boolean |
isBoundsCheckEnabled() |
boolean |
isRepeating() |
protected void |
onAddedChild(DisplayObject child) |
protected void |
onRemovedChild(DisplayObject child) |
protected abstract void |
positionChildren() |
void |
scrollBy(float dx,
float dy) |
void |
scrollTo(DisplayObject child) |
void |
scrollTo(float x,
float y) |
void |
setAlignment(int alignment) |
void |
setAutoSleepChildren(boolean autoSleepChildren) |
void |
setBoundsCheckEnabled(boolean checking)
Toggle checking bounds and draw children
|
void |
setGap(float gap) |
void |
setOffset(float offsetX,
float offsetY) |
void |
setRepeating(boolean Repeating) |
void |
setXMLAttributes(XmlPullParser xmlParser,
UIManager manager) |
void |
updateChildren(int deltaTime) |
addChild, addChild, clearCache, dispose, draw, drawChildren, getCachePolicy, getCacheProjection, getChildAt, getChildById, getChildIndex, getNumChildren, getNumGrandChildren, getObjectTree, initCache, isCacheEnabled, isChildInBounds, isClippingEnabled, isTouchable, isWrapContenHeight, isWrapContentWidth, onAddedToScene, onRemovedFromScene, onTouchEvent, removeAllChildren, removeChild, removeChild, sendChildToBottom, sendChildToTop, setCacheEnabled, setCachePolicy, setCacheProjection, setChildrenDisplayOrder, setClippingEnabled, setTouchable, setWrapContentHeight, setWrapContentWidth, swapChildren, swapChildren
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
protected static final java.lang.String ATT_ALIGN
protected static final java.lang.String ATT_REPEATING
protected float mGap
protected float mOffsetX
protected float mOffsetY
protected int mAlignment
protected PointF mScrollPosition
protected boolean mRepeating
protected boolean mBoundsCheckEnabled
protected boolean mAutoSleepChildren
public void updateChildren(int deltaTime)
updateChildren
in class DisplayGroup
protected void invalidateChildrenPosition()
public float getGap()
public void setGap(float gap)
gap
- the gap to setpublic void setOffset(float offsetX, float offsetY)
public PointF getScrollPosition()
public void scrollTo(float x, float y)
public void scrollTo(DisplayObject child)
public void scrollBy(float dx, float dy)
public boolean isRepeating()
public void setRepeating(boolean Repeating)
Repeating
- the Repeating to setprotected void onAddedChild(DisplayObject child)
onAddedChild
in class DisplayGroup
protected void onRemovedChild(DisplayObject child)
onRemovedChild
in class DisplayGroup
public boolean isBoundsCheckEnabled()
public void setBoundsCheckEnabled(boolean checking)
checking
- the bounds to setpublic boolean isAutoSleepChildren()
public void setAutoSleepChildren(boolean autoSleepChildren)
public int getAlignment()
public void setAlignment(int alignment)
public void setXMLAttributes(XmlPullParser xmlParser, UIManager manager)
setXMLAttributes
in interface DisplayObject
setXMLAttributes
in class DisplayGroup
protected abstract void positionChildren()
public abstract PointF getContentSize()
public abstract PointF getScrollMax()