It would be nice to have an RFE filed on this. There are a lot of issues here, but at the very least the RFE would give us a place to increase awareness of the issues, even if we don't find an acceptable solution to put into our APIs.
There are two parts to this - whether to have Point2D implement Shape and be possible to hand one to draw(Shape) and whether to add a new convenience API targeted specifically at this capability.
The first part is fairly unsolvable and would probably have to be denied due to various interactions between how the renderers handle geometry with a moveto and nothing else, and with what one would expect to see returned by the PathIterator of a Point2D to remain true to various API contracts within the geom package. In particular, drawing anything if you do draw(Point2D) would violate some rule somewhere and represent a compromise.
With respect to a targeted and specific drawPoint() convenience API, we'd need some input on what (hopefully "most") developers would like to see from such a method which took into account potential antialiasing, zooming and other transforms (which includes printing). I'm not sure that we understand what developers want to see from such an API that wouldn't disappoint many when they start printing their work. But, it would provide a focus for such discussions and possible resolution.
I'm guessing that drawMarker(x, y) might be a better name for the convenience method because a "point" really isn't something to draw - it's a location...?
...jim
--On Thursday, September 9, 2004 4:20 PM -0400 Gregory Pierce <[EMAIL PROTECTED]> wrote:
Do I have to fill out an RFE or similar for something like this?
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
