Packagecom.asterisq.constellation.behaviors
Classpublic class PolarInterpolationBehavior
InheritancePolarInterpolationBehavior Inheritance Behavior Inheritance flash.events.EventDispatcher

Behavior which causes node renderers to move to their target positions. This behavior uses polar coordinate interpolation to determine the position of each node at a given step.

Only affects node renderers that implement the com.asterisq.constellation.renderers.ITweenableNodeRenderer interface.



Public Properties
 PropertyDefined by
  constellation : IConstellation
[write-only]
PolarInterpolationBehavior
  easingFunction : Function
The easing function used to animate the node renderer positions.
PolarInterpolationBehavior
 Inheritedenabled : Boolean
Indicates whether this behavior is currently enabled.
Behavior
 InheritednodeRendererFilterFunction : Function
The function which determines the node renderers affected by this behavior.
Behavior
Public Methods
 MethodDefined by
  
PolarInterpolationBehavior(easingFunction:Function = null)
Creates a new behavior.
PolarInterpolationBehavior
 Inherited
Indicates whether this class affects node renderers' acceleration.
Behavior
 Inherited
Determines whether this behavior affects the given node renderer.
Behavior
  
affectsPosition():Boolean
Indicates whether this class affects node renderers' position.
PolarInterpolationBehavior
 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.
Behavior
 Inherited
Modifies the given node renderer's acceleration.
Behavior
  
Modifies the given node renderer's position.
PolarInterpolationBehavior
 Inherited
Modifies the given node renderer's velocity.
Behavior
Protected Methods
 MethodDefined by
  
loadValuesFromXML(behaviorElem:XML):void
Updates this behavior with values from the given XML element.
PolarInterpolationBehavior
Property detail
constellationproperty
constellation:IConstellation  [write-only]

Implementation
    public function set constellation(value:IConstellation):void
easingFunctionproperty 
easingFunction:Function  [read-write]

The easing function used to animate the node renderer positions.

Implementation
    public function get easingFunction():Function
    public function set easingFunction(value:Function):void
Constructor detail
PolarInterpolationBehavior()constructor
public function PolarInterpolationBehavior(easingFunction:Function = null)

Creates a new behavior.

Parameters
easingFunction:Function (default = null)
Method detail
affectsPosition()method
public override function affectsPosition():Boolean

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

Returns
Boolean
loadValuesFromXML()method 
protected override function loadValuesFromXML(behaviorElem:XML):void

Updates this behavior with values from the given XML element. This method should be overridden to update this Behavior.

Parameters
behaviorElem:XML
updatePosition()method 
public override function updatePosition(nodeRenderer:INodeRenderer):INodeRenderer

Modifies the given node renderer's position. This method will never be called if affectsPosition() doesn't return true. This method should be overridden to affect the given node renderer's position.

Parameters
nodeRenderer:INodeRenderer

Returns
INodeRenderer