Example usage for Java com.google.gwt.widgetideas.graphics.client GWTCanvas fields, constructors, methods, implement or subclass
The text is from its open source code.
Color | TRANSPARENT Use this constant as a parameter for the #setBackgroundColor(Color) method. |
GWTCanvas(int coordX, int coordY) Creates a GWTCanvas element. | |
GWTCanvas() Creates a GWTCanvas 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. |
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 | restoreContext() Restores the last saved context from the context stack. |
void | saveContext() Saves the current context to the context stack. |
void | setFillStyle(CanvasGradient grad) Set the current Fill Style to the specified color gradient. |
void | setFillStyle(Color color) Set the current Fill Style to the specified color. |
void | setLineWidth(double width) Sets the current context's linewidth. |
void | setStrokeStyle(CanvasGradient grad) Set the current Stroke Style to the specified color gradient. |
void | setStrokeStyle(Color color) Set the current Stroke Style to the specified color. |
void | stroke() Strokes the current path according to the current stroke style. |
void | translate(double x, double y) Applies a translation (linear shift) by x in the horizontal and by y in the vertical. |