Java com.google.gwt.widgetideas.graphics.client GWTCanvas fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.widgetideas.graphics.client GWTCanvas fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.widgetideas.graphics.client GWTCanvas.

The text is from its open source code.

Subclass

com.google.gwt.widgetideas.graphics.client.GWTCanvas has subclasses.
Click this link to see all its subclasses.

Field

ColorTRANSPARENT
Use this constant as a parameter for the #setBackgroundColor(Color) method.

Constructor

GWTCanvas(int coordX, int coordY)
Creates a GWTCanvas element.
GWTCanvas()
Creates a GWTCanvas element.

Method

voidbeginPath()
Erases the current path and prepares it for a new path.
voidfillRect(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.
voidlineTo(double x, double y)
Adds a line from the last point in the current path to the point defined by x and y.
voidmoveTo(double x, double y)
Makes the last point in the current path be (x,y).
voidrestoreContext()
Restores the last saved context from the context stack.
voidsaveContext()
Saves the current context to the context stack.
voidsetFillStyle(CanvasGradient grad)
Set the current Fill Style to the specified color gradient.
voidsetFillStyle(Color color)
Set the current Fill Style to the specified color.
voidsetLineWidth(double width)
Sets the current context's linewidth.
voidsetStrokeStyle(CanvasGradient grad)
Set the current Stroke Style to the specified color gradient.
voidsetStrokeStyle(Color color)
Set the current Stroke Style to the specified color.
voidstroke()
Strokes the current path according to the current stroke style.
voidtranslate(double x, double y)
Applies a translation (linear shift) by x in the horizontal and by y in the vertical.