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

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

Introduction

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

The text is from its open source code.

Constructor

Canvas(int coordX, int coordY)
Creates a Canvas 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.
ElementgetElement()
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).
voidsetFillStyle(CanvasGradient gradient)
Set the current Fill Style to the specified color gradient.
voidsetFillStyle(Color color)
Set the current Fill Style to the specified color.
voidsetFillStyle(String colorStr)
voidsetLineWidth(double width)
Sets the current context's linewidth.
voidsetStrokeStyle(CanvasGradient gradient)
Set the current Stroke Style to the specified color gradient.
voidsetStrokeStyle(Color color)
Set the current Stroke Style to the specified color.
voidsetStrokeStyle(String styleString)
Set the current Stroke Style via a valid Stroke Style String.
voidstroke()
Strokes the current path according to the current stroke style.