| Package | com.degrafa.geometry.segment |
| Class | public class HorizontalLineTo |
| Inheritance | HorizontalLineTo Segment DegrafaObject |
| Implements | ISegment |
See also
| Property | Defined by | ||
|---|---|---|---|
| bounds : Rectangle [read-only]
The tight bounds of this segment as represented by a Rectangle object.
| HorizontalLineTo | ||
![]() | coordinateType : String | Segment | |
| data : String
HorizontalLineTo short hand data value.
| HorizontalLineTo | ||
![]() | document : Object
The MXML document that created this object.
| DegrafaObject | |
![]() | enableEvents : Boolean
Enable events for this object.
| DegrafaObject | |
![]() | hasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
| DegrafaObject | |
![]() | id : String
The identifier used by document to refer to this object.
| DegrafaObject | |
![]() | invalidated : Boolean
Specifies whether this object is to be re calculated
on the next cycle.
| Segment | |
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
| segmentType : String [read-only]
Return the segment type
| HorizontalLineTo | ||
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| x : Number
The x-coordinate of the end point of the line.
| HorizontalLineTo | ||
| Property | Defined by | ||
|---|---|---|---|
| commandStack : Array
An Array of flash rendering commands that make up this element.
| HorizontalLineTo | ||
![]() | eventDispatcher : EventDispatcher
EventDispatcher instance for this object.
| DegrafaObject | |
| Method | Defined by | ||
|---|---|---|---|
|
HorizontalLineTo(x:Number = 0, data:String = null, coordinateType:String = "absolute")
Constructor.
| HorizontalLineTo | ||
![]() |
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 | |
|
computeSegment(lastPoint:Point, absRelOffset:Point, commandStack:Array):void
Compute the segment adding instructions to the command stack.
| HorizontalLineTo | ||
![]() |
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
| DegrafaObject | |
![]() |
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 | |
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| DegrafaObject | |
![]() |
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
| DegrafaObject | |
![]() |
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.
| HorizontalLineTo | ||
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| DegrafaObject | |
![]() |
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 | |
| bounds | property |
bounds:Rectangle [read-only]The tight bounds of this segment as represented by a Rectangle object.
This property can be used as the source for data binding.
Implementation public function get bounds():Rectangle
| commandStack | property |
protected var commandStack:ArrayAn Array of flash rendering commands that make up this element.
| data | property |
data:String [read-write]HorizontalLineTo short hand data value.
The horizontal line to data property expects exactly 1 value x.
This property can be used as the source for data binding.
Implementation public function get data():String
public function set data(value:String):void
See also
| segmentType | property |
segmentType:String [read-only]Return the segment type
This property can be used as the source for data binding.
Implementation public function get segmentType():String
| x | property |
x:Number [read-write]The x-coordinate of the end point of the 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
| HorizontalLineTo | () | constructor |
public function HorizontalLineTo(x:Number = 0, data:String = null, coordinateType:String = "absolute")Constructor.
The HorizontalLineTo constructor accepts 3 optional arguments that define it's data, properties and a coordinate type.
Parametersx:Number (default = 0) — A number indicating the x-coordinate of the end point of the line.
|
|
data:String (default = null) — A string indicating the data to be used for this segment.
|
|
coordinateType:String (default = "absolute") — A string indicating the coordinate type to be used for this segment.
|
| computeSegment | () | method |
public function computeSegment(lastPoint:Point, absRelOffset:Point, commandStack:Array):voidCompute the segment adding instructions to the command stack.
ParameterslastPoint:Point |
|
absRelOffset:Point |
|
commandStack:Array |
| preDraw | () | method |
public override function preDraw():voidPerforms 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.