public void curve(double x,double y,double controlX,double controlY){
  Curve curve=new Curve(x,y,controlX,controlY);
  if (x < minX) {
    minX=x;
  }
  if (y < minY) {
    minY=y;
  }
  if (x > maxX) {
    maxX=x;
  }
  if (y > maxY) {
    maxY=y;
  }
  if (controlX < minX) {
    minX=controlX;
  }
  if (controlY < minY) {
    minY=controlY;
  }
  if (controlX > maxX) {
    maxX=controlX;
  }
  if (controlY > maxY) {
    maxY=controlY;
  }
  elements.add(curve);
}

public void curve ( double x , double y , double controlX , double controlY ) { Curve curve = new Curve ( x , y , controlX , controlY ) ; if ( x < minX ) { minX = x ; } if ( y < minY ) { minY = y ; } if ( x > maxX ) { maxX = x ; } if ( y > maxY ) { maxY = y ; } if ( controlX < minX ) { minX = controlX ; } if ( controlY < minY ) { minY = controlY ; } if ( controlX > maxX ) { maxX = controlX ; } if ( controlY > maxY ) { maxY = controlY ; } elements . add ( curve ) ; }
draw a curve in the current line style ( if any )
