Packagecom.asterisq.constellation.behaviors
Classpublic class SpiralLayoutBehavior
InheritanceSpiralLayoutBehavior Inheritance LayoutBehavior Inheritance Behavior Inheritance flash.events.EventDispatcher

Lays out nodes in a spiral emanating from the center of the visualization.



Public Properties
 PropertyDefined by
 InheritedautoInvalidate : Boolean
Flag indicating whether to automatically invalidate when the renderers change.
LayoutBehavior
  constellation : IConstellation
The constellation instance this behavior belongs to.
SpiralLayoutBehavior
 Inheritedenabled : Boolean
Indicates whether this behavior is currently enabled.
Behavior
  maxRadius : Number
The maximum radius of the spiral.
SpiralLayoutBehavior
  minRadius : Number
The minimum radius of the spiral.
SpiralLayoutBehavior
 InheritednodeRendererFilterFunction : Function
The function which determines the node renderers affected by this behavior.
Behavior
Public Methods
 MethodDefined by
  
SpiralLayoutBehavior(minRadius:Number = 100, maxRadius:Number = 200)
Creates a new behavior.
SpiralLayoutBehavior
 Inherited
Indicates whether this class affects node renderers' acceleration.
Behavior
 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
invalidate():void
Invalidates the layout and causes a redraw during the next step.
LayoutBehavior
 Inherited
stepEnd():void
Method called at the end of a step.
Behavior
 Inherited
stepStart():void
Method called at the beginning of a step.
LayoutBehavior
 Inherited
Modifies the given node renderer's acceleration.
Behavior
 Inherited
Modifies the given node renderer's position.
Behavior
 Inherited
Modifies the given node renderer's velocity.
Behavior
  
validate():Boolean
SpiralLayoutBehavior
Protected Methods
 MethodDefined by
  
loadValuesFromXML(behaviorElem:XML):void
Updates this behavior with values from the given XML element.
SpiralLayoutBehavior
 Inherited
setNodeRendererTargetPosition(tnr:ITweenableNodeRenderer, origin:Point, targetPosition:Point, startTime:Number):void
Convenience function for setting the ITweenableNodeRenderer animation properties.
LayoutBehavior
Property detail
constellationproperty
constellation:IConstellation  [read-write]

The constellation instance this behavior belongs to.

Implementation
    public function get constellation():IConstellation
    public function set constellation(value:IConstellation):void
maxRadiusproperty 
maxRadius:Number  [read-write]

The maximum radius of the spiral. The node farthest from center will be placed at this radius.

Implementation
    public function get maxRadius():Number
    public function set maxRadius(value:Number):void
minRadiusproperty 
minRadius:Number  [read-write]

The minimum radius of the spiral. The node closest to center will be placed at this radius.

Implementation
    public function get minRadius():Number
    public function set minRadius(value:Number):void
Constructor detail
SpiralLayoutBehavior()constructor
public function SpiralLayoutBehavior(minRadius:Number = 100, maxRadius:Number = 200)

Creates a new behavior.

Parameters
minRadius:Number (default = 100)
 
maxRadius:Number (default = 200)
Method detail
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
validate()method 
public override function validate():Boolean

Returns
Boolean