1 | if (getDrawOpenTicks()) {↵ | | 1 | if (getDrawCloseTicks()) {↵
|
2 | double yOpen = hld.getOpenValue(series, item);↵ | | 2 | double yClose = hld.getCloseValue(series, item);↵
|
3 | if (!Double.isNaN(yOpen)) {↵ | | 3 | if (!Double.isNaN(yClose)) {↵
|
4 | double yyOpen = rangeAxis.valueToJava2D(yOpen, dataArea,↵ | | 4 | double yyClose = rangeAxis.valueToJava2D(↵
|
5 | location);↵ | | 5 | yClose, dataArea, location);↵
|
6 | if (this.openTickPaint != null) {↵ | | 6 | if (this.closeTickPaint != null) {↵
|
7 | g2.setPaint(this.openTickPaint);↵ | | 7 | g2.setPaint(this.closeTickPaint);↵
|
8 | }↵ | | 8 | }↵
|
9 | else {↵ | | 9 | else {↵
|
10 | g2.setPaint(itemPaint);↵ | | 10 | g2.setPaint(itemPaint);↵
|
11 | }↵ | | 11 | }↵
|
12 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | | 12 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
13 | g2.draw(new Line2D.Double(yyOpen, xx + delta, yyOpen,↵ | | 13 | g2.draw(new Line2D.Double(yyClose, xx, yyClose,↵
|
14 | xx));↵ | | 14 | xx - delta));↵
|
15 | }↵ | | 15 | }↵
|
16 | else if (orientation == PlotOrientation.VERTICAL) {↵ | | 16 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
17 | g2.draw(new Line2D.Double(xx - delta, yyOpen, xx,↵ | | 17 | g2.draw(new Line2D.Double(xx, yyClose, xx + delta,↵
|
18 | yyOpen));↵ | | 18 | yyClose));↵
|
19 | | | 19 |
|