@Override
protected void drawLabel(Graphics2D g2, Rectangle2D plotArea, double value,
int cat, double startAngle, double extent) {
FontRenderContext frc = g2.getFontRenderContext();
CategoryItemLabelGenerator labelGenerator = getLabelGenerator();
TableOrder dataExtractOrder = getDataExtractOrder();
CategoryDataset dataset = getDataset();
String label = null;
if (dataExtractOrder == TableOrder.BY_ROW) {
label = labelGenerator.generateLabel(dataset, 0, cat);
} else {
label = labelGenerator.generateLabel(dataset, cat, 0);
}
Rectangle2D labelBounds = getLabelFont().getStringBounds(label, frc);
LineMetrics lm = getLabelFont().getLineMetrics(label, frc);
double ascent = lm.getAscent();