This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Android and the fly likes Drawing shapes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Drawing shapes" Watch "Drawing shapes" New topic
Author

Drawing shapes

Akil Kumar
Ranch Hand

Joined: Jun 08, 2009
Posts: 83
Hi,

I want to draw three circles with scale on the rim. These three circles will start from the same coordinate but with different radius.
When I run this code the second circle is colliding or overlapping the first one. Can anyone give some idea how to draw these three circles without overlapping each other?



Thanks
Nidhi Sar
Ranch Hand

Joined: Oct 19, 2009
Posts: 252

Akil Kumar wrote:When I run this code the second circle is colliding or overlapping the first one. Can anyone give some idea how to draw these three circles without overlapping each other?


Hi Akil,

Not sure what you mean by colliding or overlapping. Both the circles have the same centre, so of course one is being drawn over the other. If you try this code (same code as yours, Line A just removes the filling from the circle) you can see where they are being drawn:


If you don't want the circles to overlap, you will have to give them different centres.
Akil Kumar
Ranch Hand

Joined: Jun 08, 2009
Posts: 83
Hi Nidhi,

Thanks it helped. I have attached an image. I am intending to bring some scale along the rim of the circle like how a speedometer will look like.
I have to give the minimum scale limit and the maximum scale limit. I have to specify how many segments or sector it can have between each scale.
Can you please provide some idea for this?

Thanks,


[Thumbnail for ICE-35.jpg]

Nidhi Sar
Ranch Hand

Joined: Oct 19, 2009
Posts: 252

Akil Kumar wrote:Hi Nidhi,

Thanks it helped. I have attached an image. I am intending to bring some scale along the rim of the circle like how a speedometer will look like.
I have to give the minimum scale limit and the maximum scale limit. I have to specify how many segments or sector it can have between each scale.
Can you please provide some idea for this?

Thanks,


Could you please post what you have tried till now... it would be easier to provide ideas based on that....
Akil Kumar
Ranch Hand

Joined: Jun 08, 2009
Posts: 83


I am trying use those scale parameters and draw a scale on the circle. This should like a watch dial with a scale on it.

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drawing shapes