RectangleAnchor anchor = marker.getLabelAnchor();
if (label != null) {</BUG>
Font labelFont = marker.getLabelFont();
g2.setFont(labelFont);
<BUG>g2.setPaint(marker.getLabelPaint());
Point2D coordinates = calculateRangeMarkerTextAnchorPoint(
g2, orientation, dataArea, line.getBounds2D(),</BUG>
marker.getLabelOffset(), LengthAdjustmentType.EXPAND,
anchor);
<BUG>Rectangle2D rect = TextUtilities.calcAlignedStringBounds(label, g2,
(float) coordinates.getX(), (float) coordinates.getY(),
</BUG>
marker.getLabelTextAnchor());

RectangleAnchor anchor = marker.getLabelAnchor();
Font labelFont = marker.getLabelFont();
g2.setFont(labelFont);
Point2D coords = calculateRangeMarkerTextAnchorPoint(
g2, orientation, dataArea, line.getBounds2D(),
marker.getLabelOffset(), LengthAdjustmentType.EXPAND,
anchor);
Rectangle2D rect = TextUtilities.calcAlignedStringBounds(label,
g2, (float) coords.getX(), (float) coords.getY(),
marker.getLabelTextAnchor());
