new xrx.shape.Rect(drawing)
A class representing an engine-independent rectangle shape.
Parameters:
Name | Type | Description |
---|---|---|
drawing |
xrx.drawing.Drawing | The parent drawing canvas. |
- Source:
Extends
Members
-
(private) xrx.shape.Rect#engineElement_ :xrx.canvas.Rect|xrx.svg.Rect|xrx.vml.Rect
-
The engine element.
Type:
- Source:
-
(private) xrx.shape.Rect#fill_ :Object
-
Object describing the fill style.
Type:
- Object
- Inherited From:
- Source:
-
(private) xrx.shape.Rect#stroke_ :Object
-
Object describing the stroke style.
Type:
- Object
- Inherited From:
- Source:
Methods
-
xrx.shape.Rect#disposeInternal()
-
Disposes this rectangle shape.
- Source:
-
(private) xrx.shape.Rect#draw()
-
Draws this rectangle.
- Source:
-
xrx.shape.Rect#getCreatable() → {xrx.shape.RectHoverable}
-
Returns a helper shape that makes this shape creatable.
- Source:
Returns:
The creatable rectangle shape. -
xrx.shape.Rect#getFillColor() → {string}
-
Returns the fill color of this shape.
- Inherited From:
- Source:
Returns:
The fill color.- Type
- string
-
xrx.shape.Rect#getFillOpacity() → {number}
-
Returns the fill opacity of this shape.
- Inherited From:
- Source:
Returns:
The fill opacity.- Type
- number
-
xrx.shape.Rect#getHeight() → {number}
-
Returns the height of this rectangle.
- Source:
Returns:
The height.- Type
- number
-
xrx.shape.Rect#getHoverable() → {xrx.shape.RectHoverable}
-
Returns a helper shape that makes this shape hoverable.
- Source:
Returns:
The hoverable rectangle shape. -
xrx.shape.Rect#getModifiable() → {xrx.shape.RectHoverable}
-
Returns a helper shape that makes this shape modifiable.
- Source:
Returns:
The modifiable rectangle shape. -
xrx.shape.Rect#getSelectable() → {xrx.shape.RectSelectable}
-
Returns a helper shape that makes this shape selectable.
- Source:
Returns:
The selectable rectangle shape. -
xrx.shape.Rect#getStrokeColor() → {string}
-
Returns the stroke color of this shape.
- Inherited From:
- Source:
Returns:
The stroke color.- Type
- string
-
xrx.shape.Rect#getStrokeWidth() → {number}
-
Returns the stroke width of this shape.
- Inherited From:
- Source:
Returns:
The stroke width.- Type
- number
-
xrx.shape.Rect#getWidth() → {number}
-
Returns the width of this rectangle.
- Source:
Returns:
The width.- Type
- number
-
xrx.shape.Rect#getX() → {number}
-
Returns the X coordinate of this rectangle.
- Source:
Returns:
The coordinate.- Type
- number
-
xrx.shape.Rect#getY() → {number}
-
Returns the Y coordinate of this rectangle.
- Source:
Returns:
The coordinate.- Type
- number
-
(private) xrx.shape.Rect#setAffineCoords(position)
-
Function makes sure that the underlying polygon rendering class stays a rectangle.
Parameters:
Name Type Description position
number The nth vertex currently modified. - Source:
-
xrx.shape.Rect#setFillColor(color)
-
Sets the fill color of this shape.
Parameters:
Name Type Description color
string The fill color. - Inherited From:
- Source:
-
xrx.shape.Rect#setFillOpacity(factor)
-
Sets the fill opacity of this shape.
Parameters:
Name Type Description factor
number The fill opacity. - Inherited From:
- Source:
-
xrx.shape.Rect#setHeight(height)
-
Sets the height of this rectangle.
Parameters:
Name Type Description height
height The height. - Source:
-
xrx.shape.Rect#setStrokeColor(color)
-
Sets the stroke color of this shape.
Parameters:
Name Type Description color
string The stroke color. - Inherited From:
- Source:
-
xrx.shape.Rect#setStrokeWidth(width)
-
Sets the stroke width of this shape.
Parameters:
Name Type Description width
number The stroke width. - Inherited From:
- Source:
-
xrx.shape.Rect#setStyle(style)
-
Sets a stylable object for this shape.
Parameters:
Name Type Description style
xrx.shape.Style - Inherited From:
- Source:
-
xrx.shape.Rect#setWidth(width)
-
Sets the width of this rectangle.
Parameters:
Name Type Description width
number The width. - Source:
-
xrx.shape.Rect#setX(x)
-
Sets the X coordinate of this rectangle.
Parameters:
Name Type Description x
number The coordinate. - Source:
-
xrx.shape.Rect#setY(y)
-
Sets the Y coordinate of this rectangle.
Parameters:
Name Type Description y
number The coordinate. - Source: