graphics

Classes

goog.graphics.AbstractGraphics
Base class for the different graphics. You should never construct objects of this class. Instead us goog.graphics.createGraphics
goog.graphics.AffineTransform
Creates a 2D affine transform. An affine transform performs a linear mapping from 2D coordinates to other 2D coordinates that preserves the "straightness" and "parallelness" of lines. Such a coordinate transformation can be represented by a 3 row by 3 column matrix with an implied last row of [ 0 0 1 ]. This matrix transforms source coordinates (x,y) into destination coordinates (x',y') by considering them to be a column vector and multiplying the coordinate vector by the matrix according to the following process:
     [ x']   [  m00  m01  m02  ] [ x ]   [ m00x + m01y + m02 ]
     [ y'] = [  m10  m11  m12  ] [ y ] = [ m10x + m11y + m12 ]
     [ 1 ]   [   0    0    1   ] [ 1 ]   [         1         ]
This class is optimized for speed and minimizes calculations based on its knowledge of the underlying matrix (as opposed to say simply performing matrix multiplication).
goog.graphics.CanvasEllipseElement
Thin wrapper for canvas ellipse elements. This is an implementation of the goog.graphics.EllipseElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.CanvasGraphics
A Graphics implementation for drawing using canvas.
goog.graphics.CanvasGroupElement
Object representing a group of objects in a canvas. This is an implementation of the goog.graphics.GroupElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.CanvasImageElement
Thin wrapper for canvas image elements. This is an implementation of the goog.graphics.ImageElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.CanvasPathElement
Thin wrapper for canvas path elements. This is an implementation of the goog.graphics.PathElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.CanvasRectElement
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.
goog.graphics.CanvasTextElement
Thin wrapper for canvas text elements. This is an implementation of the goog.graphics.TextElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.Element
Base class for a thin wrapper around the DOM element returned from the different draw methods of the graphics. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.EllipseElement
Interface for a graphics ellipse element. You should not construct objects from this constructor. The graphics will return an implementation of this interface for you.
goog.graphics.Fill
Creates a fill object
goog.graphics.Font
This class represents a font to be used with a renderer.
goog.graphics.GroupElement
Interface for a graphics group element. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.ImageElement
Interface for a graphics image element. You should not construct objects from this constructor. Instead, you should use goog.graphics.Graphics.drawImage and it will return an implementation of this interface for you.
goog.graphics.LinearGradient
Creates an immutable linear gradient fill object.
goog.graphics.Path
Creates a path object. A path is a sequence of segments and may be open or closed. Path uses the EVEN-ODD fill rule for determining the interior of the path. A path must start with a moveTo command. A "simple" path does not contain any arcs and may be transformed using the transform method.
goog.graphics.PathElement
Interface for a graphics path element. You should not construct objects from this constructor. The graphics will return an implementation of this interface for you.
goog.graphics.RectElement
Interface for a graphics rectangle element. You should not construct objects from this constructor. The graphics will return an implementation of this interface for you.
goog.graphics.SolidFill
Creates an immutable solid color fill object.
goog.graphics.Stroke
Creates an immutable stroke object.
goog.graphics.StrokeAndFillElement
Interface for a graphics element with a stroke and fill. This is the base interface for ellipse, rectangle and other shape interfaces. You should not construct objects from this constructor. The graphics will return an implementation of this interface for you.
goog.graphics.SvgEllipseElement
Thin wrapper for SVG ellipse elements. This is an implementation of the goog.graphics.EllipseElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.SvgGraphics
A Graphics implementation for drawing using SVG.
goog.graphics.SvgGroupElement
Thin wrapper for SVG group elements. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.SvgImageElement
Thin wrapper for SVG image elements. This is an implementation of the goog.graphics.ImageElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.SvgPathElement
Thin wrapper for SVG path elements. This is an implementation of the goog.graphics.PathElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.SvgRectElement
Thin wrapper for SVG 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.
goog.graphics.SvgTextElement
Thin wrapper for SVG text elements. This is an implementation of the goog.graphics.TextElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.TextElement
Interface for a graphics text element. You should not construct objects from this constructor. The graphics will return an implementation of this interface for you.
goog.graphics.VmlEllipseElement
Thin wrapper for VML ellipse elements. This is an implementation of the goog.graphics.EllipseElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.VmlGraphics
A Graphics implementation for drawing using VML.
goog.graphics.VmlGroupElement
Thin wrapper for VML group elements. This is an implementation of the goog.graphics.GroupElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.VmlImageElement
Thin wrapper for VML image elements. This is an implementation of the goog.graphics.ImageElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.VmlPathElement
Thin wrapper for VML path elements. This is an implementation of the goog.graphics.PathElement interface. You should not construct objects from this constructor. The graphics will return the object for you.
goog.graphics.VmlRectElement
Thin wrapper for VML 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.
goog.graphics.VmlTextElement
Thin wrapper for VML text elements. This is an implementation of the goog.graphics.TextElement interface. You should not construct objects from this constructor. The graphics will return the object for you.

Public Protected Private

Global Functions

goog.graphics.createGraphics(widthheightopt_coordWidthopt_coordHeightopt_domHelper) !goog.graphics.AbstractGraphics
goog.graphics is deprecated. It existed to abstract over browser differences before the canvas tag was widely supported. See http://en.wikipedia.org/wiki/Canvas_element for details. Returns an instance of goog.graphics.AbstractGraphics that knows how to draw for the current platform (A factory for the proper Graphics implementation)
Arguments:
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=
The optional coordinate width - if omitted or null, defaults to same as width.
opt_coordHeight : ?number=
The optional coordinate height - if omitted or null, defaults to same as height.
opt_domHelper : goog.dom.DomHelper=
The DOM helper object for the document we want to render in.
Returns: !goog.graphics.AbstractGraphics  The created instance.
code »
goog.graphics.createSimpleGraphics(widthheightopt_coordWidthopt_coordHeightopt_domHelper) !goog.graphics.AbstractGraphics
goog.graphics is deprecated. It existed to abstract over browser differences before the canvas tag was widely supported. See http://en.wikipedia.org/wiki/Canvas_element for details. Returns an instance of goog.graphics.AbstractGraphics that knows how to draw for the current platform (A factory for the proper Graphics implementation)
Arguments:
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=
The optional coordinate width, defaults to same as width.
opt_coordHeight : ?number=
The optional coordinate height, defaults to same as height.
opt_domHelper : goog.dom.DomHelper=
The DOM helper object for the document we want to render in.
Returns: !goog.graphics.AbstractGraphics  The created instance.
code »
goog.graphics.isBrowserSupported() boolean
goog.graphics is deprecated. It existed to abstract over browser differences before the canvas tag was widely supported. See http://en.wikipedia.org/wiki/Canvas_element for details. Static function to check if the current browser has Graphics support.
Returns: boolean  True if the current browser has Graphics support.
code »
goog.graphics.vmlGetElement_() Element
Returns the VML element corresponding to this object. This method is added to several classes below. Note that the return value of this method may change frequently in IE8, so it should not be cached externally.
Returns: Element  The VML element corresponding to this object.
code »

Global Properties

goog.graphics.ext :
No description.
Code »
goog.graphics.paths :
No description.
Code »

Package graphics

Package Reference