1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | | 1 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
2 | double x0 = axis.valueToJava2D(value, adjusted,↵ | | 2 | double x0 = axis.valueToJava2D(value, adjusted,↵
|
3 | plot.getRangeAxisEdge());↵ | | 3 | plot.getRangeAxisEdge());↵
|
4 | double x1 = x0 + getXOffset();↵ | | 4 | double x1 = x0 + getXOffset();↵
|
5 | double y0 = dataArea.getMaxY();↵ | | 5 | double y0 = dataArea.getMaxY();↵
|
6 | double y1 = y0 - getYOffset();↵ | | 6 | double y1 = y0 - getYOffset();↵
|
7 | double y2 = dataArea.getMinY();↵ | | 7 | double y2 = dataArea.getMinY();↵
|
8 | line1 = new Line2D.Double(x0, y0, x1, y1);↵ | | 8 | line1 = new Line2D.Double(x0, y0, x1, y1);↵
|
9 | line2 = new Line2D.Double(x1, y1, x1, y2);↵ | | 9 | line2 = new Line2D.Double(x1, y1, x1, y2);↵
|
10 | }↵ | | 10 | }↵
|
11 | else if (orientation == PlotOrientation.VERTICAL) {↵ | | 11 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
12 | double y0 = axis.valueToJava2D(value, adjusted,↵ | | 12 | double y0 = axis.valueToJava2D(value, adjusted,↵
|
13 | plot.getRangeAxisEdge());↵ | | 13 | plot.getRangeAxisEdge());↵
|
14 | double y1 = y0 - getYOffset();↵ | | 14 | double y1 = y0 - getYOffset();↵
|
15 | double x0 = dataArea.getMinX();↵ | | 15 | double x0 = dataArea.getMinX();↵
|
16 | double x1 = x0 + getXOffset();↵ | | 16 | double x1 = x0 + getXOffset();↵
|
17 | double x2 = dataArea.getMaxX();↵ | | 17 | double x2 = dataArea.getMaxX();↵
|
18 | line1 = new Line2D.Double(x0, y0, x1, y1);↵ | | 18 | line1 = new Line2D.Double(x0, y0, x1, y1);↵
|
19 | line2 = new Line2D.Double(x1, y1, x2, y1);↵ | | 19 | line2 = new Line2D.Double(x1, y1, x2, y1);↵
|
20 | | | 20 |
|