Re: using affine transformations in GWT

2009-10-04 Thread stephan17

Atm I'm using gwtcanvas to draw. but it is not possible to do affine
transformations with it, that's the problem.

On 25 Sep., 18:08, David Given  wrote:
> Stephan wrote:
>
> [...]
>
> > i want to use affine transformations in Google Web Toolkit... How do i
> > do that?
>
> GWT has no graphics toolkit --- you can't actually *draw* anything other
> than inserting HTML into your document. So if you're wanting to
> transform graphics, you can't do that.
>
> Or did you have something else in mind? If you just want to apply a
> transformation to a vector, there's no reason why you couldn't write
> some code to do it --- it's not hard. What do you actually want to do?
>
> --
> ┌─── dg@cowlark.com ─http://www.cowlark.com─
> │
> │ "They laughed at Newton. They laughed at Einstein. Of course, they
> │ also laughed at Bozo the Clown." --- Carl Sagan
--~--~-~--~~~---~--~~
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: using affine transformations in GWT

2009-09-26 Thread Yanick

On Sep 25, 12:18 pm, olivier nouguier 
wrote:
> On Fri, Sep 25, 2009 at 6:08 PM, David Given  wrote:
> > Stephan wrote:
> > [...]
> > > i want to use affine transformations in Google Web Toolkit... How do i
> > > do that?
>
> > GWT has no graphics toolkit --- you can't actually *draw* anything other
> > than inserting HTML into your document. So if you're wanting to
> > transform graphics, you can't do that.
>
> Not so sure ;)
> Soon:http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas
>

The component you refer to is still in incubation and some parts are
still non functional. Also, there is nothing in the current API
suggesting that the widget will actmomually have an implementation of
the Java Graphics (or Graphics2D class). (See
http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/widgetideas/graphics/client/impl/GWTCanvasImpl.java)

Perhaps they should... but at the moment it is not possible. But, like
Olivier has said, you can manually calculate your graphic
transformations and use the class' methods to draw them. But then
again, I may just miss something totally great and awesome and I don't
know about it.

You can actually take a look at what has been made here :
http://www.chromeexperiments.com/ and go from there.
--~--~-~--~~~---~--~~
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: using affine transformations in GWT

2009-09-25 Thread olivier nouguier
Hi

On Fri, Sep 25, 2009 at 6:08 PM, David Given  wrote:

>
> Stephan wrote:
> [...]
> > i want to use affine transformations in Google Web Toolkit... How do i
> > do that?
>
> GWT has no graphics toolkit --- you can't actually *draw* anything other
> than inserting HTML into your document. So if you're wanting to
> transform graphics, you can't do that.
>

Not so sure ;)
Soon: http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas



> Or did you have something else in mind? If you just want to apply a
> transformation to a vector, there's no reason why you couldn't write
> some code to do it --- it's not hard. What do you actually want to do?
>
> --
> ┌─── dg@cowlark.com ─ http://www.cowlark.com ─
> │
> │ "They laughed at Newton. They laughed at Einstein. Of course, they
> │ also laughed at Bozo the Clown." --- Carl Sagan
>
> >
>


-- 
A coward is incapable of exhibiting love; it is the prerogative of the
brave.
--
Mohandas Gandhi

--~--~-~--~~~---~--~~
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: using affine transformations in GWT

2009-09-25 Thread David Given

Stephan wrote:
[...]
> i want to use affine transformations in Google Web Toolkit... How do i
> do that?

GWT has no graphics toolkit --- you can't actually *draw* anything other 
than inserting HTML into your document. So if you're wanting to 
transform graphics, you can't do that.

Or did you have something else in mind? If you just want to apply a 
transformation to a vector, there's no reason why you couldn't write 
some code to do it --- it's not hard. What do you actually want to do?

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ "They laughed at Newton. They laughed at Einstein. Of course, they
│ also laughed at Bozo the Clown." --- Carl Sagan

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



using affine transformations in GWT

2009-09-25 Thread Stephan

Hi,

i want to use affine transformations in Google Web Toolkit... How do i
do that?

In AWT it's easy using the Graphics2D Object...

thx
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---