CategoryAxis categoryAxis = getDomainAxis();
RectangleEdge categoryEdge = Plot.resolveDomainAxisLocation(
getDomainAxisLocation(), orientation
);
if (categoryAxis != null) {
space = categoryAxis.reserveSpace(g2, this, plotArea, categoryEdge, space);
}
else {
if (getDrawSharedDomainAxis()) {
space = getDomainAxis().reserveSpace(
g2, this, plotArea, categoryEdge, space