1 | Shape bounds = TextUtilities.calculateRotatedStringBounds(label,↵ | | 1 | Shape bounds = TextUtilities.calculateRotatedStringBounds(label, ↵
|
2 | g2, (float) anchorPoint.getX(), (float) anchorPoint.getY(),↵ | | 2 | g2, (float) anchorPoint.getX(), (float) anchorPoint.getY(),↵
|
3 | position.getTextAnchor(), position.getAngle(),↵ | | 3 | position.getTextAnchor(), position.getAngle(),↵
|
4 | position.getRotationAnchor());↵ | | 4 | position.getRotationAnchor());↵
|
| | | 5 | ↵
|
5 | if (bounds != null) {↵ | | 6 | if (bounds != null) {↵
|
6 | if (!bar.contains(bounds.getBounds2D())) {↵ | | 7 | if (!bar.contains(bounds.getBounds2D())) {↵
|
7 | if (!negative) {↵ | | 8 | if (!negative) {↵
|
8 | position = getPositiveItemLabelPositionFallback();↵ | | 9 | position = getPositiveItemLabelPositionFallback();↵
|
9 | }↵ | | 10 | }↵
|
10 | else {↵ | | 11 | else {↵
|
11 | position = getNegativeItemLabelPositionFallback();↵ | | 12 | position = getNegativeItemLabelPositionFallback();↵
|
12 | }↵ | | 13 | }↵
|
13 | if (position != null) {↵ | | 14 | if (position != null) {↵
|
14 | anchorPoint = calculateLabelAnchorPoint(↵ | | 15 | anchorPoint = calculateLabelAnchorPoint(↵
|
15 | position.getItemLabelAnchor(), bar,↵ | | 16 | position.getItemLabelAnchor(), bar, ↵
|
16 | plot.getOrientation());↵ | | 17 | plot.getOrientation());↵
|
17 | | | 18 |
|