Java com.google.gwt.canvas.client Canvas fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.canvas.client Canvas fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.canvas.client Canvas.

The text is from its open source code.

Method

HandlerRegistrationaddBlurHandler(BlurHandler handler)
HandlerRegistrationaddClickHandler(ClickHandler handler)
HandlerRegistrationaddFocusHandler(FocusHandler handler)
HandlerRegistrationaddMouseMoveHandler(MouseMoveHandler handler)
CanvascreateIfSupported()
Return a new Canvas if supported, and null otherwise.
CanvasElementgetCanvasElement()
Returns the attached Canvas Element.
ContextgetContext(String contextId)
Gets the rendering context that may be used to draw on this canvas.
Context2dgetContext2d()
Returns a 2D rendering context.
intgetCoordinateSpaceHeight()
Gets the height of the internal canvas coordinate space.
intgetCoordinateSpaceWidth()
Gets the width of the internal canvas coordinate space.
booleanisSupported()
Runtime check for whether the canvas element is supported in this browser.
voidsetCoordinateSpaceHeight(int height)
Sets the height of the internal canvas coordinate space.
voidsetCoordinateSpaceWidth(int width)
Sets the width of the internal canvas coordinate space.
voidsetFocus(boolean focused)
StringtoDataUrl()
Returns a data URL for the current content of the canvas element.
StringtoDataUrl(String type)
Returns a data URL for the current content of the canvas element, with a specified type.