public static void drawPaintedShape(Graphics2D graphics,Shape shape,Paint paint,Rectangle2D paintBounds,Stroke stroke){
  if (shape == null) {
    return;
  }
  if (stroke == null) {
    stroke=graphics.getStroke();
  }
  shape=stroke.createStrokedShape(shape);
  fillPaintedShape(graphics,shape,paint,paintBounds);
}

public static void drawPaintedShape ( Graphics2D graphics , Shape shape , Paint paint , Rectangle2D paintBounds , Stroke stroke ) { if ( shape == null ) { return ; } if ( stroke == null ) { stroke = graphics . getStroke ( ) ; } shape = stroke . createStrokedShape ( shape ) ; fillPaintedShape ( graphics , shape , paint , paintBounds ) ; }
draws a filled shape with the specified paint object .
