flash.display
Class DisplayObjectContainer

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by flash.events.EventDispatcher
          extended by flash.display.DisplayObject
              extended by flash.display.InteractiveObject
                  extended by flash.display.DisplayObjectContainer
Direct Known Subclasses:
Sprite, Stage

public class DisplayObjectContainer
extends InteractiveObject

Implementation of flash.display.DisplayObjectContainer


Field Summary
 
Fields inherited from class flash.display.InteractiveObject
CLICK, DOUBLECLICK, FOCUSIN, FOCUSOUT, KEYDOWN, KEYFOCUSCHANGE, KEYUP, MOUSEDOWN, MOUSEFOCUSCHANGE, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, ROLLOUT, ROLLOVER, TABCENABLEDCHANGE, TABCHILDRENCHANGE, TABINDEXCHANGE
 
Fields inherited from class flash.display.DisplayObject
ADDED, ADDED_TO_STAGE, ENTERFRAME, REMOVED, REMOVED_FROM_STAGE, RENDER
 
Fields inherited from class flash.events.EventDispatcher
ACTIVATE, DEACTIVATE
 
Constructor Summary
protected DisplayObjectContainer()
           
 
Method Summary
 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.
 
Methods inherited from class flash.display.InteractiveObject
getDoubleClickEnabled, getMouseEnabled, getTabEnabled, getTabIndex, setMouseEnabled, setTabEnabled, setTabIndex
 
Methods inherited from class flash.display.DisplayObject
getAlpha, 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, visible
 
Methods inherited from class flash.events.EventDispatcher
addEventListener, create, dispatchEvent, hasEventListener, removeEventListener, willTrigger
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisplayObjectContainer

protected DisplayObjectContainer()
Method Detail

isMouseChildren

public final boolean isMouseChildren()
Determines whether or not the children of the object are mouse enabled.

Returns:

setMouseChildren

public final void setMouseChildren(boolean enabled)

setTabChildren

public final void setTabChildren(boolean enabled)

getNumChildren

public final int getNumChildren()
Returns the number of children of this object.

Returns:

isTabChildren

public final boolean isTabChildren()
Determines whether the children of the object are tab enabled.

Returns:

addChild

public final DisplayObject addChild(DisplayObject child)
Adds a child DisplayObject instance to this DisplayObjectContainer instance.


addChildAt

public final DisplayObject addChildAt(DisplayObject child,
                                      int index)
Adds a child DisplayObject instance to this DisplayObjectContainer instance.


areInaccessibleObjectsUnderPoint

public final 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.

Parameters:
point -
Returns:

contains

public final boolean contains(DisplayObject child)
Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself.

Parameters:
child -
Returns:

getChildAt

public final DisplayObject getChildAt(int index)
Returns the child display object instance that exists at the specified index.

Parameters:
index -
Returns:

getChildByName

public final DisplayObject getChildByName(String name)
Returns the child display object that exists with the specified name.

Parameters:
name -
Returns:

getChildIndex

public final int getChildIndex(DisplayObject child)
Returns the index position of a child DisplayObject instance.

Parameters:
child -
Returns:

getObjectsUnderPoint

public final 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.

Parameters:
point -
Returns:

removeChild

public final DisplayObject removeChild(DisplayObject child)
Removes the specified child DisplayObject instance from the child list of the DisplayObjectContainer instance.

Parameters:
child -
Returns:

removeChildAt

public final DisplayObject removeChildAt(int index)
Removes a child DisplayObject from the specified index position in the child list of the DisplayObjectContainer.

Parameters:
index -
Returns:

setChildIndex

public final void setChildIndex(DisplayObject child,
                                int index)
Changes the position of an existing child in the display object container.

Parameters:
child -
index -

swapChildren

public final void swapChildren(DisplayObject child1,
                               DisplayObject child2)
Swaps the z-order (front-to-back order) of the two specified child objects.


swapChildrenAt

public final 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.

Parameters:
index1 -
index2 -


Copyright © 2013. All Rights Reserved.