| Package | com.asterisq.constellation.behaviors |
| Class | public class AccelerationStatsBehavior |
| Inheritance | AccelerationStatsBehavior Behavior flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| averageAcceleration : Point [read-only]
The average acceleration of all node renderers.
| AccelerationStatsBehavior | ||
![]() | constellation : IConstellation
The constellation instance this behavior belongs to.
| Behavior | |
![]() | enabled : Boolean
Indicates whether this behavior is currently enabled.
| Behavior | |
| maxAcceleration : Point [read-only]
The acceleration of the node renderer with the greatest acceleration
magnitude.
| AccelerationStatsBehavior | ||
| minAcceleration : Point [read-only]
The acceleration of the node renderer with the smallest acceleration
magnitude.
| AccelerationStatsBehavior | ||
![]() | nodeRendererFilterFunction : Function
The function which determines the node renderers affected by this behavior.
| Behavior | |
| totalAcceleration : Point [read-only]
The total acceleration of all node renderers.
| AccelerationStatsBehavior | ||
| totalAccelerationMagnitude : Number [read-only]
The total acceleration magnitude of all node renderers.
| AccelerationStatsBehavior | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new acceleration stats behavior.
| AccelerationStatsBehavior | ||
|
affectsAcceleration():Boolean
Indicates whether this class affects node renderers' acceleration.
| AccelerationStatsBehavior | ||
![]() |
affectsNodeRenderer(nr:INodeRenderer):Boolean
Determines whether this behavior affects the given node renderer.
| Behavior | |
![]() |
affectsPosition():Boolean
Indicates whether this class affects node renderers' position.
| Behavior | |
![]() |
affectsVelocity():Boolean
Indicates whether this class affects node renderers' velocity.
| Behavior | |
![]() |
[static]
Creates an IBehavior instance and initializes it with the given XML data.
| Behavior | |
|
stepEnd():void
Method called at the end of a step.
| AccelerationStatsBehavior | ||
|
stepStart():void
Method called at the beginning of a step.
| AccelerationStatsBehavior | ||
|
Modifies the given node renderer's acceleration.
| AccelerationStatsBehavior | ||
![]() |
Modifies the given node renderer's position.
| Behavior | |
![]() |
Modifies the given node renderer's velocity.
| Behavior | |
| averageAcceleration | property |
averageAcceleration:Point [read-only]The average acceleration of all node renderers.
Implementation public function get averageAcceleration():Point
| maxAcceleration | property |
maxAcceleration:Point [read-only]The acceleration of the node renderer with the greatest acceleration magnitude.
Implementation public function get maxAcceleration():Point
| minAcceleration | property |
minAcceleration:Point [read-only]The acceleration of the node renderer with the smallest acceleration magnitude.
Implementation public function get minAcceleration():Point
| totalAcceleration | property |
totalAcceleration:Point [read-only]The total acceleration of all node renderers.
Implementation public function get totalAcceleration():Point
| totalAccelerationMagnitude | property |
totalAccelerationMagnitude:Number [read-only]The total acceleration magnitude of all node renderers.
Implementation public function get totalAccelerationMagnitude():Number
| AccelerationStatsBehavior | () | constructor |
public function AccelerationStatsBehavior()Creates a new acceleration stats behavior.
| affectsAcceleration | () | method |
public override function affectsAcceleration():BooleanIndicates whether this class affects node renderers' acceleration. This function must return true if this behavior affects acceleration.
ReturnsBoolean |
| stepEnd | () | method |
public override function stepEnd():voidMethod called at the end of a step.
| stepStart | () | method |
public override function stepStart():voidMethod called at the beginning of a step.
| updateAcceleration | () | method |
public override function updateAcceleration(nodeRenderer:INodeRenderer):INodeRenderer
Modifies the given node renderer's acceleration. This method will never be
called if affectsAcceleration() doesn't return true. This
method should be overridden to affect the given node renderer's
acceleration.
nodeRenderer:INodeRenderer |
INodeRenderer |