Packageflash.display
Classpublic final class GraphicsStroke
InheritanceGraphicsStroke Inheritance Object
Implements IGraphicsStroke, IGraphicsData

Defines a line style or stroke.

A GraphicsStroke object can be used with the Graphics.drawGraphicsData() method. when this object is drawn it is the equivalent of calling one of the methods of the Graphics class that sets the line style, such as the Graphics.lineStyle() method, the Graphics.lineBitmapStyle() method, or the Graphics.lineGradientStyle() method.

See also

flash.display.Graphics.lineStyle()
flash.display.Graphics.lineBitmapStyle()
flash.display.Graphics.lineGradientStyle()
flash.display.Graphics.drawGraphicsData()


Public Properties
 PropertyDefined By
  caps : String
GraphicsStroke
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  fill : IGraphicsFill
GraphicsStroke
  joints : String
GraphicsStroke
  miterLimit : Number
GraphicsStroke
  pixelHinting : Boolean
GraphicsStroke
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  scaleMode : String
GraphicsStroke
  thickness : Number
GraphicsStroke
Public Methods
 MethodDefined By
  
GraphicsStroke(thickness:Number = NaN, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "none", joints:String = "round", miterLimit:Number = 3.0, fill:IGraphicsFill = null)
GraphicsStroke
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
capsproperty
public var caps:String
fillproperty 
public var fill:IGraphicsFill
jointsproperty 
public var joints:String
miterLimitproperty 
public var miterLimit:Number
pixelHintingproperty 
public var pixelHinting:Boolean
scaleModeproperty 
public var scaleMode:String
thicknessproperty 
public var thickness:Number
Constructor Detail
GraphicsStroke()Constructor
public function GraphicsStroke(thickness:Number = NaN, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "none", joints:String = "round", miterLimit:Number = 3.0, fill:IGraphicsFill = null)

Parameters
thickness:Number (default = NaN)
 
pixelHinting:Boolean (default = false)
 
scaleMode:String (default = "normal")
 
caps:String (default = "none")
 
joints:String (default = "round")
 
miterLimit:Number (default = 3.0)
 
fill:IGraphicsFill (default = null)