Package | org.cove.ape |
Class | public class Composite |
Inheritance | Composite ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | constraints : Array
The Array of all AbstractConstraint instances added to the AbstractCollection
| AbstractCollection | |
fixed : Boolean
The fixed state of the Composite.
| Composite | ||
![]() | particles : Array
The Array of all AbstractParticle instances added to the AbstractCollection
| AbstractCollection | |
![]() | sprite : Sprite
Provides a Sprite to use as a container for drawing or adding children.
| AbstractCollection |
Method | Defined by | ||
---|---|---|---|
Composite | |||
![]() |
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 | |
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 |
fixed | property |
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
Composite | () | constructor |
public function Composite()
rotateByAngle | () | method |
public function rotateByAngle(angleDegrees:Number, center:Vector):void
Rotates the Composite to an angle specified in degrees, around a given center
ParametersangleDegrees: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
ParametersangleRadians:Number |
|
center:Vector |