protected void drawWaferEdge(Graphics2D g2,Rectangle2D plotArea){
  Ellipse2D waferEdge=getWaferEdge(plotArea);
  g2.setColor(Color.black);
  g2.draw(waferEdge);
  Arc2D notch;
  Rectangle2D waferFrame=waferEdge.getFrame();
  double notchDiameter=waferFrame.getWidth() * 0.04;
  if (this.orientation == PlotOrientation.HORIZONTAL) {
    Rectangle2D notchFrame=new Rectangle2D.Double(waferFrame.getX() + waferFrame.getWidth() - (notchDiameter / 2),waferFrame.getY() + (waferFrame.getHeight() / 2) - (notchDiameter / 2),notchDiameter,notchDiameter);
    notch=new Arc2D.Double(notchFrame,90d,180d,Arc2D.OPEN);
  }
 else {
    Rectangle2D notchFrame=new Rectangle2D.Double(waferFrame.getX() + (waferFrame.getWidth() / 2) - (notchDiameter / 2),waferFrame.getY() + waferFrame.getHeight() - (notchDiameter / 2),notchDiameter,notchDiameter);
    notch=new Arc2D.Double(notchFrame,0d,180d,Arc2D.OPEN);
  }
  g2.setColor(Color.white);
  g2.fill(notch);
  g2.setColor(Color.black);
  g2.draw(notch);
}

protected void drawWaferEdge ( Graphics2D g2 , Rectangle2D plotArea ) { Ellipse2D waferEdge = getWaferEdge ( plotArea ) ; g2 . setColor ( Color . black ) ; g2 . draw ( waferEdge ) ; Arc2D notch ; Rectangle2D waferFrame = waferEdge . getFrame ( ) ; double notchDiameter = waferFrame . getWidth ( ) * 0.04 ; if ( this . orientation == PlotOrientation . HORIZONTAL ) { Rectangle2D notchFrame = new Rectangle2D . Double ( waferFrame . getX ( ) + waferFrame . getWidth ( ) - ( notchDiameter / 2 ) , waferFrame . getY ( ) + ( waferFrame . getHeight ( ) / 2 ) - ( notchDiameter / 2 ) , notchDiameter , notchDiameter ) ; notch = new Arc2D . Double ( notchFrame , 90d , 180d , Arc2D . OPEN ) ; } else { Rectangle2D notchFrame = new Rectangle2D . Double ( waferFrame . getX ( ) + ( waferFrame . getWidth ( ) / 2 ) - ( notchDiameter / 2 ) , waferFrame . getY ( ) + waferFrame . getHeight ( ) - ( notchDiameter / 2 ) , notchDiameter , notchDiameter ) ; notch = new Arc2D . Double ( notchFrame , 0d , 180d , Arc2D . OPEN ) ; } g2 . setColor ( Color . white ) ; g2 . fill ( notch ) ; g2 . setColor ( Color . black ) ; g2 . draw ( notch ) ; }
draws the waferedge , including the notch .
