* @return The height.
*/
protected double calculateTextBlockHeight(final TextBlock block,
final CategoryLabelPosition position, final GC g2) {
final RectangleInsets insets = this.getTickLabelInsets();
final Size2D size = block.calculateDimensions(g2);
final Rectangle box = RectangleUtil.Double(0.0, 0.0, size.width,
size.height);
// Shape rotatedBox = ShapeUtilities.rotateShape(
// box, position.getAngle(), 0.0f, 0.0f
// );
final Rectangle rotatedBox = box;
final double h = rotatedBox.height + insets.getTop()
+ insets.getBottom();
return h;
}