Article View: borland.public.jbuilder.java.language
Article #8487Re: Line styles for graphics?
From: John McGrath TeamB
Date: Sat, 17 Mar 2001 07:43
Date: Sat, 17 Mar 2001 07:43
18 lines
1364 bytes
1364 bytes
On Fri, 16 Mar 2001 17:38:30 -0800, Silvano Salvador wrote:
> Can anyone tell me if it's possible to change the thickness
> of a line for drawing or even setting the line type to dashed?
> I hope you don't have to redraw the same line offset by one
> pixel to change the thickness!
Look at the Graphics2D and the Stroke classes. They will do all of
that and a lot more.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.151cdc11e7d4b53498a086@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!hermes.visi.com!news-out.visi.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60References:
<3AB2C016.24ECA52B@ultranet.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5209ec66a57ca16e X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-16 23:44:08 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.language Subject: Re: Line styles for graphics? Date: Sat, 17 Mar 2001 02:43:05 -0500 Message-ID: <MPG.151cdc11e7d4b53498a086@forums.borland.com> References: <3AB2C016.24ECA52B@ultranet.ca> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: 16 Mar 2001 23:38:53 -0800, 209.92.40.60 Lines: 18 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!hermes.visi.com!news-out.visi.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60