Packagecom.degrafa.geometry
Classpublic class EllipticalArc
InheritanceEllipticalArc Inheritance Geometry Inheritance DegrafaObject
ImplementsIGeometry

The EllipticalArc element draws an elliptical arc using the specified x, y, width, height, start angle, arc and closure type.

See also

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


Public Properties
 PropertyDefined by
  arc : Number
The angular extent of the arc.
EllipticalArc
 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.
EllipticalArc
  closureType : String
The method in which to close the arc.
EllipticalArc
  data : String
EllipticalArc short hand data value.
EllipticalArc
  derive : EllipticalArc
[write-only] An object to derive this objects properties from.
EllipticalArc
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 Inheritedfill : IGraphicsFill
Defines the fill object that will be used for rendering this geometry object.
Geometry
 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
  height : Number
The height of the arc.
EllipticalArc
 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
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  startAngle : Number
The beginning angle of the arc.
EllipticalArc
 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
  width : Number
The width of the arc.
EllipticalArc
  x : Number
The x-axis coordinate of the upper left point of the arcs enclosure.
EllipticalArc
  y : Number
The y-axis coordinate of the upper left point of the arcs enclosure.
EllipticalArc
Protected Properties
 PropertyDefined by
  commandStack : Array
An Array of flash rendering commands that make up this element.
EllipticalArc
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
EllipticalArc(x:Number, y:Number, width:Number, height:Number, startAngle:Number, arc:Number, closureType:String = null)
Constructor.
EllipticalArc
 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.
EllipticalArc
 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.
EllipticalArc
 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
arcproperty
arc:Number  [read-write]

The angular extent 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 arc():Number
    public function set arc(value:Number):void
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
closureTypeproperty 
closureType:String  [read-write]

The method in which to close the arc.

  • open will apply no closure.
  • chord will close the arc with a strait line to the start.
  • pie will draw a line from center to start and end to center forming a pie shape.
  • This property can be used as the source for data binding.

    Implementation
        public function get closureType():String
        public function set closureType(value:String):void
    commandStackproperty 
    protected var commandStack:Array

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

    dataproperty 
    data:String  [read-write]

    EllipticalArc short hand data value.

    The elliptical arc data property expects exactly 6 values x, y, width, height, startAngle and arc 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

    deriveproperty 
    derive:EllipticalArc  [write-only]

    An object to derive this objects properties from. When specified this object will derive it's unspecified properties from the passed object.

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

    Implementation
        public function set derive(value:EllipticalArc):void
    heightproperty 
    height:Number  [read-write]

    The height of the arc.

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

    Implementation
        public function get height():Number
        public function set height(value:Number):void
    startAngleproperty 
    startAngle:Number  [read-write]

    The beginning angle 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 startAngle():Number
        public function set startAngle(value:Number):void
    widthproperty 
    width:Number  [read-write]

    The width of the arc.

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

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

    The x-axis coordinate of the upper left point of the arcs enclosure. 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
    yproperty 
    y:Number  [read-write]

    The y-axis coordinate of the upper left point of the arcs enclosure. 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
    EllipticalArc()constructor
    public function EllipticalArc(x:Number, y:Number, width:Number, height:Number, startAngle:Number, arc:Number, closureType:String = null)

    Constructor.

    The elliptical arc constructor accepts 7 optional arguments that define it's x, y, width, height, start angle, arc and closure type.

    Parameters
    x:Number — A number indicating the upper left x-axis coordinate.
     
    y:Number — A number indicating the upper left y-axis coordinate.
     
    width:Number — A number indicating the width.
     
    height:Number — A number indicating the height.
     
    startAngle:Number — A number indicating the beginning angle of the arc.
     
    arc:Number — A number indicating the the angular extent of the arc, relative to the start angle.
     
    closureType:String (default = null) — A string indicating the method used to close the arc.
    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.