How to draw circle if I have two points info and radius of the circle?

Hi,
I am trying to draw circle.
Inputs I have is 1. Two points of the circle and
2. Radius of the circle.
Please let me know if u have solution using Shape, Graphics2D apis.
Thanks in advance..
Cheers,
Somasekhar

As far as the drawing is concerned, you would use Graphics# drawOval. There's no API method to draw a circle using the parameters of two points and a radius.
You need to solve the problem on paper and work out the maths involved, then translate that math into working Java code.
btw, you do realize that the information will give you zero to two valid circles, don't you?
db

Similar Messages

  • I have two devices (Iphone and Ipad) on the same Apple ID. When I go to Icloud and click at the "find Iphone" I see only one of my devices. How can I do to see both of them?

    I have two devices (Iphone and Ipad) on the same Apple ID. When I go to Icloud and click at the "find Iphone" I see only one of my devices. How can I do to see both of them?

    Obvious question, but have you got 'Find My iPhone' set on both devices?  Settings>iCloud>Find My iPhone.

  • How can I blur a image with two variables : degree and radius?

    how can I blur a image with two variables : degree and radius?
    a lot of thanks !

    What are the values of these variables supposed to represent?

  • I have two accounts ( mine and one other) which show when I log on,do not need the second one showing so how do I make it "disappear" (not deleted)?

    I have two accounts (A and B) from the same provider on my pc, B is also on another pc and used by someone other than me. Thus, B on my pc is a duplicate and I do not want it displayed on my pc. How do I get it off?

    What's wrong with deleting B?

  • We have two Apple ID's but share the same computer....that runs Itunes...How do i setup Icloud for ea. user ID?

    We have two Apple ID's but share the same computer....that runs Itunes...How do i setup Icloud for ea. user ID?

    You can't merge Apple IDs.  What you could do is set up your phone to use the same iCloud accout you are using on your Mac.  To do this, go to Settings>iCloud and turn all synced data (Contacts, Calendars, etc.) to Off.  When prompted, choose to keep the data on the phone.  When everything is off, scroll to the bottom and tap Delete Account.  Now add the iCloud account you set up on your Mac (with the same Apple ID) and turn syncing back on for Calendars, Contacts, etc.  When prompted, you will probably want to choose merge, to merge the data on your phone with the existing data on this iCloud account.

  • I have two apple ids and want to merge them.  can someone tell me how to do this

    I have two apple ids and want to merge them.  Can someone tell me how to do this.  What I am trying to do is sync my apps from my computer to my ipad, but can't seem to be able to access one of my apple ids.
    Thank You

    App Store: Downloading Older Versions of Apps
    http://tinyurl.com/meqxplg
    App Store: Install the latest compatible version of an app
    http://support.apple.com/kb/ht5919
    Apple’s iOS App Store now offers ‘last compatible’ versions of apps for older devices
    http://appleinsider.com/articles/13/09/17/apples-ios-app-store-now-offers-last-c ompatible-versions-of-apps-for-older-devices
     Cheers, Tom

  • Hi, when I upload music into itunes from a cd it sometimes appears in itunes as two different albums and split up the music in 2 or even three albums....how can i merge these albums...this is particularly true when one album may have different composers?

    Hi, when I upload music into itunes from a cd it sometimes appears in itunes as two different albums and split up the music in 2 or even three albums....how can i merge these albums...this is particularly true when one album may have different composers?

    Generally setting a common Album title and Album Artist will fix things.
    For compilations that aren't, select all tracks, Get Info, and on the option tab set Part of a Compilation to No. If it already says No tick the box alongside, then click OK.
    For deeper problems see Grouping tracks into albums.
    tt2

  • HT204053 I have two Apple ids and want to consolidate everything onto one.  How do I do it?

    I have two Apple ids and my syncing from iMac to MacBook and iPod Touch is messed up.  I want to consolidate all of my contacts and calanders (at least!) under one of my ids, and also use that one for the App Store.  What can I do?

    Purchases are forever tied to the ID used to buy the items, so you don't want to change the iTunes Store account to a different ID.
    You cannot "consolidate" or merge two IDs.
    For your use of icloud, just decide which ID (or account) you want to use.  The following tells you how to move data from one icloud account to another:
    When connected to the account you want to GET data from, Go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off. 
    When prompted choose to keep the data on the iPhone. 
    After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using a different Apple ID and turn iCloud data syncing for contacts, etc. back to On.  When prompted, choose Merge.  This will upload the data to this new account.
    Note that this only affects the "Apple data" like contacts, calendars, reminders, etc.  Many third party apps also use iCloud to store data files there.  These files may be lost in the process, unless the apps also keep the data locally on the device.
    NOTE:  Photos in the photo stream (if you use it) will not transfer to the new account.  It is advised that you save the photos to a computer before performing the account switch. 

  • I just purchased a new ipod touch so now I have two. I do not want the second ipod touch to sync the same as the old ipod touch - 2 people with 2 different music preferences. How do I keep them separate.

    I just purchased a new ipod touch so now I have two. I do not want the second ipod touch to sync the same as the old ipod touch - 2 people with 2 different music preferences. How do I keep them separate.

    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • How do I change the network settings on my Apple TV? We have two wireless options and need to switch.

    How do I change the network settings on my Apple TV? We have two wireless options and need to switch.

    Welcome to the Apple Community.
    Settings > General > Network > WiFi and select your network.

  • I have two Apple IDs and when I got an Iphone 6, only the apps from one Apple ID are on the phone. How do I get my other apps on there?

    I (stupidly) have two Apple IDs and when I got an Iphone 6, only the apps from one Apple ID are on the phone. How do I get my other apps (from my old Iphone 4) on my new Iphone? Thanks

    You can use the same appleid that you purchased the apps with on the phone for the App store. Settings> iTunes & App Store and continue to use the other id for everything else allowing you to have access to your previously purchased apps. You can then either sync or download the apps without paying for them again.
    It can be quite handy having two appleids - it can be quite useful if you can manage them correctly. One id for the store and one for imessage is good for privacy if you have the same id in use on another device.

  • I work in a public library and we have two ipod touch and two ipod nanos we would like to circulate for our patrons. Any advice on how we can do this? Should we allow patrons to set the device up for personal use or download static content?

    I work in a public library and we have two ipod touch and two ipod nanos we would like to circulate for our patrons. Any advice on how we can do this? Should we allow patrons to set the device up for personal use or download static content?

    With the Nanos, you should have no problem lending them loaded with audiobooks from Librivox, etc.
    As for the iPod Touches, I'm not sure the question is whether you should allow patrons to set up the device for personal accounts, but whether you can prevent them from doing so. Prepare to to a factory restore every time one is returned.

  • We have two iPad 2s and on one apps keep shutting down but on the other iPad the same app is fine. We have deleted the app, hard restarted and it still shuts down. How can we fix this?

    We have two iPad 2s and on one apps keep shutting down but on the other iPad the same app is fine. We have deleted the app, hard restarted and it still shuts down. How can we fix this?

    got the same problem. did the hard reset but to no avail. mine is ipad 2 16gb ios 7

  • I have TWO FILE MANGER ICONS appearing in the Google Icon on my home page. It is a LG g3 how do I delete or get rid of one of them?

    I have TWO FILE MANGER ICONS appearing in the Google Icon on my home page. It is a LG g3 how do I delete or get rid of one of them?

    Tap and hold an icon.  It will bring a menu drop down and bring the icon to remove.

  • I have two iPods that show up with the same name on my iTunes account.  How do I separate them?

    I have two iPods that show up with the same name on my iTunes account.  How do I correct so that I can put different music on each ipod?

    I figured it out.  Thanks.

Maybe you are looking for

  • 5 doc type and 2 content repository

    Hi I have 5 document type in DMS and 2 content repository. Doc type QWE, ASD, JKL - pdf files must be in content repository X Doc type ABC, BNM -  pdf files must be in content repository Y How should I proceed to do this? Regards

  • Memory Card Problem

     I have an HP Pavilion Media Center m8000n computer.  The product number is RX881AA.   I performed a full recovery but I am missing the some drivers.   Under Portable Devices, Compact Flash, MS/MS-Pro, SD/MMC, and SM/xD-Picture all have exclamation m

  • When my iphone says it has been backed up to a computer where does everything get stored?

    I am trying to baqck up my iphone on the computer. How do i know? I am basically trying to back up only my photos and videos

  • Additive costs and LSMW

    Hi , I have LSMW for Additive cost upload, but unfortunately we have additive cost for all materilas  valid up to 9999 year so when ever we use LSMW for upload we need to hit (as it gives that screen showing previous additive cost estimate as it over

  • JComboBox popupmenu

    Hi, I have a JComboBox with DefaultComboBoxModel. Is there any way i can do this: When the popup of the JComboBox is down and the user right-clicks on an item in its list, a second popup menu to appear next to the mouse (with options for the item). S