(Container cnt)
| 1069 | /// |
| 1070 | /// - `cnt`: The container in the FormLayeredPane where the sheet is to be rendered. |
| 1071 | private int getHiddenX(Container cnt) { |
| 1072 | switch (getPositionInt()) { |
| 1073 | case S: |
| 1074 | case N: |
| 1075 | return 0; |
| 1076 | case C: |
| 1077 | return (cnt.getWidth() - getPreferredW(cnt)) / 2; |
| 1078 | case E: |
| 1079 | return cnt.getWidth(); |
| 1080 | case W: |
| 1081 | return -getPreferredW(cnt); |
| 1082 | default: |
| 1083 | return 0; |
| 1084 | } |
| 1085 | } |
| 1086 | |
| 1087 | /// Gets Y-coordinate of the sheet when it is hidden off-screen. This will be different |
| 1088 | /// depending on the position of the sheet. |
no test coverage detected