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();