|
Re: what differences between draw2d and java2d? [message #20123 is a reply to message #20120] |
Wed, 18 September 2002 08:43  |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
"xu" <xuyuehua@hotmail.com> wrote in message
news:am9d2k$uib$1@rogue.oti.com...
>
> What are the differences between draw2d and java2d? Effiency or
> availability?
What are the similarities? These two packages are unrelated. draw2d is a
layout and painting system based on Figures and LayoutManagers, which could
be considered analogous to lightweight components in Swing. java2d is a set
of API on the AWT Graphics hierarchy. It includes advanced features like
splines, font rotation, and affine transforms. These things are not
supported in SWT and therefore not available in draw2d.
> How could we translate code written in java2d to draw2d? Is that difficult
> to do so?
> Can I use java2d in eclipse platform or in swt enviroment?
On Windows only, you can embed an AWT control in SWT, that is the only way.
> One more question. Why Eclipse create draw2d instead use the interfaces of
> java2d?
What interfaces are you talking about?
|
|
|
Powered by
FUDForum. Page generated in 0.04538 seconds