Packagegraphics
Classpublic class LineShaderStyle
InheritanceLineShaderStyle Inheritance Object
Implements ILineStyle

Since : Flash Player 10. AIR 1.5

Defines the line shader style of the vector shapes. See the Graphics.lineShaderStyle method.



Public Properties
 PropertyDefined By
  matrix : Matrix
An optional transformation matrix as defined by the flash.geom.Matrix class.
LineShaderStyle
  shader : Shader
The shader to use for the line stroke.
LineShaderStyle
Public Methods
 MethodDefined By
  
LineShaderStyle(shader:Shader = null, matrix:Matrix = null)
Creates a new LineShaderStyle instance.
LineShaderStyle
  
apply(graphic:Graphics):void
Initialize the line settings of the specified Graphics reference.
LineShaderStyle
  
clone():*
Creates and returns a shallow copy of the object.
LineShaderStyle
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
LineShaderStyle
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
LineShaderStyle
Property Detail
matrixproperty
public var matrix:Matrix

An optional transformation matrix as defined by the flash.geom.Matrix class. The matrix can be used to scale or otherwise manipulate the bitmap before applying it to the line style.

shaderproperty 
public var shader:Shader

The shader to use for the line stroke.

Constructor Detail
LineShaderStyle()Constructor
public function LineShaderStyle(shader:Shader = null, matrix:Matrix = null)

Creates a new LineShaderStyle instance.

Parameters
shader:Shader (default = null) — The shader to use for the line stroke.
 
matrix:Matrix (default = null) — An optional transformation matrix as defined by the flash.geom.Matrix class. The matrix can be used to scale or otherwise manipulate the bitmap before applying it to the line style.
Method Detail
apply()method
public function apply(graphic:Graphics):void

Initialize the line settings of the specified Graphics reference.

Parameters

graphic:Graphics

clone()method 
public function clone():*

Creates and returns a shallow copy of the object.

Returns
* — A new object that is a shallow copy of this instance.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.