Example usage for Java com.google.gwt.graphics.client Canvas fields, constructors, methods, implement or subclass
The text is from its open source code.
Canvas(int coordX, int coordY) Creates a Canvas element. |
void | beginPath() Erases the current path and prepares it for a new path. |
void | fillRect(double startX, double startY, double width, double height) Fills a rectangle of the specified dimensions, at the specified start coords, according to the current fillstyle. |
Element | getElement() |
void | lineTo(double x, double y) Adds a line from the last point in the current path to the point defined by x and y. |
void | moveTo(double x, double y) Makes the last point in the current path be (x,y). |
void | setFillStyle(CanvasGradient gradient) Set the current Fill Style to the specified color gradient. |
void | setFillStyle(Color color) Set the current Fill Style to the specified color. |
void | setFillStyle(String colorStr) |
void | setLineWidth(double width) Sets the current context's linewidth. |
void | setStrokeStyle(CanvasGradient gradient) Set the current Stroke Style to the specified color gradient. |
void | setStrokeStyle(Color color) Set the current Stroke Style to the specified color. |
void | setStrokeStyle(String styleString) Set the current Stroke Style via a valid Stroke Style String. |
void | stroke() Strokes the current path according to the current stroke style. |