public class DisplayObjectContainer extends InteractiveObject
CLICK, DOUBLECLICK, FOCUSIN, FOCUSOUT, KEYDOWN, KEYFOCUSCHANGE, KEYUP, MOUSEDOWN, MOUSEFOCUSCHANGE, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, ROLLOUT, ROLLOVER, TABCENABLEDCHANGE, TABCHILDRENCHANGE, TABINDEXCHANGEADDED, ADDED_TO_STAGE, ENTERFRAME, REMOVED, REMOVED_FROM_STAGE, RENDERACTIVATE, DEACTIVATE| Modifier | Constructor and Description |
|---|---|
protected |
DisplayObjectContainer() |
| Modifier and Type | Method and Description |
|---|---|
DisplayObject |
addChild(DisplayObject child)
Adds a child DisplayObject instance to this DisplayObjectContainer instance.
|
DisplayObject |
addChildAt(DisplayObject child,
int index)
Adds a child DisplayObject instance to this DisplayObjectContainer instance.
|
boolean |
areInaccessibleObjectsUnderPoint(Point point)
Indicates whether the security restrictions would cause any display objects
to be omitted from the list returned by calling the
DisplayObjectContainer.getObjectsUnderPoint() method with the specified
point point.
|
boolean |
contains(DisplayObject child)
Determines whether the specified display object is a child of the
DisplayObjectContainer instance or the instance itself.
|
DisplayObject |
getChildAt(int index)
Returns the child display object instance that exists at the specified index.
|
DisplayObject |
getChildByName(String name)
Returns the child display object that exists with the specified name.
|
int |
getChildIndex(DisplayObject child)
Returns the index position of a child DisplayObject instance.
|
int |
getNumChildren()
Returns the number of children of this object.
|
com.google.gwt.core.client.JsArray<DisplayObject> |
getObjectsUnderPoint(Point point)
Returns an array of objects that lie under the specified point and are
children (or grandchildren, and so on) of this DisplayObjectContainer instance.
|
boolean |
isMouseChildren()
Determines whether or not the children of the object are mouse enabled.
|
boolean |
isTabChildren()
Determines whether the children of the object are tab enabled.
|
DisplayObject |
removeChild(DisplayObject child)
Removes the specified child DisplayObject instance from the child list of the DisplayObjectContainer instance.
|
DisplayObject |
removeChildAt(int index)
Removes a child DisplayObject from the specified index position in the
child list of the DisplayObjectContainer.
|
void |
setChildIndex(DisplayObject child,
int index)
Changes the position of an existing child in the display object container.
|
void |
setMouseChildren(boolean enabled) |
void |
setTabChildren(boolean enabled) |
void |
swapChildren(DisplayObject child1,
DisplayObject child2)
Swaps the z-order (front-to-back order) of the two specified child objects.
|
void |
swapChildrenAt(int index1,
int index2)
Swaps the z-order (front-to-back order) of the child objects at the two
specified index positions in the child list.
|
getDoubleClickEnabled, getMouseEnabled, getTabEnabled, getTabIndex, setMouseEnabled, setTabEnabled, setTabIndexgetAlpha, getBlendMode, getBounds, getCacheAsBitmap, getFilters, getHeight, getLoaderInfo, getMask, getMouseX, getMouseY, getName, getParent, getRect, getRoot, getRotation, getScale9Grid, getScaleX, getScaleY, getScrollRect, getStage, getTransform, getWidth, getX, getY, globalToLocal, hitTestObject, hitTestPoint, localToGlobal, setAlpha, setBlendMode, setCacheAsBitmap, setFilters, setHeight, setMask, setName, setRotation, setScale9Grid, setScaleX, setScaleY, setScrollRect, setTransform, setTransform, setVisible, setWidth, setX, setY, visibleaddEventListener, create, dispatchEvent, hasEventListener, removeEventListener, willTriggerpublic final boolean isMouseChildren()
public final void setMouseChildren(boolean enabled)
public final void setTabChildren(boolean enabled)
public final int getNumChildren()
public final boolean isTabChildren()
public final DisplayObject addChild(DisplayObject child)
public final DisplayObject addChildAt(DisplayObject child, int index)
public final boolean areInaccessibleObjectsUnderPoint(Point point)
point - public final boolean contains(DisplayObject child)
child - public final DisplayObject getChildAt(int index)
index - public final DisplayObject getChildByName(String name)
name - public final int getChildIndex(DisplayObject child)
child - public final com.google.gwt.core.client.JsArray<DisplayObject> getObjectsUnderPoint(Point point)
point - public final DisplayObject removeChild(DisplayObject child)
child - public final DisplayObject removeChildAt(int index)
index - public final void setChildIndex(DisplayObject child, int index)
child - index - public final void swapChildren(DisplayObject child1, DisplayObject child2)
public final void swapChildrenAt(int index1,
int index2)
index1 - index2 - Copyright © 2013. All Rights Reserved.