()
| 1127 | } |
| 1128 | |
| 1129 | private int getPositionInt() { |
| 1130 | String pos = getPosition(); |
| 1131 | if (BorderLayout.NORTH.equals(pos)) { |
| 1132 | return N; |
| 1133 | } |
| 1134 | if (BorderLayout.SOUTH.equals(pos)) { |
| 1135 | return S; |
| 1136 | } |
| 1137 | if (BorderLayout.EAST.equals(pos)) { |
| 1138 | return E; |
| 1139 | } |
| 1140 | if (BorderLayout.WEST.equals(pos)) { |
| 1141 | return W; |
| 1142 | } |
| 1143 | if (BorderLayout.CENTER.equals(pos)) { |
| 1144 | return C; |
| 1145 | } |
| 1146 | return S; |
| 1147 | } |
| 1148 | |
| 1149 | /// Gets the preferred height of the sheet. Will depend on where it is rendered. If position is CENTER, NORTH, or SOUTH |
| 1150 | /// then the preferred height will be the natural preferred width of the sheet. But WEST or EAST, |
no test coverage detected