| Package | flare.vis.operator.distortion |
| Class | public class Distortion |
| Inheritance | Distortion Layout Operator |
| Subclasses | BifocalDistortion, FisheyeDistortion |
| Property | Defined by | ||
|---|---|---|---|
| anchorInBounds : Boolean = true Flag indicating if distortion anchor points outside the layout
bounds should be considered by the distortion.
| Distortion | ||
| distortAxes : Boolean Flag indicating if axes should be distorted.
| Distortion | ||
| distortSize : Boolean Flag indicating if sizes should be distorted.
| Distortion | ||
| distortX : Boolean Flag indicating if x-coordinates should be distorted.
| Distortion | ||
| distortY : Boolean Flag indicating if y-coordinates should be distorted.
| Distortion | ||
![]() | enabled : Boolean Indicates if the operator is enabled or disabled.
| Operator | |
| layoutAnchor : Point [write-only]
| Distortion | ||
![]() | 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 | |
| resetSize : Boolean = false Flag indicating if the size or scale values should be reset to 1
upon each invocation of the distortion.
| Distortion | ||
| useSizeField : Boolean = false Flag indicating if the
DataSprite.size field should be
distorted. | Distortion | ||
![]() | visualization : Visualization
The visualization processed by this operator.
| Operator | |
| Property | Defined by | ||
|---|---|---|---|
![]() | _anchor : Point | Layout | |
| _b : Rectangle A bounding rectangle for storing the layout bounds.
| Distortion | ||
![]() | _setAnchor : Boolean = false | Layout | |
![]() | _t : Transitioner = null A transitioner for storing value updates.
| Layout | |
![]() | xyAxes : CartesianAxes
Returns the visualization's axes as a CartesianAxes instance.
| Layout | |
| Method | Defined by | ||
|---|---|---|---|
|
Distortion(distortX:Boolean = true, distortY:Boolean = true, distortSize:Boolean = true, distortAxes:Boolean = true)
Creates a new Distortion.
| Distortion | ||
![]() |
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.
| Distortion | ||
![]() |
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 | |
|
axesDistort(evt:VisualizationEvent):void
Performs distortion of Cartesian axes.
| Distortion | ||
|
distort(d:DataSprite):void
Distortion method for processing a DataSprite.
| Distortion | ||
![]() |
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 | |
|
sizeDistort(bb:Rectangle, x:Number, y:Number):Number
Compute a distorted size value.
| Distortion | ||
|
xDistort(x:Number):Number
Compute a distorted x-coordinate.
| Distortion | ||
|
yDistort(y:Number):Number
Compute a distorted y-coordinate.
| Distortion | ||
| anchorInBounds | property |
public var anchorInBounds:Boolean = trueFlag indicating if distortion anchor points outside the layout bounds should be considered by the distortion. If true, external anchors will be mapped to nearest point on the border of the layout bounds.
| _b | property |
protected var _b:RectangleA bounding rectangle for storing the layout bounds.
| distortAxes | property |
public var distortAxes:BooleanFlag indicating if axes should be distorted.
| distortSize | property |
public var distortSize:BooleanFlag indicating if sizes should be distorted.
| distortX | property |
public var distortX:BooleanFlag indicating if x-coordinates should be distorted.
| distortY | property |
public var distortY:BooleanFlag indicating if y-coordinates should be distorted.
| layoutAnchor | property |
layoutAnchor:Point [write-only]Implementation
public function set layoutAnchor(value:Point):void
| resetSize | property |
public var resetSize:Boolean = falseFlag indicating if the size or scale values should be reset to 1 upon each invocation of the distortion. This avoids the need to manually reset the size values on each update. The default value is false.
| useSizeField | property |
public var useSizeField:Boolean = false Flag indicating if the DataSprite.size field should be
distorted. If false (the default), the scaleX and scaleY properties
are used instead.
| Distortion | () | constructor |
public function Distortion(distortX:Boolean = true, distortY:Boolean = true, distortSize:Boolean = true, distortAxes:Boolean = true)Creates a new Distortion.
ParametersdistortX:Boolean (default = true) — Flag indicating if x-coordinates should be distorted
|
|
distortY:Boolean (default = true) — Flag indicating if y-coordinates should be distorted
|
|
distortSize:Boolean (default = true) — Flag indicating is sizes should be distorted
|
|
distortAxes:Boolean (default = true) |
| axesDistort | () | method |
protected function axesDistort(evt:VisualizationEvent):voidPerforms distortion of Cartesian axes. As axis layout is recomputed after the operators have run, we must distort the axes in a separate step. This is accomplished by adding an update listener on the visualization that invokes the axis distortion after the axis layout has completed. This method is registered as the listener callback.
Parametersevt:VisualizationEvent — the visualization update event
|
| distort | () | method |
protected function distort(d:DataSprite):voidDistortion method for processing a DataSprite.
Parametersd:DataSprite — a DataSprite to distort
|
| 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.
|
| sizeDistort | () | method |
protected function sizeDistort(bb:Rectangle, x:Number, y:Number):NumberCompute a distorted size value.
Parametersbb:Rectangle — an object's bounding box
|
|
x:Number — the initial x-coordinate
|
|
y:Number — the initial y-coordinate
|
Number — the distorted size value
|
| xDistort | () | method |
protected function xDistort(x:Number):NumberCompute a distorted x-coordinate.
Parametersx:Number — the initial x-coordinate
|
Number — the distorted s-coordinate
|
| yDistort | () | method |
protected function yDistort(y:Number):NumberCompute a distorted y-coordinate.
Parametersy:Number — the initial y-coordinate
|
Number — the distorted y-coordinate
|