Example usage for Java com.google.gwt.canvas.client Canvas fields, constructors, methods, implement or subclass
The text is from its open source code.
HandlerRegistration | addBlurHandler(BlurHandler handler) |
HandlerRegistration | addClickHandler(ClickHandler handler) |
HandlerRegistration | addFocusHandler(FocusHandler handler) |
HandlerRegistration | addMouseMoveHandler(MouseMoveHandler handler) |
Canvas | createIfSupported() Return a new Canvas if supported, and null otherwise. |
CanvasElement | getCanvasElement() Returns the attached Canvas Element. |
Context | getContext(String contextId) Gets the rendering context that may be used to draw on this canvas. |
Context2d | getContext2d() Returns a 2D rendering context. |
int | getCoordinateSpaceHeight() Gets the height of the internal canvas coordinate space. |
int | getCoordinateSpaceWidth() Gets the width of the internal canvas coordinate space. |
boolean | isSupported() Runtime check for whether the canvas element is supported in this browser. |
void | setCoordinateSpaceHeight(int height) Sets the height of the internal canvas coordinate space. |
void | setCoordinateSpaceWidth(int width) Sets the width of the internal canvas coordinate space. |
void | setFocus(boolean focused) |
String | toDataUrl() Returns a data URL for the current content of the canvas element. |
String | toDataUrl(String type) Returns a data URL for the current content of the canvas element, with a specified type. |