Packagecom.asterisq.constellation.behaviors
Classpublic class CustomAccelerationBehavior
InheritanceCustomAccelerationBehavior Inheritance EdgeWeightStatsBehavior Inheritance Behavior Inheritance flash.events.EventDispatcher

Behavior which applies acceleration to an ICustomAccelerationNodeRenderer. The force of the acceleration is read from the node renderer's customAcceleration property.



Public Properties
 PropertyDefined by
 Inheritedconstellation : IConstellation
The constellation instance this behavior belongs to.
Behavior
 Inheritedenabled : Boolean
Indicates whether this behavior is currently enabled.
Behavior
 InheritedhighWeight : Number
The highest edge renderer weighting value.
EdgeWeightStatsBehavior
 InheritedlowWeight : Number
The lowest edge renderer weighting value.
EdgeWeightStatsBehavior
 InheritednodeRendererFilterFunction : Function
The function which determines the node renderers affected by this behavior.
Behavior
 InheritedtotalWeight : Number
The sum of all edge renderer weighting values.
EdgeWeightStatsBehavior
Protected Properties
 PropertyDefined by
 Inherited_highWeight : Number
EdgeWeightStatsBehavior
 Inherited_lowWeight : Number
EdgeWeightStatsBehavior
 Inherited_totalWeight : Number
EdgeWeightStatsBehavior
Public Methods
 MethodDefined by
  
CustomAccelerationBehavior
  
Indicates whether this class affects node renderers' acceleration.
CustomAccelerationBehavior
 Inherited
Determines whether this behavior affects the given node renderer.
Behavior
 Inherited
affectsPosition():Boolean
Indicates whether this class affects node renderers' position.
Behavior
 Inherited
affectsVelocity():Boolean
Indicates whether this class affects node renderers' velocity.
Behavior
 Inherited
fromXML(elem:XML):Behavior
[static] Creates an IBehavior instance and initializes it with the given XML data.
Behavior
 Inherited
stepEnd():void
Method called at the end of a step.
Behavior
 Inherited
stepStart():void
Method called at the beginning of a step.
EdgeWeightStatsBehavior
  
Adds the custom acceleration force to the node renderer.
CustomAccelerationBehavior
 Inherited
Modifies the given node renderer's position.
Behavior
 Inherited
Modifies the given node renderer's velocity.
Behavior
Protected Methods
 MethodDefined by
 Inherited
loadValuesFromXML(behaviorElem:XML):void
Updates this behavior with values from the given XML element.
Behavior
Constructor detail
CustomAccelerationBehavior()constructor
public function CustomAccelerationBehavior()
Method detail
affectsAcceleration()method
public override function affectsAcceleration():Boolean

Indicates whether this class affects node renderers' acceleration. This function must return true if this behavior affects acceleration.

Returns
Boolean
updateAcceleration()method 
public override function updateAcceleration(nodeRenderer:INodeRenderer):INodeRenderer

Adds the custom acceleration force to the node renderer.

Parameters
nodeRenderer:INodeRenderer

Returns
INodeRenderer