This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Getting strange results from Rectangle outcode method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Getting strange results from Rectangle outcode method" Watch "Getting strange results from Rectangle outcode method" New topic
Author

Getting strange results from Rectangle outcode method

john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
I have the following nodeRect.outcode(currentRect.getX(), currentRect.getY());
and I get the value of 3 and 0 and 6

I know
OUT_BOTTOM = 8
OUT_LEFT = 1
OUT_RIGHT = 4
OUT_TOP = 2

but what are the other values?

Thank you for your time
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24057
    
  13

The return value is the sum of all applicable values. 3 is
1+2, and 6 is 2+4.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Getting strange results from Rectangle outcode method
 
Similar Threads
Cant use object from another class
Posting to bump up my count...
WA #1.....word association
The x900 effect ?
Text box value is not being completely filled with request attribute