Area Question

Hi Guys,
I was wondering how to test if one area overlaps another. The standard methods only seem to test the bounding boxes. I need to actually test the paths of the areas as opposed to their bounds.
Any Suggestions?
Regards,
Chris

Ok guys - I've found a solution and it's below just in case anyone else needs it:
public boolean doesAreaIntersect(Area lhs, Area rhs) {
lhs.intersect(rhs);
PathIterator pi = lhs.getPathIterator(null);
if (pi == null) {
return false;
} else {
int count =0;
while (!pi.isDone()) {
count++;
pi.next();
if (count < 1) {
return false;
} else {
return true;
I think this is most in-expensive way of doing it - if anyone come's up with something better please let me know.
Regards,
Chris.

Similar Messages

  • Hi, new ipad2 user. Recieve some emails that should have images but in their place are question marks. any advice on how to fix this would be great. thanks alot..brad

    Hi, new ipad2 user. Recieve some emails that should have images but in their place are question marks. any advice on how to fix this would be great. thanks alot..brad

    On your iPad - go to Settings>Mail, Contacts, Calendars>Load Remote Images>On. Try that first.
    You can also try a reset. Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Quit the mail and all other apps. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • There are question marks on each directory although the Folder name is green

    Hi, I have just upgraded to Lightroom version: 3.5 [775451]. When I opened Lightroom it's not able to find my pictures which are stored on a NAS. I have had this problem before, so I don't believe it has anything to do with the upgrade. On the folder name it looks like Lightroom can see my NAS because the small square is green, but for each folder below there is a question mark. When I Ctrl click on one picture and select Show in Finder, it's saying that the original file could not be found. It show the previous location which is still the correct location. CLicking on the Locate a Finder window opens and I can now see a new directory (folder) with the same name as my NAS drive has, and there is of course no pictures in that folder. Where did this new folder comes from with the same name as my NAS ?
    I appriciate all help.
    Thank you
    Cheers
    Bent

    benta151253 wrote:
    ... So maybe the problem is somewhere else ??
    /Bent
    I'm pretty sure the problem lies somewhere else, because I see it happen in other programs also (i.e. iTunes, simple batch scripts, ...). It might be a shortcoming of some API used in these programs.
    Beat

  • Truly doesn't fit anywhere: Palm rest area question.

    The palm rest area, toward the bottom of the computer, has started to peel/chip away.
    Literally. If I got a flashlight, I could see into my laptop.
    I was just wondering if this piece of plastic (that also surrounds all of the keys and touch pad) could be replaced?
    It isn't a cleanliness issue. It is an overuse issue. I love my MacBook. It would be awesome to replace it and have it appear like new even though it is two years old.

    You can get it replaced but I don't know how much it would be.

  • Partition areas question

    I have two cubes, one of which is connected to the accounts system and contains the "actual" financial data, the other is a forecasting cube and contains, well, forecasts.I want to link the two via a replicated partition so that actuals can be directly accessed in the Forecasts cube without having to do data export/loads, etc.All the members from all the dimensions in the Actuals cube exist in the Forecasts cube, but they are not neatly divided up. We are a magazine publisher, and each issue is a separate activity, so the activities dimension in the Actuals cube looks like this:Magazine X...........Issue 1...........Issue 2while the same bit of the Forecasts cube looks like this:Magazine X...........Issue 1...........Issue 2...........Issue 3...........Issue 4issues 3 and 4 not having been published yet, no have no actuals data so don't exist in the Actuals cube.Defining the area I want to replicate is easy in the Actuals cube, but I can't see how to define the matching area in the Forecasts cube because of the extra members?Any ideas for a way forward gratefully accepted![email protected]

    In my experience, mismatched replicated partitions work fine. It just writes a message to the log file if a match isn't found, (so don't have too many) but the ones that do match tranfer their data fine. Take for example, one cube has one year and the other has seven years. mapping y2003 to @children(years), will not validate, but the transfer of data will always work.

  • PhotoshopCC-work area question

    IS there a way to turn off the work area in the background?
    I like to see the finder, not a blank area behind open windows.

    In photoshop cc go to Window and turn off the Application Frame.

  • Production supply area question

    Hi
    I need to stage materials from WM storage location (0001) to production line.
    Generally in WM, material staging happens by staging the materials to the PSA. So I create PSA and assign it to the workcenter.
    Next step is to assign this PSA to the storage location. My question, is this storage location a different storage location or is it the same 0001 location?
    Thx

    hi ,
    This should be a new storage type  and need not have to be a storage location.  You can use the same 0001 itself.
    cheers
    Rav

  • Why are questions shown as wrong even though they are selected to be the right questions?

    I tested my module after publishing and everything works great except the quiz. When I take the quiz, I get almost all of my answers wrong even though the answers that I select are the right answers chosen before publishing. Is this a bug with Captivate 8 or is there something I'm not doing right? Thanks!

    User error.  That makes sense now.
    Just a tip: Having a Next button as well as a Submit button visible on a quiz slide is asking for trouble.  I hide my Next buttons UNDERNEATH the Clear button.  That way, they are visible ONLY when the user is Reviewing the quiz.  That's about the only time they're actually needed anyway.

  • WWI Template - validity area question inside of a composition slave group

    I am reading composition with exposure limits (SAP_EHS_1012_006) of the real sub then drilling into the list sub Occupation Exposure Limits (SAP_EHS_1023_006).
    I want to show a table of the list subs, and then show the Usage Validity Area "US" only regulations for that list sub.
    But when I try to put a "G" type repeat group around the list sub for validity area "US" it doesn;t work.
    I saw a S:VERW type slave group but I am unable to tell if that is what is needed, because I can't find any samples.
    My data is setup that the Usage Validity area records are:
    1 - CA
    2 - US
    3 - MX
    Here are some of the things I have tried:
    <11BRG002(M,SAP_EHS_1023_006;)> <15BIF061(OR:01GESTDRVLID (P;) LK "US"029><15EIF061><11ERG002>   
    even though I try to test the P;*, the condition does not test all phrases.
    As I said above I have tried to wrap with a type G repeating group and this didn't work either.
    Thanks

    The problem was that I needed to wrap a G type repeating group for US, around the the specification repeating group. And I needed to modify the Gen Variant rating/validity to include a line item for region US.

  • All i see are questions does anyone have an answer?

    can't open update for itunes  tried to uninstal, would not let me

    What error message do you get when you try to uninstall iTunes? (Precise text, please.)

  • Slideshow controls are shown as question marks

    I know since the end of MobileMe the pop up slideshow doesn't work properly.  I'm trying to fix the missing controls.  When you click play slideshow, the slideshow pops up, but at the bottom, the play/pause, etc. controls are question marks.  I've tried to follow Old Toad's tutorial listed here:
    http://www.oldtoadstutorials.net/No.iW14.html
    but I am still having problems.
    I have mulptile sites in iweb that have already been published with slideshows.  So, I need to fix all of them at this point.  I've changed the item that he refers to in the tutorial and uploaded it to the website's server.  I've tried putting in different folders; the scripts folder, the slideshow_files folder, just in the root folder, but it is not working.  What am I missing?  Any thoughts about what I need to try next.  Thanks for your help!

    If you are changing the script in the iWeb package you will need to republish every slideshow from iWeb for the updates to appear in the published version.
    You could modify the local or remote versions of the file outside of iWeb but you would need to do this every time you publish changes to your site. See [2]...
    http://www.iwebformusicians.com/Banner-Slideshow/iWeb-Slideshow-Assets.html

  • Why Are there question marks in my dock that says iphoto, imovie and imovie hd after resetting my dock?

    My iBook G4 used to belong to my mums friend. After having it and using it for 2 years, I did a dock reset.  Now There are question marks saying iphoto, imovie and imovie hd.  I don't have the installation disk with me so how do I get these apps back?

    Do you know which versions they were? Sometimes they came on an iLife disc; sometimes on an Applications disc or Restore disc with the original software package that came with the iBook when it was new.
    Doing a Dock reset would not have removed these applications from the Applications folder.
    If they are no longer in the Applications folder, you will have to reinstall them from a disc.
    Which exact iBook model is it?
    You can choose from this list:
    http://www.everymac.com/systems/apple/ibook/index-ibook.html

  • May I just begin by saying that the security questions are ridiculous. Is there an ITunes support person I can email?

    Is there anyone I can email for help one on one?

    We are just Apple users here, but I strongly disagree with your contention that the security questions are ridiculous.  It makes perfect sense to have a question like "What color was your first car?" or "What was your maternal grandmother's first name?" These are questions that you would know the answer to but I would not.
    This article should assist you:
    http://support.apple.com/kb/HT5312

  • Application store requires that you answer 3 questions for future verification. The questions are stupid and not easy to remember. Why can I not just proceed with my download without this?

    The Application Store requires that you answer 3 questions for future verification. The questions offered are questions that I at least have no clear answer to. What was the first film you saw? and the like. You can say Not now, but then nothong happens and you are back to where you started. Is there a way to proceed with downloading apps without answering these stupid questions?
    I refuse to believe that Apple as an organisation designed these questions - must have been somebody else.

    This is Apple's security feature, you answer the questions or you stop using the account and buy Mac apps elsewhere. Do a search on Secure Notes in the keychain and answer the questions with nonsense answers and store them in a Secure Note for future reference.

  • How do I only get certain questions appear in the quiz results?

    I have created a course through Captivate 6, throughout the course there are questions to guage the learners attention. There is also a quiz at the end. However, captivate includes on the questions throughout the course on the quiz results which I do not want to happen.
    Can anyone advise how I can only get certain questions appear on the quiz results please?

    Branch aware turns off the playbar in 6 (not in 7 any more, at least not for me).
    Could you explain more in detail what you want, because I don't understand it. You want the user to answer all questions, but the score should only show what? If you don't want some questions to have a score added to the Quiz total, you can indicate that in the Properties of that Question slide.
    And please, tell the exact number (3 versions of 6), and also if you have to report to a LMS?
    Lilybiri

Maybe you are looking for

  • Error Msg: The DBM Order contains old external/internal billing documents

    Dear Gurus, In DBM 6.0, the error message 'The DBM order contains old external/internal billing documents' is coming while trying to cancel a billing document which was generated in previous year and not got cleared (settled) so far. Currently, this

  • How to make custom polygons in java

    I need to make a 3d polygon i think you use geometry or something but i know the angles i need and the lengths of the sides so i just need to make it. if you have any ideas i would apreacheate it. sorry for my spelling

  • Using MM-SUS create invoice can't change price

    Dear All,    We used MM-SUS create invoice,we want to change the item price,how to do it?

  • Com.ms.xml.dso.XMLDSO.class

    Dear All, I tried to load an XML doc using: <applet code="com.ms.xml.dso.XMLDSO.class" id="myXML" height=0 width=0 mayscript="true"><param name="URL" value="emp.xml"> </applet> But the status shows com.ms.xml.dso.XMLDSO.class not inited and then Load

  • Spinning beach ball after hard drive upgrade

    Im running a macbook pro i7 2.2ghz  8gb ram  version 10.6.8 SL I recently upgraded my 128gb ssd to a 512gb ssd drive.  I cloned the drive to new drive and ever since then, I get the spinning beach ball very often whereas I never got it prior to the h