(private) new xrx.vml.Rect(The)
VML class representing a rectangle.
Parameters:
| Name | Type | Description |
|---|---|---|
The |
HTMLElement | HTML element. |
Extends
Members
-
xrx.vml.Rect#element_
-
- Inherited From:
- Source:
Methods
-
(static) xrx.vml.Rect.create(canvas)
-
Creates a new rectangle.
Parameters:
Name Type Description canvasxrx.vml.Canvas The parent canvas object. -
xrx.vml.Rect#draw(x, y, width, height, fillColor, fillOpacity, strokeColor, strokeWidth)
-
Draws the rectangle.
Parameters:
Name Type Description xnumber The X offset. ynumber The Y offset. widthnumber The width. heightnumber The height. fillColorstring The fill color. fillOpacitynumber Opacity of the fill color. strokeColorstring The stroke color. strokeWidthnumber The stroke width. -
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 colorstring The fill color. - Inherited From:
- Source:
-
xrx.vml.Rect#setFillOpacity(factor)
-
Sets the fill opacity of the stylable element.
Parameters:
Name Type Description factornumber The fill opacity. - Inherited From:
- Source:
-
xrx.vml.Rect#setHeight(height)
-
Sets the height of the rectangle.
Parameters:
Name Type Description heightheight The height. -
xrx.vml.Rect#setStrokeColor(color)
-
Sets the stroke color of the stylable element.
Parameters:
Name Type Description colorstring The stroke color. - Inherited From:
- Source:
-
xrx.vml.Rect#setStrokeWidth(width)
-
Sets the stroke width of the stylable element.
Parameters:
Name Type Description widthnumber The stroke width. - Inherited From:
- Source:
-
xrx.vml.Rect#setWidth(width)
-
Sets the width of the rectangle.
Parameters:
Name Type Description widthnumber The width. -
xrx.vml.Rect#setX(x)
-
Sets the X coordinate of the rectangle.
Parameters:
Name Type Description xnumber The coordinate. -
xrx.vml.Rect#setY(y)
-
Sets the Y coordinate of the rectangle.
Parameters:
Name Type Description ynumber The coordinate. -
(private) xrx.vml.Rect#strokeAndFill_()
-
- Inherited From:
- Source: