| Package | flare.vis.operator.layout |
| Class | public class TreeMapLayout |
| Inheritance | TreeMapLayout Layout Operator |
sizeField property on leaf nodes. By default, this
property is "size", such that the layout will look for size
values in the DataSprite.size property.
This particular algorithm is taken from Bruls, D.M., C. Huizing, and J.J. van Wijk, "Squarified Treemaps" In Data Visualization 2000, Proceedings of the Joint Eurographics and IEEE TCVG Sumposium on Visualization, 2000, pp. 33-42. Available online at: http://www.win.tue.nl/~vanwijk/stm.pdf.
For more information on TreeMaps in general, see http://www.cs.umd.edu/hcil/treemap-history/.
| 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 | |
| sizeField : String The property from which to access size values for leaf nodes.
| TreeMapLayout | ||
![]() | visualization : Visualization
The visualization processed by this operator.
| Operator | |
| Method | Defined by | ||
|---|---|---|---|
|
TreeMapLayout(sizeField:String = "size")
Creates a new TreeMapLayout
| TreeMapLayout | ||
![]() |
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.
| TreeMapLayout | ||
![]() |
minAngle(a1:Number, a2:Number):Number
Returns an angle value that minimizes the angular distance
between a reference angle and a target angle.
| Layout | |
| sizeField | property |
sizeField:String [read-write]The property from which to access size values for leaf nodes.
Implementation public function get sizeField():String
public function set sizeField(value:String):void
| TreeMapLayout | () | constructor |
public function TreeMapLayout(sizeField:String = "size")Creates a new TreeMapLayout
ParameterssizeField:String (default = "size") — the data property from which to access the size
value for leaf nodes. The default is the "size" property.
|
| layout | () | method |
protected override function layout():voidCalculates the spatial layout of visualized items. Layout operators override this method with their layout implementations.