| Package | flare.vis.operator.label |
| Class | public class RadialLabeler |
| Inheritance | RadialLabeler Labeler Operator |
If rotateLabels is set to textMode property be set to
TextSprite.EMBED and that the appropriate fonts be
embedded in your application. Otherwise, the text labels may be
illegible due to rotation artifacts (for BITMAP labels) or
will disappear alltogether (for DEVICE labels).
| Property | Defined by | ||
|---|---|---|---|
![]() | access : String The name of the property in which to store created labels.
| Labeler | |
| angleOffset : Number = 0 The number of radians to offset a label's angle.
| RadialLabeler | ||
![]() | cacheText : Boolean Boolean function indicating whether label text values should be
cached or not.
| Labeler | |
![]() | enabled : Boolean Indicates if the operator is enabled or disabled.
| Operator | |
![]() | filter : Function Boolean function indicating which items to process.
| Labeler | |
![]() | group : String The name of the data group to label.
| Labeler | |
![]() | horizontalAnchor : int = 1 The horizontal alignment for labels.
| Labeler | |
![]() | labelPolicy : String The policy for how labels should be applied.
| Labeler | |
![]() | labels : Sprite A sprite containing the labels, if a layer policy is used.
| Labeler | |
![]() | parameters : Object
Sets parameter values for this operator.
| Operator | |
| radiusOffset : Number = 0 The number of pixels to offset labels along the radius.
| RadialLabeler | ||
| rotateLabels : Boolean = false If true, labels will be rotated to align along the radius.
| RadialLabeler | ||
![]() | source : String The source property that provides the label text.
| Labeler | |
![]() | textFormat : TextFormat The text format to apply to labels.
| Labeler | |
![]() | textFunction : Function = null Optional function for determining label text.
| Labeler | |
![]() | textMode : int = 2 The text mode to use for the TextSprite labels.
| Labeler | |
![]() | verticalAnchor : int = 1 The vertical alignment for labels.
| Labeler | |
![]() | visualization : Visualization
The visualization processed by this operator.
| Operator | |
![]() | xOffset : Number = 0 The default
x value for labels. | Labeler | |
![]() | yOffset : Number = 0 The default
y value for labels. | Labeler | |
| Method | Defined by | ||
|---|---|---|---|
|
RadialLabeler(source:* = null, rotate:Boolean = false, format:TextFormat = null, filter:String = null, policy:*)
Creates a new RadialLabeler.
| RadialLabeler | ||
![]() |
applyParameters(op:IOperator, params:Object):void
[static]
Static method that applies parameter settings to an operator.
| Operator | |
![]() |
operate(t:Transitioner = null):void
Performs an operation over the contents of a visualization.
| Labeler | |
![]() |
setup():void
Setup method invoked whenever this operator's visualization
property is set.
| Labeler | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
Retrives and optionally creates a label TextSprite for the given
data sprite.
| Labeler | |
![]() |
getLabelText(d:DataSprite):String
Computes the label text for a given sprite.
| Labeler | |
|
process(d:DataSprite):void
Performs label creation and layout for the given data sprite.
| RadialLabeler | ||
| angleOffset | property |
public var angleOffset:Number = 0The number of radians to offset a label's angle.
| radiusOffset | property |
public var radiusOffset:Number = 0The number of pixels to offset labels along the radius.
| rotateLabels | property |
public var rotateLabels:Boolean = falseIf true, labels will be rotated to align along the radius.
| RadialLabeler | () | constructor |
public function RadialLabeler(source:* = null, rotate:Boolean = false, format:TextFormat = null, filter:String = null, policy:*)Creates a new RadialLabeler.
Parameterssource:* (default = null) — the property from which to retrieve the label text.
If this value is a string or property instance, the label text will
be pulled directly from the named property. If this value is a
Function or Expression instance, the value will be used to set the
textFunction |
|
rotate:Boolean (default = false) — flag indicating if labels should be rotated to align
along the radius. If true, all text sprite labels should use
embedded fonts to keep the rotated labels legibile. If false,
labels will instead have their horizontal and vertical anchor
settings adjusted according to their angle.
|
|
format:TextFormat (default = null) — optional text formatting information for labels
|
|
filter:String (default = null) — a Boolean-valued filter function determining which
items will be given labels
|
|
policy:* — the label creation policy. One of LAYER (for adding a
separate label layer) or CHILD (for adding labels as children of
data objects)
|
| process | () | method |
protected override function process(d:DataSprite):voidPerforms label creation and layout for the given data sprite. Subclasses should override this method to perform custom labeling.
Parametersd:DataSprite — the data sprite to process
|