public void fill(Shape s,Color color){
  deviceFill(s.getPathIterator(new AffineTransform()),color);
}

public void fill ( Shape s , Color color ) { deviceFill ( s . getPathIterator ( new AffineTransform ( ) ) , color ) ; }
override the inherited implementation of fill so that we can generate postscript in user space rather than device space .
