AThinerCoin
unread,Aug 22, 2011, 4:23:45 PM8/22/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
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