AWT is dead now
Cedric Berger
cedric@wireless-networks.com
Tue Mar 21 10:12:00 GMT 2000
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
More information about the Java
mailing list