1 | if (location == AxisLocation.TOP_OR_RIGHT) {↵ | | 1 | if (location == AxisLocation.TOP_OR_RIGHT) {↵
|
2 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | | 2 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
3 | result = RectangleEdge.RIGHT;↵ | | 3 | result = RectangleEdge.TOP;↵
|
4 | }↵ | | 4 | }↵
|
5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | | 5 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
6 | result = RectangleEdge.TOP;↵ | | 6 | result = RectangleEdge.RIGHT;↵
|
7 | }↵ | | 7 | }↵
|
8 | }↵ | | 8 | }↵
|
9 | else if (location == AxisLocation.TOP_OR_LEFT) {↵ | | 9 | else if (location == AxisLocation.TOP_OR_LEFT) {↵
|
10 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | | 10 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
11 | result = RectangleEdge.LEFT;↵ | | 11 | result = RectangleEdge.TOP;↵
|
12 | }↵ | | 12 | }↵
|
13 | else if (orientation == PlotOrientation.VERTICAL) {↵ | | 13 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
14 | result = RectangleEdge.TOP;↵ | | 14 | result = RectangleEdge.LEFT;↵
|
15 | }↵ | | 15 | }↵
|
16 | }↵ | | 16 | }↵
|
17 | else if (location == AxisLocation.BOTTOM_OR_RIGHT) {↵ | | 17 | else if (location == AxisLocation.BOTTOM_OR_RIGHT) {↵
|
18 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | | 18 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
19 | result = RectangleEdge.RIGHT;↵ | | 19 | result = RectangleEdge.BOTTOM;↵
|
20 | }↵ | | 20 | }↵
|
21 | else if (orientation == PlotOrientation.VERTICAL) {↵ | | 21 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
22 | result = RectangleEdge.BOTTOM;↵ | | 22 | result = RectangleEdge.RIGHT;↵
|
23 | }↵ | | 23 | }↵
|
24 | }↵ | | 24 | }↵
|
25 | else if (location == AxisLocation.BOTTOM_OR_LEFT) {↵ | | 25 | else if (location == AxisLocation.BOTTOM_OR_LEFT) {↵
|
26 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | | 26 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
27 | result = RectangleEdge.LEFT;↵ | | 27 | result = RectangleEdge.BOTTOM;↵
|
28 | }↵ | | 28 | }↵
|
29 | else if (orientation == PlotOrientation.VERTICAL) {↵ | | 29 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
30 | result = RectangleEdge.BOTTOM;↵ | | 30 | result = RectangleEdge.LEFT;↵
|
31 | | | 31 |
|