| Package | flash.display |
| Class | public final class GraphicsPath |
| Inheritance | GraphicsPath Object |
| Implements | IGraphicsPath, IGraphicsData |
A GraphicsPath object can be used with the Graphics.drawGraphicsData() method.
When this object is drawn it is similar to calling the Graphics.drawPath() method.
See also
| Property | Defined By | ||
|---|---|---|---|
| commands : Vector
The Vector of drawing commands representing the path. | GraphicsPath | ||
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | |
| data : Vector
The Vector containing the parameters to be used with the drawing commands. | GraphicsPath | ||
![]() | prototype : Object [static]
A reference to the prototype object of a class or function object. | Object | |
| winding : String
Specifies the winding rule using a value defined in the GraphicsPathWinding class. | GraphicsPath | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new GraphicsPath object. | GraphicsPath | ||
Adds a new "curveTo" command to the commands vector and
new coordinates to the data vector. | GraphicsPath | ||
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
Adds a new "lineTo" command to the commands vector and
new coordinates to the data vector. | GraphicsPath | ||
Adds a new "moveTo" command to the commands vector and
new coordinates to the data vector. | GraphicsPath | ||
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object | |
Adds a new "wideLineTo" command to the commands vector and
new coordinates to the data vector. | GraphicsPath | ||
Adds a new "wideMoveTo" command to the commands vector and
new coordinates to the data vector. | GraphicsPath | ||
| commands | property |
public var commands:VectorThe Vector of drawing commands representing the path. Each command can be one of the values defined by the GraphicsPathCommand class.
See also
| data | property |
public var data:VectorThe Vector containing the parameters to be used with the drawing commands.
| winding | property |
public var winding:StringSpecifies the winding rule using a value defined in the GraphicsPathWinding class.
See also
| GraphicsPath | () | Constructor |
public function GraphicsPath(commands:Vector = null, data:Vector = null, winding:String = "evenOdd")Creates a new GraphicsPath object.
Parameterscommands:Vector (default = null) — A Vector of integers representing commands defined by the GraphicsPathCommand class.
| |
data:Vector (default = null) — A Vector of Numbers where each pair of numbers is treated as a point (an x, y pair).
| |
winding:String (default = "evenOdd") — Specifies the winding rule using a value defined in the GraphicsPathWinding class.
|
See also
| curveTo | () | method |
public function curveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void
Adds a new "curveTo" command to the commands vector and
new coordinates to the data vector.
Parameters
controlX:Number — The x coordinate of the point to which to draw a curve.
| |
controlY:Number — The y coordinate of the point to which to draw a curve.
| |
anchorX:Number | |
anchorY:Number |
See also
| lineTo | () | method |
public function lineTo(x:Number, y:Number):void
Adds a new "lineTo" command to the commands vector and
new coordinates to the data vector.
Parameters
x:Number — The x coordinate of the point to which to draw a line.
| |
y:Number — The y coordinate of the point to which to draw a line.
|
See also
| moveTo | () | method |
public function moveTo(x:Number, y:Number):void
Adds a new "moveTo" command to the commands vector and
new coordinates to the data vector.
Parameters
x:Number — The x coordinate of the point to move to.
| |
y:Number — The y coordinate of the point to move to.
|
See also
| wideLineTo | () | method |
public function wideLineTo(x:Number, y:Number):void
Adds a new "wideLineTo" command to the commands vector and
new coordinates to the data vector.
Parameters
x:Number — The x coordinate of the point to which to draw a line.
| |
y:Number — The y coordinate of the point to which to draw a line.
|
See also
| wideMoveTo | () | method |
public function wideMoveTo(x:Number, y:Number):void
Adds a new "wideMoveTo" command to the commands vector and
new coordinates to the data vector.
Parameters
x:Number — The x coordinate of the point to move to.
| |
y:Number — The y coordinate of the point to move to.
|
See also