| Package | flare.vis.operator.layout |
| Class | public class Layout |
| Inheritance | Layout Operator |
| Subclasses | AxisLayout, CircleLayout, CirclePackingLayout, DendrogramLayout, Distortion, ForceDirectedLayout, IcicleTreeLayout, IndentedTreeLayout, NodeLinkTreeLayout, PieLayout, RadialTreeLayout, RandomLayout, StackedAreaLayout, TreeMapLayout |
| Property | Defined by | ||
|---|---|---|---|
![]() | enabled : Boolean Indicates if the operator is enabled or disabled.
| Operator | |
| layoutAnchor : Point The layout anchor, used by some layout instances to place an
initial item or determine a focal point.
| Layout | ||
| layoutBounds : Rectangle The layout bounds for the layout.
| Layout | ||
| layoutRoot : DataSprite
The layout root, the root node for tree layouts.
| Layout | ||
| layoutType : String = "null" The type of layout and axes.
| Layout | ||
![]() | parameters : Object
Sets parameter values for this operator.
| Operator | |
![]() | visualization : Visualization
The visualization processed by this operator.
| Operator | |
| Property | Defined by | ||
|---|---|---|---|
| _anchor : Point | Layout | ||
| _setAnchor : Boolean = false | Layout | ||
| _t : Transitioner = null A transitioner for storing value updates.
| Layout | ||
| xyAxes : CartesianAxes
[read-only]
Returns the visualization's axes as a CartesianAxes instance.
| Layout | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
applyParameters(op:IOperator, params:Object):void
[static]
Static method that applies parameter settings to an operator.
| Operator | |
|
clearEdgePoints():void
Strips all EdgeSprites in a visualization of any control points.
| Layout | ||
|
Hides the axes.
| Layout | ||
|
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.
| Operator | |
|
Reveals the axes.
| Layout | ||
|
[static]
Updates all edges to be straight lines.
| Layout | ||
| Method | Defined by | ||
|---|---|---|---|
|
autoAnchor():void
Automatically-generate an anchor point.
| Layout | ||
|
layout():void
Calculates the spatial layout of visualized items.
| Layout | ||
|
minAngle(a1:Number, a2:Number):Number
Returns an angle value that minimizes the angular distance
between a reference angle and a target angle.
| Layout | ||
| Constant | Defined by | ||
|---|---|---|---|
| CARTESIAN : String = "cartesian" [static] Constant indicating Cartesian (x, y) coordinates.
| Layout | ||
| POLAR : String = "polar" [static] Constant indicating polar (radius, angle) coordinates.
| Layout | ||
| _anchor | property |
protected var _anchor:Point
| layoutAnchor | property |
layoutAnchor:Point [read-write]The layout anchor, used by some layout instances to place an initial item or determine a focal point.
Implementation public function get layoutAnchor():Point
public function set layoutAnchor(value:Point):void
| layoutBounds | property |
layoutBounds:Rectangle [read-write]The layout bounds for the layout. If this value is not explicitly set, the bounds for the visualization is returned.
Implementation public function get layoutBounds():Rectangle
public function set layoutBounds(value:Rectangle):void
| layoutRoot | property |
layoutRoot:DataSprite [read-write]The layout root, the root node for tree layouts.
Implementation public function get layoutRoot():DataSprite
public function set layoutRoot(value:DataSprite):void
| layoutType | property |
public var layoutType:String = "null" The type of layout and axes. This value should be
CARTESIAN for x,y axes, POLAR for polar
coordinates (radius, angle), or null for no axes.
| _setAnchor | property |
protected var _setAnchor:Boolean = false
| _t | property |
protected var _t:Transitioner = nullA transitioner for storing value updates.
| xyAxes | property |
xyAxes:CartesianAxes [read-only]Returns the visualization's axes as a CartesianAxes instance. Creates/modifies existing axes as needed to ensure the presence of CartesianAxes.
Implementation protected function get xyAxes():CartesianAxes
| autoAnchor | () | method |
protected function autoAnchor():voidAutomatically-generate an anchor point.
| clearEdgePoints | () | method |
public function clearEdgePoints():voidStrips all EdgeSprites in a visualization of any control points.
| hideAxes | () | method |
public function hideAxes(t:Transitioner = null):TransitionerHides the axes.
Parameterst:Transitioner (default = null) — a transitioner to collect value updates
|
Transitioner —
the input transitioner
|
| layout | () | method |
protected function layout():voidCalculates the spatial layout of visualized items. Layout operators override this method with their layout implementations.
| minAngle | () | method |
protected function minAngle(a1:Number, a2:Number):NumberReturns an angle value that minimizes the angular distance between a reference angle and a target angle. This method may shift the angle value by multiples of 2 pi.
Parametersa1:Number — the reference angle to stay close to
|
|
a2:Number — the target angle value
|
Number — an angle that minimizes the distance
|
| operate | () | method |
public override function operate(t:Transitioner = null):voidPerforms an operation over the contents of a visualization.
Parameterst:Transitioner (default = null) — a Transitioner instance for collecting value updates.
|
| showAxes | () | method |
public function showAxes(t:Transitioner = null):TransitionerReveals the axes.
Parameterst:Transitioner (default = null) — a transitioner to collect value updates
|
Transitioner —
the input transitioner
|
| straightenEdges | () | method |
public static function straightenEdges(list:DataList, t:Transitioner):TransitionerUpdates all edges to be straight lines. Useful for undoing the results of layouts that route edges using edge control points.
Parameterslist:DataList — a data list of edges to straighten
|
|
t:Transitioner — a transitioner to collect value updates
|
Transitioner |
| CARTESIAN | constant |
public static const CARTESIAN:String = "cartesian"Constant indicating Cartesian (x, y) coordinates.
| POLAR | constant |
public static const POLAR:String = "polar"Constant indicating polar (radius, angle) coordinates.