//Draw gradient
if (this.getFillPaint() != null){
FillPaint g = this.getFillPaint();
//Draw gradient over shape!
g.post(graphics);
boolean savedNoFillSetting = this.isNoFill();
//Draw shape outlines over gradient
if (!savedNoStrokeSetting){
this.setNoStroke(false);