Hey I'm trying to have a client draw freely (like MSPaint) onto a canvas, and have that data then be sent to another client where they can view and also draw. The project I'm working in is in GWT, so I'm looking for a way to accomplish this using Google's WebToolkit. The perfect example I have of this is found at: http://drawboard.appspot.com only I have absolutely no clue where to begin. If you can point me towards any google searches (I've been doing many with nothing but failure) that'd be awesome! Or if you happen to know exactly how the above website implements this, that'd be perfect as well. Let me know!
--
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/-/ofG1FddHUfkJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Rather than create a new shape, I found I'm able to simply create a LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse events I can draw a PolyLine and add points to it. After any mouseUp event I can then JSONify the Layer and send that, which will have all shapes within it.
--
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/-/eY8mcIzdLn4J.
Rather than create a new shape, I found I'm able to simply create a LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse events I can draw a PolyLine and add points to it. After any mouseUp event I can then JSONify the Layer and send that, which will have all shapes within it.
--
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/-/eY8mcIzdLn4J.
Forgot to mention ... You can also add a touch end handler and apply the same concept. This way it will work on mobile devices as well.
Sent from my iPhone
Rather than create a new shape, I found I'm able to simply create a LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse events I can draw a PolyLine and add points to it. After any mouseUp event I can then JSONify the Layer and send that, which will have all shapes within it. --
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/-/eY8mcIzdLn4J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ec4JGx0RqasJ.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.