Packageorg.cove.ape
Classpublic class Composite
InheritanceComposite Inheritance AbstractCollection

The Composite class can contain Particles, and Constraints. Composites can be added to a parent Group, along with Particles and Constraints. Members of a Composite are not checked for collision with one another, internally.



Public Properties
 PropertyDefined by
 Inheritedconstraints : Array
The Array of all AbstractConstraint instances added to the AbstractCollection
AbstractCollection
  fixed : Boolean
The fixed state of the Composite.
Composite
 Inheritedparticles : Array
The Array of all AbstractParticle instances added to the AbstractCollection
AbstractCollection
 Inheritedsprite : Sprite
Provides a Sprite to use as a container for drawing or adding children.
AbstractCollection
Public Methods
 MethodDefined by
  
Composite
 Inherited
Adds a constraint to the Collection.
AbstractCollection
 Inherited
Adds an AbstractParticle to the AbstractCollection.
AbstractCollection
 Inherited
cleanup():void
Calls the cleanup() method of every member of this AbstractCollection.
AbstractCollection
 Inherited
getAll():Array
Returns an array of every particle and constraint added to the AbstractCollection.
AbstractCollection
 Inherited
init():void
Initializes every member of this AbstractCollection by in turn calling each members init() method.
AbstractCollection
 Inherited
paint():void
paints every member of this AbstractCollection by calling each members paint() method.
AbstractCollection
 Inherited
Removes a constraint from the Collection.
AbstractCollection
 Inherited
Removes an AbstractParticle from the AbstractCollection.
AbstractCollection
  
rotateByAngle(angleDegrees:Number, center:Vector):void
Rotates the Composite to an angle specified in degrees, around a given center
Composite
  
rotateByRadian(angleRadians:Number, center:Vector):void
Rotates the Composite to an angle specified in radians, around a given center
Composite
Property detail
fixedproperty
fixed:Boolean  [read-write]

The fixed state of the Composite. Setting this value to true or false will set all of this Composite's component particles to that value. Getting this value will return false if any of the component particles are not fixed.

Implementation
    public function get fixed():Boolean
    public function set fixed(value:Boolean):void
Constructor detail
Composite()constructor
public function Composite()
Method detail
rotateByAngle()method
public function rotateByAngle(angleDegrees:Number, center:Vector):void

Rotates the Composite to an angle specified in degrees, around a given center

Parameters
angleDegrees:Number
 
center:Vector
rotateByRadian()method 
public function rotateByRadian(angleRadians:Number, center:Vector):void

Rotates the Composite to an angle specified in radians, around a given center

Parameters
angleRadians:Number
 
center:Vector