search

goog.graphics.ext.Graphics

Provided By
Extends
All Implemented Interfaces

Wrapper for a graphics surface.

new Graphics( width, height, opt_coordWidth, opt_coordHeight, opt_domHelper, opt_isSimple )

Parameters
width(string|number)

The width in pixels. Strings expressing percentages of parent with (e.g. '80%') are also accepted.

height(string|number)

The height in pixels. Strings expressing percentages of parent with (e.g. '80%') are also accepted.

opt_coordWidth(number|null)=

The coordinate width - if omitted or null, defaults to same as width.

opt_coordHeight(number|null)=

The coordinate height. - if omitted or null, defaults to same as height.

opt_domHelper(goog.dom.DomHelper|null)=

The DOM helper object for the document we want to render in.

opt_isSimpleboolean=

Flag used to indicate the graphics object will be drawn to in a single pass, and the fastest implementation for this scenario should be favored. NOTE: Setting to true may result in degradation of text support.

Instance Methods

Instance Properties