This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: AWT is dead now



Jeff Sturm wrote:

> > IMHO, it would be better to start implementing Java2D with
> > the latest specs (1.3), but starting with the pieces that are really
> > needed by Swing (bezier curves can be left for later...)
>   ^^^^^^^^^^^^^^^
> Umm... you just said Swing doesn't require Java2D...

Ok, I will try to be more clear.

AWT inplements the following draw methods:
   Graphics.drawLine(x1, y1, x2, y2)
   Graphics.drawArc()
   Graphics.drawPolygon()

I suspect that in JDK 1.0/1.1, these are all native methods.

In JDK 1.2/1.3, the basic primitive used by Java2D to draw is
   Graphics2D.draw(Shape)
and (for what I understand) drawLine() drawArc() are implemented
by creating the corresponding Shape object and calling
Graphics2D.draw().

So what I was suggesting is: let's go strait to the Graphics2D class,
with the Shape concept, but starting by implementing Shapes that are
useful for Swing (i.e. Rectangle and Line are useful, QuadCurve2D
is not).

Cedric


begin:vcard 
n:Berger;Cedric
tel;fax:++1 (650) 574-4476
tel;work:++1 (650) 574-4472
x-mozilla-html:TRUE
org:Wireless Networks Inc
version:2.1
email;internet:cedric@wireless-networks.com
title:Embedded Software Engineer
adr;quoted-printable:;;2322 El Camino Real=0D=0A;San Mateo;CA;94403;USA
fn:Cedric Berger
end:vcard

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]