// all tick labels have the same width (equal to the height of the
// font)...
result += gc.getFontMetrics().getHeight();
} else {
// look at lower and upper bounds...
final Range range = this.getRange();
final double lower = range.getLowerBound();
final double upper = range.getUpperBound();
final String lowerStr = unit.valueToString(lower);
final String upperStr = unit.valueToString(upper);
final double w1 = gc.textExtent(lowerStr).x;
final double w2 = gc.textExtent(upperStr).x;
result += Math.max(w1, w2);