Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
SolidColorStroke

Package | org.apache.flex.graphics
Class | public class SolidColorStroke
Inheritance | SolidColorStroke Object
Implements | IStroke

Public Properties

| Property | Defined By
--- | --- | ---
|  | alpha : Number The transparency of a color. | SolidColorStroke
|  | color : uint A color value. | SolidColorStroke
|  | lineCap : String The cap type on line segments. | SolidColorStroke
|  | lineDash : Array An array describing the pattern of line dashes. | SolidColorStroke
|  | lineJoin : String The join type of two segments. | SolidColorStroke
|  | miterLimit : Number The miter limit at the join of two segments. | SolidColorStroke
|  | weight : Number A color value. | SolidColorStroke

Public Methods

| Method | Defined By
--- | --- | ---
|  | SolidColorStroke(color:uint = 0x000000, weight:Number = 1, alpha:Number = 1.0) | SolidColorStroke
|  | apply(s:IGraphicShape):void | SolidColorStroke
|  | setLineStyle(weight:Number, color:uint = 0, alpha:Number, caps:String = null, joints:String = null, miterLimit:Number):void | SolidColorStroke

Property Detail

alpha | property

`alpha:Number`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.3

Runtime Versions : | Flash Player 10.2, AIR 2.6

The transparency of a color. Possible values are 0.0 (invisible) through 1.0 (opaque).

The default value is `1.0`.

Implementation
`public function get alpha():Number`
`public function set alpha(value:Number):void`

color | property |

`color:uint`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.3

Runtime Versions : | Flash Player 9, AIR 1.1

A color value.

Implementation
`public function get color():uint`
`public function set color(value:uint):void`

lineCap | property |

`lineCap:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.3

Runtime Versions : | Flash Player 10.2, AIR 2.6

The cap type on line segments. Possible values are butt round and square.

The default value is `butt`.

Implementation
`public function get lineCap():String`
`public function set lineCap(value:String):void`

See also

org.apache.flex.graphics.LineStyle

lineDash | property |

`lineDash:Array`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.7

Runtime Versions : | Flash Player 10.2, AIR 2.6

An array describing the pattern of line dashes.

The default value is `[none]`.

Implementation
`public function get lineDash():Array`
`public function set lineDash(value:Array):void`

lineJoin | property |

`lineJoin:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.7

Runtime Versions : | Flash Player 10.2, AIR 2.6

The join type of two segments. Possible values are miter round and bevel.

The default value is `miter`.

Implementation
`public function get lineJoin():String`
`public function set lineJoin(value:String):void`

See also

org.apache.flex.graphics.LineStyle

miterLimit | property |

`miterLimit:Number`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.7

Runtime Versions : | Flash Player 10.2, AIR 2.6

The miter limit at the join of two segments.

The default value is `4`.

Implementation
`public function get miterLimit():Number`
`public function set miterLimit(value:Number):void`

weight | property |

`weight:Number`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.3

Runtime Versions : | Flash Player 9, AIR 1.1

A color value.

Implementation
`public function get weight():Number`
`public function set weight(value:Number):void`
Constructor Detail

SolidColorStroke | () | Constructor

`public function SolidColorStroke(color:uint = 0x000000, weight:Number = 1, alpha:Number = 1.0)`

Parameters

| `color:uint` (default = `0x000000`)``
| `weight:Number` (default = `1`)``
| `alpha:Number` (default = `1.0`)``

Method Detail

apply | () | method

`public function apply(s:IGraphicShape):void`

Parameters

| `s:IGraphicShape`

setLineStyle | () | method |

`public function setLineStyle(weight:Number, color:uint = 0, alpha:Number, caps:String = null, joints:String = null, miterLimit:Number):void`

Parameters

| `weight:Number` (default = `NaN`)``
| `color:uint` (default = `0`)``
| `alpha:Number` (default = `NaN`)``
| `caps:String` (default = `null`)``
| `joints:String` (default = `null`)``
| `miterLimit:Number` (default = `NaN`)``

Mon Sep 5 2016, 07:19 AM -07:00