| Package | graphics.drawing |
| Class | public dynamic class FreePolygonPen |
| Inheritance | FreePolygonPen Pen flash.utils.Proxy |
| Property | Defined By | ||
|---|---|---|---|
![]() | align : uint
Determinates the align value of the pen. | Pen | |
![]() | fill : IFillStyle
Determinates the fill style object of the pen. | Pen | |
![]() | 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 | |
| points : Array
The list of all flash.geom.Point or graphics.geom.Vector2 objects to draw the specified polygon. | FreePolygonPen | ||
![]() | 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 | |
| Method | Defined By | ||
|---|---|---|---|
FreePolygonPen(graphic:*, ... arguments)
The Pen class use composition to control a Graphics reference and draw custom free polygon vector graphic shapes. | FreePolygonPen | ||
![]() | 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 [override]
Draws the shape. | FreePolygonPen | ||
drawShape():void [override]
This method contains the basic drawing shape algorithm. | FreePolygonPen | ||
![]() | 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(... args):void
Sets the shape options to defined all values to draw the shape. | FreePolygonPen | ||
| points | property |
points:ArrayThe list of all flash.geom.Point or graphics.geom.Vector2 objects to draw the specified polygon.
public function get points():Array public function set points(value:Array):void| FreePolygonPen | () | Constructor |
public function FreePolygonPen(graphic:*, ... arguments)The Pen class use composition to control a Graphics reference and draw custom free polygon 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 — An array of flash.geom.Point or graphics.geom.Vector2 objects or an argument serie of point objects.
|
| draw | () | method |
override public function draw(... arguments):voidDraws the shape.
Parameters
... arguments — An array of flash.geom.Point or graphics.geom.Vector2 objects or an argument serie of point objects.
|
| drawShape | () | method |
override public function drawShape():voidThis method contains the basic drawing shape algorithm.
| setPen | () | method |
public function setPen(... args):voidSets the shape options to defined all values to draw the shape.
Parameters
... args — (optional) The x position of the pen.
|