public boolean contains(double x,double y){
  Shape shape=getShape();
  boolean ret=false;
  if (shape != null) {
    ret=shape.contains(x,y);
  }
  return ret;
}

public boolean contains ( double x , double y ) { Shape shape = getShape ( ) ; boolean ret = false ; if ( shape != null ) { ret = shape . contains ( x , y ) ; } return ret ; }
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 .
