| Package | com.degrafa.geometry.segment |
| Class | public class QuadraticBezierTo |
| Inheritance | QuadraticBezierTo 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.
| QuadraticBezierTo | ||
![]() | coordinateType : String | Segment | |
| cx : Number
The x-coordinate of the control point of the curve.
| QuadraticBezierTo | ||
| cy : Number
The y-coordinate of the control point of the curve.
| QuadraticBezierTo | ||
| data : String
QuadraticBezierTo short hand data value.
| QuadraticBezierTo | ||
![]() | 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 | |
![]() | isShortSequence : Boolean | Segment | |
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
| segmentType : String [read-only]
Return the segment type
| QuadraticBezierTo | ||
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| x : Number
The x-coordinate of the end point of the curve.
| QuadraticBezierTo | ||
| y : Number
The y-coordinate of the end point of the curve.
| QuadraticBezierTo | ||
| Property | Defined by | ||
|---|---|---|---|
| commandStack : Array
An Array of flash rendering commands that make up this element.
| QuadraticBezierTo | ||
![]() | eventDispatcher : EventDispatcher
EventDispatcher instance for this object.
| DegrafaObject | |
| Method | Defined by | ||
|---|---|---|---|
|
QuadraticBezierTo(cx:Number = 0, cy:Number = 0, x:Number = 0, y:Number = 0, data:String = null, coordinateType:String = "absolute", isShortSequence:Boolean = false)
Constructor.
| QuadraticBezierTo | ||
![]() |
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, lastControlPoint:Point, commandStack:Array):void
Compute the segment adding instructions to the command stack.
| QuadraticBezierTo | ||
![]() |
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.
| QuadraticBezierTo | ||
![]() |
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.
| cx | property |
cx:Number [read-write]The x-coordinate of the control point of the curve. 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 cx():Number
public function set cx(value:Number):void
| cy | property |
cy:Number [read-write]The y-coordinate of the control point of the curve. 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 cy():Number
public function set cy(value:Number):void
| data | property |
data:String [read-write]QuadraticBezierTo short hand data value.
The quadratic Bézier data property expects exactly 4 values cx, cy, x and y separated by spaces.
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 curve. 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
| y | property |
y:Number [read-write]The y-coordinate of the end point of the curve. 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
| QuadraticBezierTo | () | constructor |
public function QuadraticBezierTo(cx:Number = 0, cy:Number = 0, x:Number = 0, y:Number = 0, data:String = null, coordinateType:String = "absolute", isShortSequence:Boolean = false)Constructor.
The QuadraticBezierTo constructor accepts 7 optional arguments that define it's data, properties, coordinate type and a flag that specifies a short sequence.
Parameterscx:Number (default = 0) — A number indicating the x-coordinate of the control point of the curve.
|
|
cy:Number (default = 0) — A number indicating the y-coordinate of the control point of the curve.
|
|
x:Number (default = 0) — A number indicating the x-coordinate of the end point of the curve.
|
|
y:Number (default = 0) — A number indicating the y-coordinate of the end point of the curve.
|
|
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.
|
|
isShortSequence:Boolean (default = false) — A boolean indicating the if this segment is a short segment definition.
|
| computeSegment | () | method |
public function computeSegment(lastPoint:Point, absRelOffset:Point, lastControlPoint:Point, commandStack:Array):voidCompute the segment adding instructions to the command stack.
ParameterslastPoint:Point |
|
absRelOffset:Point |
|
lastControlPoint: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.