protected void drawOval(int x,int y,int w,int h,Color fillColor,Paint fillPaint,Color penColor,boolean shadow){
  if (fillColor != null || fillPaint != null) {
    if (shadow) {
      g.setColor(mxConstants.SHADOW_COLOR);
      g.fillOval(x + mxConstants.SHADOW_OFFSETX,y + mxConstants.SHADOW_OFFSETY,w,h);
    }
    if (fillPaint != null) {
      g.setPaint(fillPaint);
    }
 else {
      g.setColor(fillColor);
    }
    g.fillOval(x,y,w,h);
  }
  if (penColor != null) {
    g.setColor(penColor);
    g.drawOval(x,y,w,h);
  }
}

protected void drawOval ( int x , int y , int w , int h , Color fillColor , Paint fillPaint , Color penColor , boolean shadow ) { if ( fillColor != null || fillPaint != null ) { if ( shadow ) { g . setColor ( mxConstants . SHADOW_COLOR ) ; g . fillOval ( x + mxConstants . SHADOW_OFFSETX , y + mxConstants . SHADOW_OFFSETY , w , h ) ; } if ( fillPaint != null ) { g . setPaint ( fillPaint ) ; } else { g . setColor ( fillColor ) ; } g . fillOval ( x , y , w , h ) ; } if ( penColor != null ) { g . setColor ( penColor ) ; g . drawOval ( x , y , w , h ) ; } }
draws an oval for the given parameters .
