goog.graphics
Namespacegoog.graphics.AbstractGraphics
ClassBase class for the different graphics. You should never construct objects of this class. Instead us goog.graphics.createGraphics … more
goog.graphics.AffineTransform
ClassCreates 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). … more
goog.graphics.CanvasEllipseElement
ClassThin 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. … more
goog.graphics.CanvasGraphics
ClassA Graphics implementation for drawing using canvas. … more
goog.graphics.CanvasGroupElement
ClassObject 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. … more
goog.graphics.CanvasImageElement
ClassThin 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. … more
goog.graphics.CanvasPathElement
ClassThin 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. … more
goog.graphics.CanvasRectElement
ClassThin 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. … more
goog.graphics.CanvasTextElement
ClassThin 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. … more
goog.graphics.Element
ClassBase 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. … more
goog.graphics.EllipseElement
ClassInterface for a graphics ellipse element. You should not construct objects from this constructor. The graphics will return an implementation of this interface for you. … more
goog.graphics.Fill
ClassCreates a fill object … more
goog.graphics.Font
ClassThis class represents a font to be used with a renderer. … more
goog.graphics.GroupElement
ClassInterface for a graphics group element. You should not construct objects from this constructor. The graphics will return the object for you. … more
goog.graphics.ImageElement
ClassInterface for a graphics image element. You should not construct objects from this constructor. Instead, you should use {@code goog.graphics.Graphics.drawImage} and it will return an implementation of this interface for you. … more
goog.graphics.LinearGradient
ClassCreates an immutable linear gradient fill object. … more
goog.graphics.Path
ClassCreates 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 {@code transform} method. … more
goog.graphics.PathElement
ClassInterface for a graphics path element. You should not construct objects from this constructor. The graphics will return an implementation of this interface for you. … more
goog.graphics.RectElement
ClassInterface for a graphics rectangle element. You should not construct objects from this constructor. The graphics will return an implementation of this interface for you. … more
goog.graphics.SolidFill
ClassCreates an immutable solid color fill object. … more
goog.graphics.Stroke
ClassCreates an immutable stroke object. … more
goog.graphics.StrokeAndFillElement
ClassInterface 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. … more
goog.graphics.SvgEllipseElement
ClassThin 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. … more
goog.graphics.SvgGraphics
ClassA Graphics implementation for drawing using SVG. … more
goog.graphics.SvgGroupElement
ClassThin wrapper for SVG group elements. You should not construct objects from this constructor. The graphics will return the object for you. … more
goog.graphics.SvgImageElement
ClassThin 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. … more
goog.graphics.SvgPathElement
ClassThin 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. … more
goog.graphics.SvgRectElement
ClassThin 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. … more
goog.graphics.SvgTextElement
ClassThin 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. … more
goog.graphics.TextElement
ClassInterface for a graphics text element. You should not construct objects from this constructor. The graphics will return an implementation of this interface for you. … more
goog.graphics.VmlEllipseElement
ClassThin 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. … more
goog.graphics.VmlGraphics
ClassA Graphics implementation for drawing using VML. … more
goog.graphics.VmlGroupElement
ClassThin 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. … more
goog.graphics.VmlImageElement
ClassThin 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. … more
goog.graphics.VmlPathElement
ClassThin 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. … more
goog.graphics.VmlRectElement
ClassThin 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. … more
goog.graphics.VmlTextElement
ClassThin 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. … more
.createGraphics(width, height, opt_coordWidth, opt_coordHeight, opt_domHelper)
Returns an instance of goog.graphics.AbstractGraphics that knows how to draw for the current platform (A factory for the proper Graphics implementation)
width
{string
|number
}
height
{string
|number
}
opt_coordWidth
{?number
=}
opt_coordHeight
{?number
=}
opt_domHelper
{goog.dom.DomHelper
=}
goog.graphics.AbstractGraphics
}
.createSimpleGraphics(width, height, opt_coordWidth, opt_coordHeight, opt_domHelper)
Returns an instance of goog.graphics.AbstractGraphics that knows how to draw for the current platform (A factory for the proper Graphics implementation)
width
{string
|number
}
height
{string
|number
}
opt_coordWidth
{?number
=}
opt_coordHeight
{?number
=}
opt_domHelper
{goog.dom.DomHelper
=}
goog.graphics.AbstractGraphics
}
goog.graphics.ext
Namespace.isBrowserSupported()
Static function to check if the current browser has Graphics support.
boolean
}
goog.graphics.paths
Namespace