else if (edge == RectangleEdge.RIGHT) {
                y0 = getCategoryStart(categoryIndex, categoryCount, dataArea, 
                        edge);
                y1 = getCategoryEnd(categoryIndex, categoryCount, dataArea, 
                        edge);
                x0 = state.getCursor();
                x1 = x0 + maxdim;