Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Whats the error in my program-creating overlapping GOval objects using GraphicsProgram Date: Fri, 20 Jan 2012 22:48:17 -0800 Organization: albasani.net Lines: 20 Message-ID: References: <532275d9-eb03-4db0-a2ef-9b051de444cc@m4g2000pbc.googlegroups.com> <930fb8aa-7429-4338-9baa-d3dc94b6a721@iu7g2000pbc.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net OrZyIfZ+jwnyaVHL7ORwaEv/M6+uKtl/tLJeBBgpxueBHIJVORvHb3kDetP80Qgy/7PB/pBUs2xBRaxUkngc5mMm5cggFTQx1TSfHYFkM/yaoJqktj1WEnbFMirFh+rd NNTP-Posting-Date: Sat, 21 Jan 2012 06:48:14 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="HjVLck6BCskMXt/07zn2sg2kbZoZ43+b3I3dMQszGrksSbIHavvSutSOg9Pbv6uSyJTLKFloa8PhzHi+eKl/g7RVbAAMXb97xYW7/epMY95SaKvY05ncNh1x4n/hMjf5"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 In-Reply-To: <930fb8aa-7429-4338-9baa-d3dc94b6a721@iu7g2000pbc.googlegroups.com> Cancel-Lock: sha1:8sfHC26iQtVoUeMWCCrW1l7H7Gk= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11556 On 01/20/2012 10:19 PM, student wrote: > I read the documentation. How do I create concentric circles? I am not By drawing them in such a fashion that they have the same center. > able to understand. I want to create sign like the sign of national > chain of stores "Target". Think about how you line them up given the documentation. What conditions would have to hold in the constructor arguments for the circles' centers to be the same? What algebraic transformation do you have to perform? To put it another way: What data does the constructor require to position a circle in a particular place? What data do you have available at the point of the constructor call? What formula transforms the latter to the former? -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg