Packageflare.vis.operator.layout
Classpublic class StackedAreaLayout
InheritanceStackedAreaLayout Inheritance Layout Inheritance Operator

Layout that consecutively places items on top of each other. The layout currently assumes that each column value is available as separate properties of individual DataSprites.



Public Properties
 PropertyDefined by
  columns : Array
Array containing the column names.
StackedAreaLayout
 Inheritedenabled : Boolean
Indicates if the operator is enabled or disabled.
Operator
 InheritedlayoutAnchor : Point
The layout anchor, used by some layout instances to place an initial item or determine a focal point.
Layout
 InheritedlayoutBounds : Rectangle
The layout bounds for the layout.
Layout
 InheritedlayoutRoot : DataSprite
The layout root, the root node for tree layouts.
Layout
 InheritedlayoutType : String = "null"
The type of layout and axes.
Layout
  normalize : Boolean
Flag indicating if the visualization should be normalized.
StackedAreaLayout
  orientation : String
The orientation of the layout.
StackedAreaLayout
  padding : Number
Value indicating the padding (as a percentage of the view) that should be reserved within the visualization.
StackedAreaLayout
 Inheritedparameters : Object
Sets parameter values for this operator.
Operator
  scale : QuantitativeScale
The scale used to layout the stacked values.
StackedAreaLayout
  threshold : Number
Threshold size value (in pixels) that at least one column width must surpass for a stack to remain visible.
StackedAreaLayout
 Inheritedvisualization : Visualization
The visualization processed by this operator.
Operator
Protected Properties
 PropertyDefined by
 Inherited_anchor : Point
Layout
 Inherited_setAnchor : Boolean = false
Layout
 Inherited_t : Transitioner = null
A transitioner for storing value updates.
Layout
 InheritedxyAxes : CartesianAxes
Returns the visualization's axes as a CartesianAxes instance.
Layout
Public Methods
 MethodDefined by
  
StackedAreaLayout(cols:Array = null, padding:Number = 0.05)
Creates a new StackedAreaLayout.
StackedAreaLayout
 Inherited
applyParameters(op:IOperator, params:Object):void
[static] Static method that applies parameter settings to an operator.
Operator
 Inherited
Strips all EdgeSprites in a visualization of any control points.
Layout
 Inherited
Hides the axes.
Layout
 Inherited
operate(t:Transitioner = null):void
Performs an operation over the contents of a visualization.
Layout
  
setup():void
Setup method invoked whenever this operator's visualization property is set.
StackedAreaLayout
 Inherited
Reveals the axes.
Layout
 Inherited
[static] Updates all edges to be straight lines.
Layout
Protected Methods
 MethodDefined by
 Inherited
autoAnchor():void
Automatically-generate an anchor point.
Layout
  
Initializes the axes prior to layout.
StackedAreaLayout
  
layout():void
Calculates the spatial layout of visualized items.
StackedAreaLayout
 Inherited
minAngle(a1:Number, a2:Number):Number
Returns an angle value that minimizes the angular distance between a reference angle and a target angle.
Layout
Public Constants
 ConstantDefined by
 InheritedCARTESIAN : String = "cartesian"
[static] Constant indicating Cartesian (x, y) coordinates.
Layout
 InheritedPOLAR : String = "polar"
[static] Constant indicating polar (radius, angle) coordinates.
Layout
Property detail
columnsproperty
columns:Array  [read-write]

Array containing the column names.

Implementation
    public function get columns():Array
    public function set columns(value:Array):void
normalizeproperty 
normalize:Boolean  [read-write]

Flag indicating if the visualization should be normalized.

Implementation
    public function get normalize():Boolean
    public function set normalize(value:Boolean):void
orientationproperty 
orientation:String  [read-write]

The orientation of the layout.

Implementation
    public function get orientation():String
    public function set orientation(value:String):void
paddingproperty 
padding:Number  [read-write]

Value indicating the padding (as a percentage of the view) that should be reserved within the visualization.

Implementation
    public function get padding():Number
    public function set padding(value:Number):void
scaleproperty 
scale:QuantitativeScale  [read-write]

The scale used to layout the stacked values.

Implementation
    public function get scale():QuantitativeScale
    public function set scale(value:QuantitativeScale):void
thresholdproperty 
threshold:Number  [read-write]

Threshold size value (in pixels) that at least one column width must surpass for a stack to remain visible.

Implementation
    public function get threshold():Number
    public function set threshold(value:Number):void
Constructor detail
StackedAreaLayout()constructor
public function StackedAreaLayout(cols:Array = null, padding:Number = 0.05)

Creates a new StackedAreaLayout.

Parameters
cols:Array (default = null) — an ordered array of properties for the column values
 
padding:Number (default = 0.05) — percentage of space to leave as a padding margin for the stacked chart
Method detail
initializeAxes()method
protected function initializeAxes():void

Initializes the axes prior to layout.

layout()method 
protected override function layout():void

Calculates the spatial layout of visualized items. Layout operators override this method with their layout implementations.

setup()method 
public override function setup():void

Setup method invoked whenever this operator's visualization property is set.