theEllipse = new Ellipse2D.Double(
                  -1.0*ds,-0.25*ds,2.0*ds,0.5*ds);
     //draw nontransparent outline     
     g2.setPaint(Color.red);
     g2.draw(theEllipse);

Figure 4