Class: xrx.vml.Rect

xrx.vml. Rect

(private) new xrx.vml.Rect(The)

VML class representing a rectangle.
Parameters:
Name Type Description
The HTMLElement HTML element.
Source:

Extends

Members

xrx.vml.Rect#element_

Inherited From:
Source:

Methods

(static) xrx.vml.Rect.create(canvas)

Creates a new rectangle.
Parameters:
Name Type Description
canvas xrx.vml.Canvas The parent canvas object.
Source:

xrx.vml.Rect#draw(x, y, width, height, fillColor, fillOpacity, strokeColor, strokeWidth)

Draws the rectangle.
Parameters:
Name Type Description
x number The X offset.
y number The Y offset.
width number The width.
height number The height.
fillColor string The fill color.
fillOpacity number Opacity of the fill color.
strokeColor string The stroke color.
strokeWidth number The stroke width.
Source:

xrx.vml.Rect#getElement() → {HTMLElement}

Returns the HTML element held by the Raphael object.
Inherited From:
Source:
Returns:
The HTML element.
Type
HTMLElement

xrx.vml.Rect#setFillColor(color)

Sets the fill color of the stylable element.
Parameters:
Name Type Description
color string The fill color.
Inherited From:
Source:

xrx.vml.Rect#setFillOpacity(factor)

Sets the fill opacity of the stylable element.
Parameters:
Name Type Description
factor number The fill opacity.
Inherited From:
Source:

xrx.vml.Rect#setHeight(height)

Sets the height of the rectangle.
Parameters:
Name Type Description
height height The height.
Source:

xrx.vml.Rect#setStrokeColor(color)

Sets the stroke color of the stylable element.
Parameters:
Name Type Description
color string The stroke color.
Inherited From:
Source:

xrx.vml.Rect#setStrokeWidth(width)

Sets the stroke width of the stylable element.
Parameters:
Name Type Description
width number The stroke width.
Inherited From:
Source:

xrx.vml.Rect#setWidth(width)

Sets the width of the rectangle.
Parameters:
Name Type Description
width number The width.
Source:

xrx.vml.Rect#setX(x)

Sets the X coordinate of the rectangle.
Parameters:
Name Type Description
x number The coordinate.
Source:

xrx.vml.Rect#setY(y)

Sets the Y coordinate of the rectangle.
Parameters:
Name Type Description
y number The coordinate.
Source:

(private) xrx.vml.Rect#strokeAndFill_()

Inherited From:
Source: