1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | | 1 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
2 | // clip left and right bounds to data area↵ | | 2 | // clip left and right bounds to data area↵
|
3 | low = Math.max(low, dataArea.getMinX());↵ | | 3 | low = Math.max(low, dataArea.getMinX());↵
|
4 | high = Math.min(high, dataArea.getMaxX());↵ | | 4 | high = Math.min(high, dataArea.getMaxX());↵
|
5 | rect = new Rectangle2D.Double(low,↵ | | 5 | rect = new Rectangle2D.Double(low,↵
|
6 | dataArea.getMinY(), high - low,↵ | | 6 | dataArea.getMinY(), high - low,↵
|
7 | dataArea.getHeight());↵ | | 7 | dataArea.getHeight());↵
|
8 | }↵ | | 8 | }↵
|
9 | else if (orientation == PlotOrientation.VERTICAL) {↵ | | 9 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
10 | // clip top and bottom bounds to data area↵ | | 10 | // clip top and bottom bounds to data area↵
|
11 | low = Math.max(low, dataArea.getMinY());↵ | | 11 | low = Math.max(low, dataArea.getMinY());↵
|
12 | high = Math.min(high, dataArea.getMaxY());↵ | | 12 | high = Math.min(high, dataArea.getMaxY());↵
|
13 | rect = new Rectangle2D.Double(dataArea.getMinX(),↵ | | 13 | rect = new Rectangle2D.Double(dataArea.getMinX(),↵
|
14 | low, dataArea.getWidth(),↵ | | 14 | low, dataArea.getWidth(),↵
|
15 | high - low);↵ | | 15 | high - low);↵
|
16 | | | 16 |
|