Package | org.beeant.controls.RuleComponent |
Class | public class VRule |
Inheritance | VRule ![]() |
Property | Defined By | ||
---|---|---|---|
DEFAULT_LABEL_DISTANCE : Number [static] | VRule | ||
labelDistance : Number
The distance between two labels
| VRule | ||
LABEL_PADDING : Number = 5 [static] | VRule | ||
labels : Array [write-only]
An array of String values that hold the labels
| VRule | ||
subdivisions : int
Number of subdivisons to draw between labels
| VRule | ||
tickLineLabelInstances : Array
References to the labels created at rt
| VRule |
Method | Defined By | ||
---|---|---|---|
VRule() | VRule | ||
mouseMove(yValue:Number):void
Pointer indicates the mouse move
| VRule |
Method | Defined By | ||
---|---|---|---|
attachSkin():void [override]
Overriden. | VRule | ||
commitProperties():void [override]
Take care of label changes and change in number of subdivisions
| VRule | ||
detachSkin():void [override] | VRule | ||
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void [override]
Draw the skin and update the positions of the labels that have been added dynamically
| VRule | ||
updatePositionOfLabels():void
Update the positions of the labels. | VRule |
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
Skin Part | Description | Defined By | ||
---|---|---|---|---|
ruler:VRulerGraphicElement | Required: true Part Type: Static A SpriteVisualElement that draws the tick lines | VRule | ||
rulerGroup:spark.components.Group | Required: true Part Type: Static | VRule | ||
tickLineLabel:mx.core.IFactory | Required: false Part Type: Static Dynamic skin part for a label. These are created at runtime based on the array of labels submitted | VRule |
DEFAULT_LABEL_DISTANCE | property |
public static var DEFAULT_LABEL_DISTANCE:Number
LABEL_PADDING | property |
public static var LABEL_PADDING:Number = 5
labelDistance | property |
labelDistance:Number
The distance between two labels
public function get labelDistance():Number
public function set labelDistance(value:Number):void
labels | property |
labels:Array
[write-only] An array of String values that hold the labels
public function set labels(value:Array):void
subdivisions | property |
subdivisions:int
Number of subdivisons to draw between labels
public function get subdivisions():int
public function set subdivisions(value:int):void
tickLineLabelInstances | property |
public var tickLineLabelInstances:Array
References to the labels created at rt
VRule | () | Constructor |
public function VRule()
attachSkin | () | method |
override protected function attachSkin():void
Overriden. Add mouse listener to the entire skin
commitProperties | () | method |
override protected function commitProperties():void
Take care of label changes and change in number of subdivisions
detachSkin | () | method |
override protected function detachSkin():void
mouseMove | () | method |
public function mouseMove(yValue:Number):void
Pointer indicates the mouse move
Parameters
yValue:Number |
updateDisplayList | () | method |
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Draw the skin and update the positions of the labels that have been added dynamically
Parameters
unscaledWidth:Number | |
unscaledHeight:Number |
updatePositionOfLabels | () | method |
protected function updatePositionOfLabels():void
Update the positions of the labels.