question: private Point2D calculateRangeMarkerTextAnchorPoint ( Graphics2D g2 , PlotOrientation orientation , Rectangle2D dataArea , Rectangle2D markerArea , RectangleInsets markerOffset , LengthAdjustmentType labelOffsetForRange , RectangleAnchor anchor ) { Rectangle2D anchorRect = null ; if ( orientation == PlotOrientation . HORIZONTAL ) { anchorRect = markerOffset . createAdjustedRectangle ( markerArea , labelOffsetForRange , LengthAdjustmentType . CONTRACT ) ; } else if ( orientation == PlotOrientation . VERTICAL ) { anchorRect = markerOffset . createAdjustedRectangle ( markerArea , LengthAdjustmentType . CONTRACT , labelOffsetForRange ) ; } return RectangleAnchor . coordinates ( anchorRect , anchor ) ; }
target:  Calculates the (x, y) coordinates for drawing a marker label.