GWTCanvas alternatives
I'm trying to create a chart using GWT. The chart has a grid and x
and y axis labels and at least one line indicating status over time.
The example code I got from a co-worker uses two classes the
com.google.gwt.widgetideas.graphics.client package: GWTCanvas and
Color.
The documentation about GWTCanvas says to use Canvas instead, but
Canvas has a very limited number of methods. How do I replicate these
methods?
- clear()
- setFillStyle(Color color)
- fillRect(double startX, double startY, double width, double height)
- setLineWidth(double width)
- setStrokeStyle(Color color)
- beginPath()
- moveTo(double x, double y)
- lineTo(double x, double y)
- stoke()
Any help is appreciated. Thanks!
-Laura
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home