Class Index | File Index

Classes


Class lime.fill.Stroke


Extends lime.fill.Fill.

Defined in: stroke.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
lime.fill.Stroke(opt_width, opt_color)
Stroke
Field Summary
Field Attributes Field Name and Description
 
id
Common name for stroke objects
Fields borrowed from class lime.fill.Fill:
initForSprite
Method Summary
Method Attributes Method Name and Description
 
Clone the stroke.
 
Return current stroke color.
 
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.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 30 2011 11:27:23 GMT+0300 (EEST)