protected AxisState drawAxis(ValueAxis axis,PolarAxisLocation location,Graphics2D g2,Rectangle2D plotArea){
  double centerX=plotArea.getCenterX();
  double centerY=plotArea.getCenterY();
  double r=Math.min(plotArea.getWidth() / 2.0,plotArea.getHeight() / 2.0) - this.margin;
  double x=centerX - r;
  double y=centerY - r;
  Rectangle2D dataArea=null;
  AxisState result=null;
  if (location == PolarAxisLocation.NORTH_RIGHT) {
    dataArea=new Rectangle2D.Double(x,y,r,r);
    result=axis.draw(g2,centerX,plotArea,dataArea,RectangleEdge.RIGHT,null);
  }
 else   if (location == PolarAxisLocation.NORTH_LEFT) {
    dataArea=new Rectangle2D.Double(centerX,y,r,r);
    result=axis.draw(g2,centerX,plotArea,dataArea,RectangleEdge.LEFT,null);
  }
 else   if (location == PolarAxisLocation.SOUTH_LEFT) {
    dataArea=new Rectangle2D.Double(centerX,centerY,r,r);
    result=axis.draw(g2,centerX,plotArea,dataArea,RectangleEdge.LEFT,null);
  }
 else   if (location == PolarAxisLocation.SOUTH_RIGHT) {
    dataArea=new Rectangle2D.Double(x,centerY,r,r);
    result=axis.draw(g2,centerX,plotArea,dataArea,RectangleEdge.RIGHT,null);
  }
 else   if (location == PolarAxisLocation.EAST_ABOVE) {
    dataArea=new Rectangle2D.Double(centerX,centerY,r,r);
    result=axis.draw(g2,centerY,plotArea,dataArea,RectangleEdge.TOP,null);
  }
 else   if (location == PolarAxisLocation.EAST_BELOW) {
    dataArea=new Rectangle2D.Double(centerX,y,r,r);
    result=axis.draw(g2,centerY,plotArea,dataArea,RectangleEdge.BOTTOM,null);
  }
 else   if (location == PolarAxisLocation.WEST_ABOVE) {
    dataArea=new Rectangle2D.Double(x,centerY,r,r);
    result=axis.draw(g2,centerY,plotArea,dataArea,RectangleEdge.TOP,null);
  }
 else   if (location == PolarAxisLocation.WEST_BELOW) {
    dataArea=new Rectangle2D.Double(x,y,r,r);
    result=axis.draw(g2,centerY,plotArea,dataArea,RectangleEdge.BOTTOM,null);
  }
  return result;
}

protected AxisState drawAxis ( ValueAxis axis , PolarAxisLocation location , Graphics2D g2 , Rectangle2D plotArea ) { double centerX = plotArea . getCenterX ( ) ; double centerY = plotArea . getCenterY ( ) ; double r = Math . min ( plotArea . getWidth ( ) / 2.0 , plotArea . getHeight ( ) / 2.0 ) - this . margin ; double x = centerX - r ; double y = centerY - r ; Rectangle2D dataArea = null ; AxisState result = null ; if ( location == PolarAxisLocation . NORTH_RIGHT ) { dataArea = new Rectangle2D . Double ( x , y , r , r ) ; result = axis . draw ( g2 , centerX , plotArea , dataArea , RectangleEdge . RIGHT , null ) ; } else if ( location == PolarAxisLocation . NORTH_LEFT ) { dataArea = new Rectangle2D . Double ( centerX , y , r , r ) ; result = axis . draw ( g2 , centerX , plotArea , dataArea , RectangleEdge . LEFT , null ) ; } else if ( location == PolarAxisLocation . SOUTH_LEFT ) { dataArea = new Rectangle2D . Double ( centerX , centerY , r , r ) ; result = axis . draw ( g2 , centerX , plotArea , dataArea , RectangleEdge . LEFT , null ) ; } else if ( location == PolarAxisLocation . SOUTH_RIGHT ) { dataArea = new Rectangle2D . Double ( x , centerY , r , r ) ; result = axis . draw ( g2 , centerX , plotArea , dataArea , RectangleEdge . RIGHT , null ) ; } else if ( location == PolarAxisLocation . EAST_ABOVE ) { dataArea = new Rectangle2D . Double ( centerX , centerY , r , r ) ; result = axis . draw ( g2 , centerY , plotArea , dataArea , RectangleEdge . TOP , null ) ; } else if ( location == PolarAxisLocation . EAST_BELOW ) { dataArea = new Rectangle2D . Double ( centerX , y , r , r ) ; result = axis . draw ( g2 , centerY , plotArea , dataArea , RectangleEdge . BOTTOM , null ) ; } else if ( location == PolarAxisLocation . WEST_ABOVE ) { dataArea = new Rectangle2D . Double ( x , centerY , r , r ) ; result = axis . draw ( g2 , centerY , plotArea , dataArea , RectangleEdge . TOP , null ) ; } else if ( location == PolarAxisLocation . WEST_BELOW ) { dataArea = new Rectangle2D . Double ( x , y , r , r ) ; result = axis . draw ( g2 , centerY , plotArea , dataArea , RectangleEdge . BOTTOM , null ) ; } return result ; }
draws the axis with the specified index .
