| Package | com.asterisq.constellation.behaviors |
| Class | public class SunflowerLayoutBehavior |
| Inheritance | SunflowerLayoutBehavior LayoutBehavior Behavior flash.events.EventDispatcher |
SpiralLayoutBehavior with additional functionality.
This behavior preserves the orientation between the previously selected
node and the currently selected node when calculating the layout.
| Property | Defined by | ||
|---|---|---|---|
![]() | autoInvalidate : Boolean
Flag indicating whether to automatically invalidate when the renderers change.
| LayoutBehavior | |
| constellation : IConstellation
The constellation instance this behavior belongs to.
| SunflowerLayoutBehavior | ||
![]() | enabled : Boolean
Indicates whether this behavior is currently enabled.
| Behavior | |
| maxRadius : Number
The maximum radius of the spiral.
| SunflowerLayoutBehavior | ||
| minRadius : Number
The minimum radius of the spiral.
| SunflowerLayoutBehavior | ||
![]() | nodeRendererFilterFunction : Function
The function which determines the node renderers affected by this behavior.
| Behavior | |
| prevSelectedNodeID : String
The previously selected node ID.
| SunflowerLayoutBehavior | ||
| selectedNodeID : String
The currently selected node ID.
| SunflowerLayoutBehavior | ||
| Method | Defined by | ||
|---|---|---|---|
|
SunflowerLayoutBehavior(minRadius:Number = 125, maxRadius:Number = 250)
Creates a new behavior.
| SunflowerLayoutBehavior | ||
![]() |
affectsAcceleration():Boolean
Indicates whether this class affects node renderers' acceleration.
| Behavior | |
![]() |
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 | |
![]() |
invalidate():void
Invalidates the layout and causes a redraw during the next step.
| LayoutBehavior | |
![]() |
stepEnd():void
Method called at the end of a step.
| Behavior | |
![]() |
stepStart():void
Method called at the beginning of a step.
| LayoutBehavior | |
![]() |
Modifies the given node renderer's acceleration.
| Behavior | |
![]() |
Modifies the given node renderer's position.
| Behavior | |
![]() |
Modifies the given node renderer's velocity.
| Behavior | |
|
validate():Boolean
| SunflowerLayoutBehavior | ||
| Method | Defined by | ||
|---|---|---|---|
|
loadValuesFromXML(behaviorElem:XML):void
Updates this behavior with values from the given XML element.
| SunflowerLayoutBehavior | ||
![]() |
setNodeRendererTargetPosition(tnr:ITweenableNodeRenderer, origin:Point, targetPosition:Point, startTime:Number):void
Convenience function for setting the ITweenableNodeRenderer
animation properties.
| LayoutBehavior | |
| constellation | property |
constellation:IConstellation [read-write]The constellation instance this behavior belongs to.
Implementation public function get constellation():IConstellation
public function set constellation(value:IConstellation):void
| maxRadius | property |
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
| minRadius | property |
minRadius:Number [read-write]The minimum radius of the spiral. The node closest to center, excluding the selected node, will be placed at this radius.
Implementation public function get minRadius():Number
public function set minRadius(value:Number):void
| prevSelectedNodeID | property |
prevSelectedNodeID:String [read-write]The previously selected node ID. The node with this ID is placed nearest to the center of the spiral and its relative position with the selected node is maintained.
Implementation public function get prevSelectedNodeID():String
public function set prevSelectedNodeID(value:String):void
| selectedNodeID | property |
selectedNodeID:String [read-write]The currently selected node ID. The node with this ID is placed in the center of the spiral.
Implementation public function get selectedNodeID():String
public function set selectedNodeID(value:String):void
| SunflowerLayoutBehavior | () | constructor |
public function SunflowerLayoutBehavior(minRadius:Number = 125, maxRadius:Number = 250)Creates a new behavior.
ParametersminRadius:Number (default = 125) |
|
maxRadius:Number (default = 250) |
| 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 |
| validate | () | method |
public override function validate():Boolean
Returns
Boolean |