1 | for (int i = 0; i < this.rangeAxes.size(); i++) {↵ | | 1 | for (int i = 0; i < this.domainAxes.size(); i++) {↵
|
2 | ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);↵ | | 2 | ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);↵
|
3 | if (rangeAxis != null) {↵ | | 3 | if (domainAxis != null) {↵
|
4 | if (useAnchor) {↵ | | 4 | if (useAnchor) {↵
|
5 | // get the relevant source coordinate given the plot↵ | | 5 | // get the relevant source coordinate given the plot↵
|
6 | // orientation↵ | | 6 | // orientation↵
|
7 | double sourceY = source.getY();↵ | | 7 | double sourceX = source.getX();↵
|
8 | if (this.orientation == PlotOrientation.HORIZONTAL) {↵ | | 8 | if (this.orientation == PlotOrientation.HORIZONTAL) {↵
|
9 | sourceY = source.getX();↵ | | 9 | sourceX = source.getY();↵
|
10 | }↵ | | 10 | }↵
|
11 | double anchorY = rangeAxis.java2DToValue(sourceY,↵ | | 11 | double anchorX = domainAxis.java2DToValue(sourceX,↵
|
12 | info.getDataArea(), getRangeAxisEdge());↵ | | 12 | info.getDataArea(), getDomainAxisEdge());↵
|
13 | rangeAxis.resizeRange(factor, anchorY);↵ | | 13 | domainAxis.resizeRange(factor, anchorX);↵
|
14 | }↵ | | 14 | }↵
|
15 | else {↵ | | 15 | else {↵
|
16 | rangeAxis.resizeRange(factor);↵ | | 16 | domainAxis.resizeRange(factor);↵
|
17 | | | 17 |
|