API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class Stroke

Package | org.openscales.core.style.stroke
Class | public class Stroke

Class defining how a stroke is rendered

Public Properties

| Property | Defined by
--- | --- | ---
|  | color : uint The color of the stroke | Stroke
|  | linecap : String | Stroke
|  | linejoin : String | Stroke
|  | opacity : Number The height of the stroke | Stroke
|  | width : Number The width of the stroke | Stroke

Public Methods

| Method | Defined by
--- | --- | ---
|  | Stroke(color:uint = 0x000000, width:Number = 1, opacity:Number = 1, linecap:String, linejoin:String) | Stroke
|  | configureGraphics(graphics:Graphics):void | Stroke

Public Constants

| Constant | Defined by
--- | --- | ---
|  | LINECAP_BUTT : String = "butt" [static] Possible values for the linecap of the stroke, i.e. | Stroke
|  | LINECAP_ROUND : String = "round" [static] | Stroke
|  | LINECAP_SQUARE : String = "square" [static] | Stroke
|  | LINEJOIN_BEVEL : String = "bevel" [static] | Stroke
|  | LINEJOIN_MITER : String = "miter" [static] Possible values for the linejoin of the stroke, i.e. | Stroke
|  | LINEJOIN_ROUND : String = "round" [static] | Stroke

Property detail

color | property

`color:uint` [read-write]

The color of the stroke

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

linecap | property |

`linecap:String` [read-write]Implementation
`public function get linecap():String`
`public function set linecap(value:String):void`

linejoin | property |

`linejoin:String` [read-write]Implementation
`public function get linejoin():String`
`public function set linejoin(value:String):void`

opacity | property |

`opacity:Number` [read-write]

The height of the stroke

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

width | property |

`width:Number` [read-write]

The width of the stroke

Implementation
`public function get width():Number`
`public function set width(value:Number):void`
Constructor detail

Stroke | () | constructor

`public function Stroke(color:uint = 0x000000, width:Number = 1, opacity:Number = 1, linecap:String, linejoin:String)`Parameters

| `color:uint` (default = `0x000000`)``
| `width:Number` (default = `1`)``
| `opacity:Number` (default = `1`)``
| `linecap:String`
| `linejoin:String`

Method detail

configureGraphics | () | method

`public function configureGraphics(graphics:Graphics):void` Parameters

| `graphics:Graphics`

Constant detail

LINECAP_BUTT | constant

`public static const LINECAP_BUTT:String = "butt"`

Possible values for the linecap of the stroke, i.e. how the ends of the line are displayed

LINECAP_ROUND | constant |

`public static const LINECAP_ROUND:String = "round"`

LINECAP_SQUARE | constant |

`public static const LINECAP_SQUARE:String = "square"`

LINEJOIN_BEVEL | constant |

`public static const LINEJOIN_BEVEL:String = "bevel"`

LINEJOIN_MITER | constant |

`public static const LINEJOIN_MITER:String = "miter"`

Possible values for the linejoin of the stroke, i.e. how two segments of a line are connected

LINEJOIN_ROUND | constant |

`public static const LINEJOIN_ROUND:String = "round"`