public PolarPlot(XYDataset dataset, ValueAxis radiusAxis,
PolarItemRenderer renderer) {
super();
this.datasets = new ObjectList();
this.datasets.set(0, dataset);
if (dataset != null) {
dataset.addChangeListener(this);
}
this.angleTickUnit = new NumberTickUnit(DEFAULT_ANGLE_TICK_UNIT_SIZE);
this.axes = new ObjectList();
this.datasetToAxesMap = new TreeMap();
this.axes.set(0, radiusAxis);
if (radiusAxis != null) {
radiusAxis.setPlot(this);
radiusAxis.addChangeListener(this);
}
// define the default locations for up to 8 axes...
this.axisLocations = new ObjectList();
this.axisLocations.set(0, PolarAxisLocation.EAST_ABOVE);
this.axisLocations.set(1, PolarAxisLocation.NORTH_LEFT);
this.axisLocations.set(2, PolarAxisLocation.WEST_BELOW);
this.axisLocations.set(3, PolarAxisLocation.SOUTH_RIGHT);
this.axisLocations.set(4, PolarAxisLocation.EAST_BELOW);
this.axisLocations.set(5, PolarAxisLocation.NORTH_RIGHT);
this.axisLocations.set(6, PolarAxisLocation.WEST_ABOVE);
this.axisLocations.set(7, PolarAxisLocation.SOUTH_LEFT);
this.renderers = new ObjectList();
this.renderers.set(0, renderer);
if (renderer != null) {
renderer.setPlot(this);
renderer.addChangeListener(this);
}