| Package | com.asterisq.constellation.behaviors |
| Class | public class AccelerationLimitBehavior |
| Inheritance | AccelerationLimitBehavior Behavior flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| accelerationLimit : Number
The maximum acceleration allowed for node renderers.
| AccelerationLimitBehavior | ||
![]() | constellation : IConstellation
The constellation instance this behavior belongs to.
| Behavior | |
![]() | enabled : Boolean
Indicates whether this behavior is currently enabled.
| Behavior | |
![]() | nodeRendererFilterFunction : Function
The function which determines the node renderers affected by this behavior.
| Behavior | |
| Method | Defined by | ||
|---|---|---|---|
|
AccelerationLimitBehavior(n:Number = 1)
Creates a new acceleration limit behavior.
| AccelerationLimitBehavior | ||
|
affectsAcceleration():Boolean
Indicates whether this class affects node renderers' acceleration.
| AccelerationLimitBehavior | ||
![]() |
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.
| Behavior | |
![]() |
stepStart():void
Method called at the beginning of a step.
| Behavior | |
|
Modifies the given node renderer's acceleration.
| AccelerationLimitBehavior | ||
![]() |
Modifies the given node renderer's position.
| Behavior | |
![]() |
Modifies the given node renderer's velocity.
| Behavior | |
| Method | Defined by | ||
|---|---|---|---|
|
loadValuesFromXML(behaviorElem:XML):void
Updates this behavior with values from the given XML element.
| AccelerationLimitBehavior | ||
| accelerationLimit | property |
accelerationLimit:Number [read-write]The maximum acceleration allowed for node renderers.
This property can be used as the source for data binding.
Implementation public function get accelerationLimit():Number
public function set accelerationLimit(value:Number):void
| AccelerationLimitBehavior | () | constructor |
public function AccelerationLimitBehavior(n:Number = 1)Creates a new acceleration limit behavior.
Parametersn:Number (default = 1) |
| 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 |
| loadValuesFromXML | () | method |
protected override function loadValuesFromXML(behaviorElem:XML):voidUpdates this behavior with values from the given XML element. This method should be overridden to update this Behavior.
ParametersbehaviorElem:XML |
| 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 |