Hi Peter,
You can find out if two OMGraphics generally overlap by taking their
Shape objects and calling intersets() on one of them with the other,
but that just does a bounding box comparison. You can create
java.awt.geom.Area out of the Shape objects to get a precise result.
As for comparing all of the Shapes on a layer against each other, if
you have a lot of OMGraphics I'm sure there's an established algorithm
for that somewhere on the web, I just can't think of one off the top of
my head.
- Don
On Jan 21, 2004, at 3:44 PM, Pan, Peter wrote:
> Hi!
> We have a customized layer that displayed a lot of the rectangular
> graphics
> components. Is there anyway to find on this layer what components
> actually
> overplaying each other?
>
> Thanks for your help,
> Peter
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Thu Jan 22 10:46:11 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT