public int getAreaSize() {
	  int rval = 0;
	  if (type == TYPE_RECT) {
		  rval = rect.width * rect.height;
	  }
	  else if (type == TYPE_CIRCLE) {
		  rval = (int) ((double)circle_r * (double)circle_r * Math.PI);
	  }
	  else if (type == TYPE_POLY) {
		  rval = getPolygonArea(poly.xpoints, poly.ypoints, poly.npoints);
	
	  }
	  return rval;
  }