Packagecom.degrafa.geometry.segment
Classpublic class EllipticalArcTo
InheritanceEllipticalArcTo Inheritance Segment Inheritance DegrafaObject
ImplementsISegment

Defines an elliptical arc (A,a) segment from the current point.

See also

http://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands


Public Properties
 PropertyDefined by
  bounds : Rectangle
[read-only] The tight bounds of this segment as represented by a Rectangle object.
EllipticalArcTo
 InheritedcoordinateType : String
Segment
  data : String
EllipticalArcTo short hand data value.
EllipticalArcTo
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 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.
Segment
  largeArcFlag : Number
A value indicating if the arc is to use a large arc.
EllipticalArcTo
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  rx : Number
The x-coordinate radius of the arc.
EllipticalArcTo
  ry : Number
The y-coordinate radius of the arc.
EllipticalArcTo
  segmentType : String
[read-only] Return the segment type
EllipticalArcTo
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  sweepFlag : Number
A value indicating if the arc is to use a sweep.
EllipticalArcTo
  x : Number
The x-coordinate of the end point of the arc.
EllipticalArcTo
  xAxisRotation : Number
The x axis rotation of the arc.
EllipticalArcTo
  y : Number
The y-coordinate of the end point of the arc.
EllipticalArcTo
Protected Properties
 PropertyDefined by
  commandStack : Array
An Array of flash rendering commands that make up this element.
EllipticalArcTo
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
EllipticalArcTo(rx:Number = 0, ry:Number = 0, xAxisRotation:Number = 0, largeArcFlag:Number = 0, sweepFlag:Number = 0, x:Number = 0, y:Number = 0, data:String = null, coordinateType:String = "absolute")
Constructor.
EllipticalArcTo
 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
  
computeSegment(lastPoint:Point, absRelOffset:Point, commandStack:Array):void
Compute the segment adding instructions to the command stack.
EllipticalArcTo
 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
 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.
EllipticalArcTo
 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 segment as represented by a Rectangle object.

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

Implementation
    public function get bounds():Rectangle
commandStackproperty 
protected var commandStack:Array

An Array of flash rendering commands that make up this element.

dataproperty 
data:String  [read-write]

EllipticalArcTo short hand data value.

The elliptical arc to data property expects exactly 7 values rx, ry, xAxisRotation, largeArcFlag, sweepFlag, 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

largeArcFlagproperty 
largeArcFlag:Number  [read-write]

A value indicating if the arc is to use a large arc. A value of 0 = true and a value of 1 = false see

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

Implementation
    public function get largeArcFlag():Number
    public function set largeArcFlag(value:Number):void
rxproperty 
rx:Number  [read-write]

The x-coordinate radius of the arc. 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 rx():Number
    public function set rx(value:Number):void
ryproperty 
ry:Number  [read-write]

The y-coordinate radius of the arc. 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 ry():Number
    public function set ry(value:Number):void
segmentTypeproperty 
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
sweepFlagproperty 
sweepFlag:Number  [read-write]

A value indicating if the arc is to use a sweep. A value of 0 = true and a value of 1 = false see

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

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

The x-coordinate of the end point of the arc. 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
xAxisRotationproperty 
xAxisRotation:Number  [read-write]

The x axis rotation of the arc. 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 xAxisRotation():Number
    public function set xAxisRotation(value:Number):void
yproperty 
y:Number  [read-write]

The y-coordinate of the end point of the arc. 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
EllipticalArcTo()constructor
public function EllipticalArcTo(rx:Number = 0, ry:Number = 0, xAxisRotation:Number = 0, largeArcFlag:Number = 0, sweepFlag:Number = 0, x:Number = 0, y:Number = 0, data:String = null, coordinateType:String = "absolute")

Constructor.

The EllipticalArcTo constructor accepts 9 optional arguments that define it's data, properties and a coordinate type.

Parameters
rx:Number (default = 0) — A number indicating the x-coordinate radius of the arc.
 
ry:Number (default = 0) — A number indicating the y-coordinate radius of the arc..
 
xAxisRotation:Number (default = 0) — A number indicating the x axis rotation of the arc.
 
largeArcFlag:Number (default = 0) — A number indicating if the arc is to use a large arc.
 
sweepFlag:Number (default = 0) — A number indicating if the arc is to use a sweep.
 
x:Number (default = 0) — A number indicating the x-coordinate of the end point of the arc.
 
y:Number (default = 0) — A number indicating the y-coordinate of the end point of the arc.
 
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.
Method detail
computeSegment()method
public function computeSegment(lastPoint:Point, absRelOffset:Point, commandStack:Array):void

Compute the segment adding instructions to the command stack.

Parameters
lastPoint:Point
 
absRelOffset:Point
 
commandStack:Array
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.