public Shape get_shape() {
	  Shape rval = null;

	  if (type == TYPE_RECT) {
		  rval = new Shape( (int)(rect.x), 
				  			(int)(rect.y),
				  			(int)(rect.x+rect.width),
				  			(int)(rect.y+rect.height));
	  }
      else if (type == TYPE_CIRCLE) {
    	  rval = new Shape( new Point(circle_center.x,
    			  					  circle_center.y),
    			  			circle_r);
      }
	  else if (type == TYPE_POLY) {
		  rval = new Shape(new Polygon(poly.xpoints, 
				  					   poly.ypoints, 
				  					   poly.npoints));

      }
	  return rval;
  }