// draw the top axes
double cursor = RectangleUtil.getMinY(dataArea)
- this.axisOffset.calculateTopOutset(dataArea.height);
Iterator iterator = axisCollection.getAxesAtTop().iterator();
while (iterator.hasNext()) {
final Axis axis = (Axis) iterator.next();
if (axis != null) {
final AxisState axisState = axis.draw(g2, cursor, plotArea,
dataArea, RectangleEdge.TOP, plotState);
cursor = axisState.getCursor();
axisStateMap.put(axis, axisState);
}
}
// draw the bottom axes
cursor = RectangleUtil.getMaxY(dataArea)
+ this.axisOffset.calculateBottomOutset(dataArea.height);
iterator = axisCollection.getAxesAtBottom().iterator();
while (iterator.hasNext()) {
final Axis axis = (Axis) iterator.next();
if (axis != null) {
final AxisState axisState = axis.draw(g2, cursor, plotArea,
dataArea, RectangleEdge.BOTTOM, plotState);
cursor = axisState.getCursor();
axisStateMap.put(axis, axisState);
}
}
// draw the left axes
cursor = RectangleUtil.getMinX(dataArea)
- this.axisOffset.calculateLeftOutset(dataArea.width);
iterator = axisCollection.getAxesAtLeft().iterator();
while (iterator.hasNext()) {
final Axis axis = (Axis) iterator.next();
if (axis != null) {
final AxisState axisState = axis.draw(g2, cursor, plotArea,
dataArea, RectangleEdge.LEFT, plotState);
cursor = axisState.getCursor();
axisStateMap.put(axis, axisState);
}
}
// draw the right axes
cursor = RectangleUtil.getMaxX(dataArea)
+ this.axisOffset.calculateRightOutset(dataArea.width);
iterator = axisCollection.getAxesAtRight().iterator();
while (iterator.hasNext()) {
final Axis axis = (Axis) iterator.next();
if (axis != null) {
final AxisState axisState = axis.draw(g2, cursor, plotArea,
dataArea, RectangleEdge.RIGHT, plotState);
cursor = axisState.getCursor();
axisStateMap.put(axis, axisState);
}
}