search

goog.graphics.CanvasRectElement

Provided By
Extends
All Implemented Interfaces

Thin wrapper for canvas rectangle elements. This is an implementation of the goog.graphics.RectElement interface. You should not construct objects from this constructor. The graphics will return the object for you.

new CanvasRectElement( element, graphics, x, y, w, h, stroke, fill )

Parameters
element(Element|null)

The DOM element to wrap.

graphics(goog.graphics.CanvasGraphics|null)

The graphics creating this element.

xnumber

X coordinate (left).

ynumber

Y coordinate (top).

wnumber

Width of rectangle.

hnumber

Height of rectangle.

stroke(goog.graphics.Stroke|null)

The stroke to use for this element.

fill(goog.graphics.Fill|null)

The fill to use for this element.

Instance Methods

Instance Properties