[4861] in java-interest

home help back first fref pref prev next nref lref last post

Re: java.awt.Polygon extends Rectangle??

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Wed Jan 17 01:32:34 1996

From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: grege@optimation.com.au (Greg Ewing)
Date: Tue, 16 Jan 1996 21:01:24 -0800 (PST)
Cc: java-interest@webrunner.neato.org (java)
In-Reply-To: <9601170134.AA00806@thredbo.optimation.com.au> from "Greg Ewing" at Jan 17, 96 12:34:44 pm


Hi Greg,

> > >From: Maria Winslow <winslow@cs.unc.edu>
> > 
> > In the API, java.awt.Polygon claims to extend Object, but 
> > surely it must extend Rectangle. Does anyone happen to know
> > for sure? Thanks.
> > 
> > mw
> 
> Unfortunately this is the case (Polygon inheriting from Object).
> One would have hoped that all shape classes like this would 
> descend from a common ancestor such as GeometricFigure or Shape.
> 
> The AWT is full of annoying things such as allowing one to pass a 
> Polygon object as an argument to Graphics.drawPolygon(Polygon p) 
> but not providing the means to pass a Rectangle/Arc to drawRect()/
> drawArc(). Another one is giving Point and Rectangle translate/move 
> functionality, but not providing this to Polygon.

Please make a list of things you'd like to see changed and
send it to Amy Moore (aim@eng.sun.com).

Have fun,

	Arthur van Hoff (avh@eng.sun.com)
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post