Packageorg.beeant.controls.GraphicElement
Classpublic class HRulerGraphicElement
InheritanceHRulerGraphicElement Inheritance spark.primitives.supportClasses.FilledElement

Draws a Horizantal Tick Lines in the Inch Ruler



Public Properties
 PropertyDefined By
  divisions : Number
Number of divisions
HRulerGraphicElement
  strokeWeight : int
Stroke weights
HRulerGraphicElement
  subdivisions : int
Number of subdivision
HRulerGraphicElement
  subdivisionToDivisionLineHeightRatio : Number
Ratio of line height, subdivision to division
HRulerGraphicElement
Public Methods
 MethodDefined By
  
HRulerGraphicElement
  
mouseMoveHandle(xValue:Number):void
pointer shows the mouse location in the Ruler Element
HRulerGraphicElement
Protected Methods
 MethodDefined By
  
draw(g:Graphics):void
[override] Draw the ruler TODO: logic to actually reuse commands and data if nothing has changed
HRulerGraphicElement
Property Detail
divisionsproperty
divisions:Number

Number of divisions


Implementation
    public function get divisions():Number
    public function set divisions(value:Number):void
strokeWeightproperty 
strokeWeight:int

Stroke weights


Implementation
    public function get strokeWeight():int
    public function set strokeWeight(value:int):void
subdivisionsproperty 
subdivisions:int

Number of subdivision


Implementation
    public function get subdivisions():int
    public function set subdivisions(value:int):void
subdivisionToDivisionLineHeightRatioproperty 
subdivisionToDivisionLineHeightRatio:Number

Ratio of line height, subdivision to division


Implementation
    public function get subdivisionToDivisionLineHeightRatio():Number
    public function set subdivisionToDivisionLineHeightRatio(value:Number):void
Constructor Detail
HRulerGraphicElement()Constructor
public function HRulerGraphicElement()



Method Detail
draw()method
override protected function draw(g:Graphics):void

Draw the ruler TODO: logic to actually reuse commands and data if nothing has changed

Parameters

g:Graphics — width of ruler

mouseMoveHandle()method 
public function mouseMoveHandle(xValue:Number):void

pointer shows the mouse location in the Ruler Element

Parameters

xValue:Number