Skip to main content



      Home
Home » Eclipse Projects » GEF » what differences between draw2d and java2d?
what differences between draw2d and java2d? [message #20120] Wed, 18 September 2002 02:17 Go to next message
Eclipse UserFriend
Originally posted by: xuyuehua.hotmail.com

Re: what differences between draw2d and java2d? [message #20123 is a reply to message #20120] Wed, 18 September 2002 08:43 Go to previous message
Eclipse UserFriend
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?
Previous Topic:Where can I locate "advanced tracing preference page" in 2.0.1
Next Topic:GEF logic editor startup
Goto Forum:
  


Current Time: Wed May 07 23:26:47 EDT 2025

Powered by FUDForum. Page generated in 0.04538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top