Packagegraphics.drawing
Classpublic dynamic class ArcPen
InheritanceArcPen Inheritance Pen Inheritance flash.utils.Proxy

This pen draw a pie or chord arc shape with a Graphics object.



Public Properties
 PropertyDefined By
 Inheritedalign : uint
Determinates the align value of the pen.
Pen
  angle : Number
Indicates the value of the angle used to draw an arc shape.
ArcPen
 Inheritedfill : IFillStyle
Determinates the fill style object of the pen.
Pen
 Inheritedgraphics : *
Specifies the Graphics object belonging to this Shape object, where vector drawing commands can occur.
Pen
 Inheritedline : ILineStyle
Determinates the line style object of the pen.
Pen
  radius : Number
Defines the radius value of the arc shape.
ArcPen
  startAngle : Number
Defines the value of the start angle to draw the arc in the display reference.
ArcPen
  type : String
Defines the type of the arc, can be a chord or a pie arc.
ArcPen
 InheriteduseClear : Boolean = true
Indicates if the clear() method is invoked at the end of the draw method.
Pen
 InheriteduseEndFill : Boolean = true
Indicates if the endFill() method is invoked at the end of the draw method.
Pen
  x : Number
Defines the x origin position of the arc shape.
ArcPen
  y : Number
Defines the y origin position of the arc shape.
ArcPen
  yRadius : Number
Defines the y origin position of the arc radius.
ArcPen
Public Methods
 MethodDefined By
  
ArcPen(graphic:*, angle:Number = 360, radius:Number = 100, x:Number = 0, y:Number = 0, startAngle:Number = 0, yRadius:Number, type:String = pie, align:uint = 10)
Creates a new ArcPen instance.
ArcPen
 Inherited
BF(... arguments):void
Defines a shortcut reference to used the beginBitmapFill method.
Pen
 Inherited
C(... arguments):void
Defines a shortcut reference to used the curveTo method.
Pen
 Inherited
CL():void
Defines a shortcut reference to used the clear method.
Pen
  
draw(... args):void
[override] Draws the shape in the movieclip reference of this pen.
ArcPen
  
drawShape():void
[override] This method contains the basic drawing shape algorithm.
ArcPen
 Inherited
EF():void
Defines a shortcut reference to used the endFill method.
Pen
 Inherited
F(... arguments):void
Defines a shortcut reference to used the beginFill method.
Pen
 Inherited
GF(... arguments):void
Defines a shortcut reference to used the beginGradientFill method.
Pen
 Inherited
GS(... arguments):void
Defines a shortcut reference to used the lineGradientStyle method.
Pen
 Inherited
L(... arguments):void
Defines a shortcut reference to used the lineTo method.
Pen
 Inherited
M(... arguments):void
Defines a shortcut reference to used the moveTo method.
Pen
 Inherited
S(... arguments):void
Defines a shortcut reference to used the lineStyle method.
Pen
  
setPen(... args):void
Sets the arc options to defined all values to draw the arc shape in the movieclip reference of this pen.
ArcPen
Property Detail
angleproperty
angle:Number

Indicates the value of the angle used to draw an arc shape.


Implementation
    public function get angle():Number
    public function set angle(value:Number):void
radiusproperty 
public var radius:Number

Defines the radius value of the arc shape.

startAngleproperty 
startAngle:Number

Defines the value of the start angle to draw the arc in the display reference.


Implementation
    public function get startAngle():Number
    public function set startAngle(value:Number):void
typeproperty 
type:String

Defines the type of the arc, can be a chord or a pie arc.


Implementation
    public function get type():String
    public function set type(value:String):void

See also

ArcType
xproperty 
public var x:Number

Defines the x origin position of the arc shape.

yproperty 
public var y:Number

Defines the y origin position of the arc shape.

yRadiusproperty 
public var yRadius:Number

Defines the y origin position of the arc radius.

Constructor Detail
ArcPen()Constructor
public function ArcPen(graphic:*, angle:Number = 360, radius:Number = 100, x:Number = 0, y:Number = 0, startAngle:Number = 0, yRadius:Number, type:String = pie, align:uint = 10)

Creates a new ArcPen instance.

Parameters
graphic:* — The Graphics reference to control with this helper. You can passed-in a Shape or Sprite/MovieClip reference in argument.
 
angle:Number (default = 360) — (optional) The angle of the arc pen. (default 360)
 
radius:Number (default = 100) — (optional) The radius value of the arc. (default 100)
 
x:Number (default = 0) — (optional) The x position of the center of the arc. (default 0)
 
y:Number (default = 0) — (optional) The y position of the center of the arc. (default 0)
 
startAngle:Number (default = 0) — (optional) The start angle of the pen. (default 0)
 
yRadius:Number (default = NaN) — (optional) The y radius value of the pen. (default NaN)
 
type:String (default = pie) — (optional) The ArcType of the pen. (default ArcType.PIE)
 
align:uint (default = 10) — (optional) The align value of the pen. (default Align.TOP_LEFT)
Method Detail
draw()method
override public function draw(... args):void

Draws the shape in the movieclip reference of this pen.

Parameters

... args — (optional) The angle of the arc pen.

drawShape()method 
override public function drawShape():void

This method contains the basic drawing shape algorithm.

setPen()method 
public function setPen(... args):void

Sets the arc options to defined all values to draw the arc shape in the movieclip reference of this pen.

Parameters

... args — (optional) The angle of the arc pen.