Package | org.beeant.controls.RuleComponent |
Class | public class HRule |
Inheritance | HRule ![]() |
Property | Defined By | ||
---|---|---|---|
DEFAULT_LABEL_DISTANCE : Number [static] | HRule | ||
extraWidth : Float | HRule | ||
isFloatVaue : Boolean | HRule | ||
labelDistance : Number
The distance between two labels
| HRule | ||
LABEL_PADDING : Number = 5 [static] | HRule | ||
labels : Array [write-only]
An array of String values that hold the labels
| HRule | ||
subdivisions : int
Number of subdivisons to draw between labels
| HRule | ||
tickLineLabelInstances : Array
References to the labels created at rt
| HRule |
Method | Defined By | ||
---|---|---|---|
HRule() | HRule | ||
mouseMove(xValue:Number):void
Pointer indicates the mouse move
| HRule |
Method | Defined By | ||
---|---|---|---|
attachSkin():void [override]
Overriden. | HRule | ||
commitProperties():void [override]
Take care of label changes and change in number of subdivisions
| HRule | ||
detachSkin():void [override] | HRule | ||
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void [override]
Draw the skin and update the positions of the labels that have been added dynamically
| HRule | ||
updatePositionOfLabels():void
Update the positions of the labels. | HRule |
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:HRulerGraphicElement | Required: true Part Type: Static A SpriteVisualElement that draws the tick lines | HRule | ||
rulerGroup:spark.components.Group | Required: true Part Type: Static | HRule | ||
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 | HRule |
DEFAULT_LABEL_DISTANCE | property |
public static var DEFAULT_LABEL_DISTANCE:Number
extraWidth | property |
public var extraWidth:Float
isFloatVaue | property |
public var isFloatVaue:Boolean
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
HRule | () | Constructor |
public function HRule()
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(xValue:Number):void
Pointer indicates the mouse move
Parameters
xValue: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.