Packageorg.beeant.controls.RuleComponent
Classpublic class HRule
InheritanceHRule Inheritance spark.components.supportClasses.SkinnableComponent



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
HRule
  
mouseMove(xValue:Number):void
Pointer indicates the mouse move
HRule
Protected Methods
 MethodDefined By
  
attachSkin():void
[override] Overriden.
HRule
  
[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
  
Update the positions of the labels.
HRule
Skin Parts

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
  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
Property Detail
DEFAULT_LABEL_DISTANCEproperty
public static var DEFAULT_LABEL_DISTANCE:Number

extraWidthproperty 
public var extraWidth:Float

isFloatVaueproperty 
public var isFloatVaue:Boolean

LABEL_PADDINGproperty 
public static var LABEL_PADDING:Number = 5

labelDistanceproperty 
labelDistance:Number

The distance between two labels


Implementation
    public function get labelDistance():Number
    public function set labelDistance(value:Number):void
labelsproperty 
labels:Array  [write-only]

An array of String values that hold the labels


Implementation
    public function set labels(value:Array):void
subdivisionsproperty 
subdivisions:int

Number of subdivisons to draw between labels


Implementation
    public function get subdivisions():int
    public function set subdivisions(value:int):void
tickLineLabelInstancesproperty 
public var tickLineLabelInstances:Array

References to the labels created at rt

Constructor Detail
HRule()Constructor
public function HRule()



Method Detail
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.