public class VGroup extends LinearGroup implements UIObject
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ATT_REVERSED |
protected static java.lang.String |
ATT_SWIPE_ENABLED |
protected PointF |
mContentSize |
protected boolean |
mPositiveOrientation |
protected PointF |
mScrollMax |
protected boolean |
mSwipeEnabled |
protected float |
mSwipeMinThreshold |
protected boolean |
mSwiping |
ATT_ALIGN, ATT_REPEATING, mAlignment, mAutoSleepChildren, mBoundsCheckEnabled, mGap, mOffsetX, mOffsetY, mRepeating, mScrollPositionATT_CACHE_ENABLED, ATT_CLIPPING_ENABLED, ATT_TOUCHABLE, mCacheDrawer, mCacheEnabled, mCacheFrameBuffer, mCachePolicy, mCacheProjection, mChildren, mChildrenDisplayOrder, mChildrenIds, mClippingEnabled, mClipStageRect, mNumChildren, mOriginalScissor, mOriginalScissorEnabled, mTouchable, mVisibleTouchables, mWrapContentHeight, mWrapContentWidthATT_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, TAGFLIP_X, FLIP_YALL, 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, VISUALCACHE_WHEN_CHILDREN_CHANGED, CACHE_WHEN_CHILDREN_STABLE| Constructor and Description |
|---|
VGroup() |
| Modifier and Type | Method and Description |
|---|---|
protected float |
convertY(float y,
float size) |
protected boolean |
drawChildren(GLState glState) |
PointF |
getContentSize() |
PointF |
getScrollMax() |
protected float |
getSnapDelta(boolean positive) |
int |
getStartIndex() |
float |
getStartY() |
float |
getSwipeMinThreshold() |
boolean |
isPositiveOrientation() |
boolean |
isSwipeEnabled() |
boolean |
isSwiping() |
protected void |
onAddedChild(DisplayObject child) |
protected void |
onRemovedChild(DisplayObject child) |
protected void |
onTouchDown(MotionEvent event)
This is called when a touch down
|
boolean |
onTouchEvent(MotionEvent event)
Note: This is called from UI-Thread
|
protected void |
positionChildren() |
void |
scrollTo(DisplayObject child) |
void |
setGap(float gap) |
void |
setPositiveOrientation(boolean positive)
Change display order of the children
|
void |
setSize(float w,
float h) |
void |
setSwipeEnabled(boolean swipeEnabled) |
void |
setSwipeMinThreshold(float swipeMinThreshold) |
void |
setXMLAttributes(XmlPullParser xmlParser,
UIManager manager) |
protected void |
startSwipe() |
protected void |
stopSwipe() |
protected void |
swipe(float delta) |
protected void |
updateContentSize() |
getAlignment, getGap, getScrollPosition, invalidateChildrenPosition, isAutoSleepChildren, isBoundsCheckEnabled, isRepeating, scrollBy, scrollTo, setAlignment, setAutoSleepChildren, setBoundsCheckEnabled, setOffset, setRepeating, updateChildrenaddChild, addChild, clearCache, dispose, draw, getCachePolicy, getCacheProjection, getChildAt, getChildById, getChildIndex, getNumChildren, getNumGrandChildren, getObjectTree, initCache, isCacheEnabled, isChildInBounds, isClippingEnabled, isTouchable, isWrapContenHeight, isWrapContentWidth, onAddedToScene, onRemovedFromScene, removeAllChildren, removeChild, removeChild, sendChildToBottom, sendChildToTop, setCacheEnabled, setCachePolicy, setCacheProjection, setChildrenDisplayOrder, setClippingEnabled, setTouchable, setWrapContentHeight, setWrapContentWidth, swapChildren, swapChildrenaddManipulator, 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, setSkew, setUIConstraint, setVisible, setX, setY, setZ, shouldDraw, toString, update, updateBounds, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdraw, isPerspectiveEnabled, onAdded, onCreateChildren, setPerspectiveEnabledaddManipulator, dispose, getAlpha, getBlendFunc, getBounds, getColor, getFps, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getNumManipulators, getObjectTree, getOrigin, getParent, getPivot, getScene, getSkew, getZ, globalToLocal, invalidate, invalidate, isAlive, isAutoUpdateBounds, isVisible, localToGlobal, onAddedToScene, onRemoved, onRemovedFromScene, queueEvent, removeAllManipulators, removeFromParent, removeManipulator, setAlive, setAlpha, setAutoUpdateBounds, setBlendFunc, setColor, setFps, setId, setOrigin, setOrigin, setOriginAtCenter, setPivot, setPivot, setPivotAtCenter, setSkew, setVisible, setZ, shouldDraw, update, updateBoundsgetHeight, getPosition, getRotation, getScale, getSize, getWidth, getX, getY, move, moveTo, rotate, setPosition, setPosition, setRotation, setScale, setScale, setSize, setX, setYisTouchable, setTouchablegetMatrix, getScene, getSize, globalToLocal, invalidate, invalidate, localToGlobal, queueEventprotected static final java.lang.String ATT_SWIPE_ENABLED
protected static final java.lang.String ATT_REVERSED
protected PointF mContentSize
protected PointF mScrollMax
protected boolean mSwipeEnabled
protected float mSwipeMinThreshold
protected boolean mSwiping
protected boolean mPositiveOrientation
protected void updateContentSize()
public int getStartIndex()
public float getStartY()
public void scrollTo(DisplayObject child)
scrollTo in class LinearGroupprotected float getSnapDelta(boolean positive)
positive - protected boolean drawChildren(GLState glState)
drawChildren in class DisplayGroupprotected float convertY(float y,
float size)
protected void positionChildren()
positionChildren in class LinearGrouppublic void setSize(float w,
float h)
setSize in interface ManipulatablesetSize in class BaseDisplayObjectpublic void setGap(float gap)
setGap in class LinearGroupgap - the gap to setprotected void onAddedChild(DisplayObject child)
onAddedChild in class LinearGroupprotected void onRemovedChild(DisplayObject child)
onRemovedChild in class LinearGrouppublic PointF getContentSize()
getContentSize in class LinearGrouppublic PointF getScrollMax()
getScrollMax in class LinearGrouppublic boolean isSwipeEnabled()
public void setSwipeEnabled(boolean swipeEnabled)
public float getSwipeMinThreshold()
public void setSwipeMinThreshold(float swipeMinThreshold)
protected void startSwipe()
protected void stopSwipe()
protected void swipe(float delta)
public boolean isSwiping()
public boolean isPositiveOrientation()
public void setPositiveOrientation(boolean positive)
positiveOrder - public boolean onTouchEvent(MotionEvent event)
DisplayGrouponTouchEvent in interface TouchableonTouchEvent in class DisplayGroupprotected void onTouchDown(MotionEvent event)
event - public void setXMLAttributes(XmlPullParser xmlParser,
UIManager manager)
setXMLAttributes in interface DisplayObjectsetXMLAttributes in class LinearGroup