Package | org.cove.ape |
Class | public class AbstractCollection |
Subclasses | Composite, Group |
You should not instantiate this class directly -- instead use one of the subclasses.
Property | Defined by | ||
---|---|---|---|
constraints : Array [read-only]
The Array of all AbstractConstraint instances added to the AbstractCollection
| AbstractCollection | ||
particles : Array [read-only]
The Array of all AbstractParticle instances added to the AbstractCollection
| AbstractCollection | ||
sprite : Sprite [read-only]
Provides a Sprite to use as a container for drawing or adding children.
| AbstractCollection |
Method | Defined by | ||
---|---|---|---|
AbstractCollection | |||
addConstraint(c:AbstractConstraint):void
Adds a constraint to the Collection.
| AbstractCollection | ||
addParticle(p:AbstractParticle):void
Adds an AbstractParticle to the AbstractCollection.
| AbstractCollection | ||
cleanup():void
Calls the
cleanup() method of every member of this AbstractCollection. | AbstractCollection | ||
getAll():Array
Returns an array of every particle and constraint added to the AbstractCollection.
| AbstractCollection | ||
init():void
Initializes every member of this AbstractCollection by in turn calling
each members
init() method. | AbstractCollection | ||
paint():void
paints every member of this AbstractCollection by calling each members
paint() method. | AbstractCollection | ||
removeConstraint(c:AbstractConstraint):void
Removes a constraint from the Collection.
| AbstractCollection | ||
removeParticle(p:AbstractParticle):void
Removes an AbstractParticle from the AbstractCollection.
| AbstractCollection |
constraints | property |
constraints:Array
[read-only]The Array of all AbstractConstraint instances added to the AbstractCollection
Implementation public function get constraints():Array
particles | property |
particles:Array
[read-only]The Array of all AbstractParticle instances added to the AbstractCollection
Implementation public function get particles():Array
sprite | property |
sprite:Sprite
[read-only]Provides a Sprite to use as a container for drawing or adding children. When the sprite is requested for the first time it is automatically added to the global container in the APEngine class.
Implementation public function get sprite():Sprite
AbstractCollection | () | constructor |
public function AbstractCollection()
addConstraint | () | method |
public function addConstraint(c:AbstractConstraint):void
Adds a constraint to the Collection.
Parametersc:AbstractConstraint — The constraint to be added.
|
addParticle | () | method |
public function addParticle(p:AbstractParticle):void
Adds an AbstractParticle to the AbstractCollection.
Parametersp:AbstractParticle — The particle to be added.
|
cleanup | () | method |
public function cleanup():void
Calls the cleanup()
method of every member of this AbstractCollection.
The cleanup() method is called automatically when an AbstractCollection is removed
from its parent.
getAll | () | method |
public function getAll():Array
Returns an array of every particle and constraint added to the AbstractCollection.
ReturnsArray |
init | () | method |
public function init():void
Initializes every member of this AbstractCollection by in turn calling
each members init()
method.
paint | () | method |
public function paint():void
paints every member of this AbstractCollection by calling each members
paint()
method.
removeConstraint | () | method |
public function removeConstraint(c:AbstractConstraint):void
Removes a constraint from the Collection.
Parametersc:AbstractConstraint — The constraint to be removed.
|
removeParticle | () | method |
public function removeParticle(p:AbstractParticle):void
Removes an AbstractParticle from the AbstractCollection.
Parametersp:AbstractParticle — The particle to be removed.
|