Class lime.fill.Stroke
Extends
lime.fill.Fill.
Defined in: stroke.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
lime.fill.Stroke(opt_width, opt_color)
Stroke
|
| Field Attributes | Field Name and Description |
|---|---|
|
Common name for stroke objects
|
- Fields borrowed from class lime.fill.Fill:
- initForSprite
| Method Attributes | Method Name and Description |
|---|---|
|
clone()
Clone the stroke.
|
|
|
getColor()
Return current stroke color.
|
|
|
getWidth()
Return stroke width.
|
|
|
setCanvasStyle(context)
|
|
|
setColor(color)
Set new color for the stroke.
|
|
|
setDOMStyle(domEl)
|
|
|
setWidth(width)
Set new stroke width.
|
Class Detail
lime.fill.Stroke(opt_width, opt_color)
Stroke
- Parameters:
- {(number|Array.<*>)=} opt_width
- Stroke width.
- {*=} opt_color
- Stroke color.
Field Detail
id
Common name for stroke objects
Method Detail
{lime.fill.Stroke}
clone()
Clone the stroke.
- Returns:
- {lime.fill.Stroke} New cloned stroke.
{lime.fill.Color}
getColor()
Return current stroke color.
- Returns:
- {lime.fill.Color} Color.
{number}
getWidth()
Return stroke width.
- Returns:
- {number} Stroke width.
setCanvasStyle(context)
- Parameters:
- context
{lime.fill.Stroke}
setColor(color)
Set new color for the stroke.
- Parameters:
- {*} color
- New color.
- Returns:
- {lime.fill.Stroke} Stroke object itself.
setDOMStyle(domEl)
- Parameters:
- domEl
{lime.fill.Stroke}
setWidth(width)
Set new stroke width.
- Parameters:
- {number} width
- New value.
- Returns:
- {lime.fill.Stroke} Stroke object itself.