protected void drawNoDataMessage(Graphics2D g2,Rectangle2D area){
  Shape savedClip=g2.getClip();
  g2.clip(area);
  String message=this.noDataMessage;
  if (message != null) {
    g2.setFont(this.noDataMessageFont);
    g2.setPaint(this.noDataMessagePaint);
    TextBlock block=TextUtilities.createTextBlock(this.noDataMessage,this.noDataMessageFont,this.noDataMessagePaint,0.9f * (float)area.getWidth(),new G2TextMeasurer(g2));
    block.draw(g2,(float)area.getCenterX(),(float)area.getCenterY(),TextBlockAnchor.CENTER);
  }
  g2.setClip(savedClip);
}

protected void drawNoDataMessage ( Graphics2D g2 , Rectangle2D area ) { Shape savedClip = g2 . getClip ( ) ; g2 . clip ( area ) ; String message = this . noDataMessage ; if ( message != null ) { g2 . setFont ( this . noDataMessageFont ) ; g2 . setPaint ( this . noDataMessagePaint ) ; TextBlock block = TextUtilities . createTextBlock ( this . noDataMessage , this . noDataMessageFont , this . noDataMessagePaint , 0.9f * ( float ) area . getWidth ( ) , new G2TextMeasurer ( g2 ) ) ; block . draw ( g2 , ( float ) area . getCenterX ( ) , ( float ) area . getCenterY ( ) , TextBlockAnchor . CENTER ) ; } g2 . setClip ( savedClip ) ; }
draws a message to state that there is no data to plot .
