Packagecom.degrafa.geometry.repeaters
Classpublic class HorizontalLineRepeater
InheritanceHorizontalLineRepeater Inheritance Repeater Inheritance Geometry Inheritance DegrafaObject

The HorizontalLineRepeater element draws a horizontal line using the specified x, y, and x1 coordinate values. Then progressivly repeats the horizontal line using the specified count and offsets.

See also

http://samples.degrafa.com/HorizontalLineRepeater/HorizontalLineRepeater.html


Public Properties
 PropertyDefined by
 InheritedautoClearGraphicsTarget : Boolean
When using a graphicsTarget and if this property is set to true the draw phase will clear the graphics context before drawing.
Geometry
  bounds : Rectangle
[read-only] The tight bounds of this element as represented by a Rectangle object.
HorizontalLineRepeater
 Inheritedcount : Number
The number of times to repeat the geometry.
Repeater
  data : String
[write-only] HorizontalLineRepeater short hand data value.
HorizontalLineRepeater
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 Inheritedgeometry : Array
A array of IGeometryComposition objects.
Geometry
 InheritedgeometryCollection : GeometryCollection
Access to the Degrafa geometry collection object for this geometry object.
Geometry
 InheritedgraphicsTarget : Array
One or more display object's that this Geometry is to be drawn to.
Geometry
 InheritedgraphicsTargetCollection : DisplayObjectCollection
Access to the Degrafa target collection object for this geometry object.
Geometry
 InheritedhasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
DegrafaObject
 Inheritedid : String
The identifier used by document to refer to this object.
DegrafaObject
 Inheritedinvalidated : Boolean
Specifies whether this object is to be re calculated on the next cycle.
Geometry
  moveOffsetX : Number
The x-axis offset of each repeated line.
HorizontalLineRepeater
  moveOffsetY : Number
The y-axis offset of each repeated line.
HorizontalLineRepeater
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedoffsetX : Number
The offset of the x-axis of each geometry object.
Repeater
 InheritedoffsetY : Number
The offset of the y-axis of each geometry object.
Repeater
 Inheritedstate : String
The state at which to draw this object
Geometry
 InheritedstateEvent : String
The state event at which to draw this object
Geometry
 Inheritedstroke : IGraphicsStroke
Defines the stroke object that will be used for rendering this geometry object.
Geometry
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  x : Number
The x-coordinate of the start point of the first line.
HorizontalLineRepeater
  x1 : Number
The x-coordinate of the end point of the first line.
HorizontalLineRepeater
  y : Number
The y-coordinate of the start point of the first line.
HorizontalLineRepeater
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
  objectStack : Array
An Array of geometry objects that make up this repeater.
HorizontalLineRepeater
Public Methods
 MethodDefined by
  
HorizontalLineRepeater(x:Number = 0, y:Number = 0, x1:Number = 0, count:Number = 0, offsetX:Number = 0, offsetY:Number = 0, moveOffsetX:Number = 0, moveOffsetY:Number = 0)
Constructor.
HorizontalLineRepeater
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
DegrafaObject
 Inherited
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
DegrafaObject
 Inherited
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
DegrafaObject
  
draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for geometry objects.
HorizontalLineRepeater
 Inherited
endDraw(graphics:Graphics):void
Ends the draw phase for geometry objects.
Geometry
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
DegrafaObject
 Inherited
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
DegrafaObject
 Inherited
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
DegrafaObject
  
preDraw():void
Performs any pre calculation that is required to successfully render this element.
HorizontalLineRepeater
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
DegrafaObject
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
boundsproperty
bounds:Rectangle  [read-only]

The tight bounds of this element as represented by a Rectangle object.

This property can be used as the source for data binding.

Implementation
    public function get bounds():Rectangle
dataproperty 
data:String  [write-only]

HorizontalLineRepeater short hand data value.

The Horizontal Line Repeater data property expects exactly 3 values x, y and x1 separated by spaces.

This property can be used as the source for data binding.

Implementation
    public function set data(value:String):void

See also

moveOffsetXproperty 
moveOffsetX:Number  [read-write]

The x-axis offset of each repeated line. If not specified a default value of 0 is used.

This property can be used as the source for data binding.

Implementation
    public function get moveOffsetX():Number
    public function set moveOffsetX(value:Number):void
moveOffsetYproperty 
moveOffsetY:Number  [read-write]

The y-axis offset of each repeated line. If not specified a default value of 0 is used.

This property can be used as the source for data binding.

Implementation
    public function get moveOffsetY():Number
    public function set moveOffsetY(value:Number):void
objectStackproperty 
protected var objectStack:Array

An Array of geometry objects that make up this repeater.

xproperty 
x:Number  [read-write]

The x-coordinate of the start point of the first line. If not specified a default value of 0 is used.

This property can be used as the source for data binding.

Implementation
    public function get x():Number
    public function set x(value:Number):void
x1property 
x1:Number  [read-write]

The x-coordinate of the end point of the first line. If not specified a default value of 0 is used.

This property can be used as the source for data binding.

Implementation
    public function get x1():Number
    public function set x1(value:Number):void
yproperty 
y:Number  [read-write]

The y-coordinate of the start point of the first line. If not specified a default value of 0 is used.

This property can be used as the source for data binding.

Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor detail
HorizontalLineRepeater()constructor
public function HorizontalLineRepeater(x:Number = 0, y:Number = 0, x1:Number = 0, count:Number = 0, offsetX:Number = 0, offsetY:Number = 0, moveOffsetX:Number = 0, moveOffsetY:Number = 0)

Constructor.

The horizontal line constructor accepts 8 optional arguments that define it's center point and radius.

Parameters
x:Number (default = 0) — A number indicating the starting x-axis coordinate.
 
y:Number (default = 0) — A number indicating the starting y-axis coordinate.
 
x1:Number (default = 0) — A number indicating the ending x-axis coordinate.
 
count:Number (default = 0) — A number indicating the repeat count of horizontal lines.
 
offsetX:Number (default = 0) — A number indicating the x-axis offset of each horizontal line repeated.
 
offsetY:Number (default = 0) — A number indicating the y-axis offset of each horizontal line repeated.
 
moveOffsetX:Number (default = 0) — A number indicating the x-axis of each horizontal line repeated.
 
moveOffsetY:Number (default = 0) — A number indicating the y-axis of each horizontal line repeated.
Method detail
draw()method
public override function draw(graphics:Graphics, rc:Rectangle):void

Begins the draw phase for geometry objects. All geometry objects override this to do their specific rendering.

Parameters
graphics:Graphics — The current context to draw to.
 
rc:Rectangle — A Rectangle object used for fill bounds.
preDraw()method 
public override function preDraw():void

Performs any pre calculation that is required to successfully render this element. Including bounds calculations and lower level drawing command storage. Each geometry object overrides this and is responsible for it's own pre calculation cycle.