question: public boolean contains ( double x , double y ) { Shape shape = getShape ( ) ; boolean ret = false ; if ( shape != null ) { ret = shape . contains ( x , y ) ; } return ret ; }
target:  Answers the question whether or not the OMGeometry contains the given pixel point. <P> This method used to be abstract, but with the conversion of OMGeometrys to internally represent themselves as java.awt.Shape objects, it's a more generic method. If the OMGeometry hasn't been updated to use Shape objects, it should have its own contains method. <P> This method duplicates a java.awt.Shape method, with some protection wrapped around it. If you have other queries for the internal Shape object, just ask for it and then ask it directly. This method is provided because it is the most useful, used when determining if a mouse event is occurring over an object on the map.