public Rectangle(double top,double left,double bottom,double right){
  double width=Math.abs(right - left);
  double height=Math.abs(bottom - top);
  Point center=new Point(left + (width / 2.0),top + (height / 2.0));
  setRect(new Rect((int)(center.x - (width / 2)),(int)(center.y - (height / 2)),(int)width,(int)height));
}

public Rectangle ( double top , double left , double bottom , double right ) { double width = Math . abs ( right - left ) ; double height = Math . abs ( bottom - top ) ; Point center = new Point ( left + ( width / 2.0 ) , top + ( height / 2.0 ) ) ; setRect ( new Rect ( ( int ) ( center . x - ( width / 2 ) ) , ( int ) ( center . y - ( height / 2 ) ) , ( int ) width , ( int ) height ) ) ; }
create a rectangle bounded by four positions
