Re: GWTCanvas alternatives

2011-08-29 Thread AThinerCoin
Context2d was exactly what I needed.  Thanks for all the help!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/R7D1Fr6MeNIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWTCanvas alternatives

2011-08-23 Thread StrongSteve
Take a look at [1] for a quick start.

[1] http://www.giantflyingsaucer.com/blog/?p=2338

On 22 Aug., 22:23, AThinerCoin athinerc...@gmail.com wrote:
 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWTCanvas alternatives

2011-08-23 Thread Nano Elefant
gwt-g2d may help you: http://code.google.com/p/gwt-g2d/

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWTCanvas alternatives

2011-08-22 Thread AThinerCoin
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWTCanvas alternatives

2011-08-22 Thread Seth Hollyman
Generally you grab a Context2d object from the canvas, and most of the 
methods you identified are exposed there.

See:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/canvas/dom/client/Context2d.html


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/r3LzT9Yzz5UJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.