| Package | pegas.draw |
| Class | public dynamic class PolygonPen |
| Inheritance | PolygonPen Pen flash.utils.Proxy |
| Property | Defined by | ||
|---|---|---|---|
![]() | align : uint
(read-write) Determinates the align value of the pen.
| Pen | |
| angle : Number = 0
Starting angle in degrees (default to 0).
| PolygonPen | ||
![]() | fill : IFillStyle
Determinates the fill style object of the pen.
| Pen | |
![]() | graphics : Graphics
Specifies the Graphics object belonging to this Shape object, where vector drawing commands can occur.
| Pen | |
![]() | line : ILineStyle
Determinates the line style object of the pen.
| Pen | |
| radius : Number
The radius value of the pen.
| PolygonPen | ||
| sides : uint
The number of sides (Math.abs(sides) must be > 2)
| PolygonPen | ||
![]() | useClear : Boolean = true
Indicates if the clear() method is invoked at the end of the draw method.
| Pen | |
![]() | useEndFill : Boolean = true
Indicates if the endFill() method is invoked at the end of the draw method.
| Pen | |
| x : Number
The offset x value of the center of the circle.
| PolygonPen | ||
| y : Number
The offset y value of the center of the circle.
| PolygonPen | ||
| Method | Defined by | ||
|---|---|---|---|
|
PolygonPen(graphic:*, ... arguments)
Creates a new PolygonPen.
| PolygonPen | ||
![]() |
BF(... arguments):void
Defines a shortcut reference to used the
beginBitmapFill method. | Pen | |
![]() |
C(... arguments):void
Defines a shortcut reference to used the
curveTo method. | Pen | |
![]() |
CL():void
Defines a shortcut reference to used the
clear method. | Pen | |
|
draw(... arguments):void
Draws the shape.
| PolygonPen | ||
|
drawShape():void
This method contains the basic drawing shape algorithm.
| PolygonPen | ||
![]() |
EF():void
Defines a shortcut reference to used the
endFill method. | Pen | |
![]() |
F(... arguments):void
Defines a shortcut reference to used the
beginFill method. | Pen | |
![]() |
GF(... arguments):void
Defines a shortcut reference to used the
beginGradientFill method. | Pen | |
![]() |
GS(... arguments):void
Defines a shortcut reference to used the
lineGradientStyle method. | Pen | |
![]() |
L(... arguments):void
Defines a shortcut reference to used the
lineTo method. | Pen | |
![]() |
M(... arguments):void
Defines a shortcut reference to used the
moveTo method. | Pen | |
![]() |
S(... arguments):void
Defines a shortcut reference to used the
lineStyle method. | Pen | |
|
setPen(... arguments):void
Sets the shape options to defined all values to draw the shape.
| PolygonPen | ||
![]() |
toString():String
Returns the string representation of this object.
| Pen | |
| angle | property |
public var angle:Number = 0Starting angle in degrees (default to 0).
| radius | property |
public var radius:NumberThe radius value of the pen.
| sides | property |
sides:uint [read-write]The number of sides (Math.abs(sides) must be > 2)
Implementation public function get sides():uint
public function set sides(value:uint):void
| x | property |
public var x:NumberThe offset x value of the center of the circle.
| y | property |
public var y:NumberThe offset y value of the center of the circle.
| PolygonPen | () | constructor |
public function PolygonPen(graphic:*, ... arguments)Creates a new PolygonPen. The Pen class use composition to control a Graphics reference and draw custom vector graphic shapes.
Parametersgraphic:* — The Graphics reference to control with this helper. You can passed-in a Shape or Sprite/MovieClip reference in argument.
|
|
... arguments — (optional)The x location of the center of the circle relative to the registration point of the parent display object (in pixels).
|
| draw | () | method |
public override function draw(... arguments):voidDraws the shape.
Parameters... arguments — (optional)The x location of the center of the circle relative to the registration point of the parent display object (in pixels).
|
| drawShape | () | method |
public override function drawShape():voidThis method contains the basic drawing shape algorithm.
| setPen | () | method |
public function setPen(... arguments):voidSets the shape options to defined all values to draw the shape.
Parameters... arguments — (optional) The x location of the center of the circle relative to the registration point of the parent display object (in pixels).
|