[2158] in java-interest

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

Re: [Q]: How to draw a point (new api)?

daemon@ATHENA.MIT.EDU (Mike Christiansen)
Tue Sep 26 09:44:51 1995

To: java-interest@java.sun.com
From: mikec@metronet.com (Mike Christiansen)
Date: Tue, 26 Sep 1995 05:09:12 LOCAL

In article  Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM> writes:

>> I was just wondering if there is a method to draw/color a single point
>> in the new api??
>> 
>> Something similar to XDrawPoint in X11.

>I guess you can use:

>        g.drawLine(x, y, x, y);
>        
>or
>        g.fillRect(x, y, 1, 1);

Not very efficient, and hardly a solution. I hope that the graphic 
context is expanded in the future to include such useful primitives. 

Thanks,
Mike.
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Mike Christiansen
mikec@metronet.com

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

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