(Container cnt)
| 1091 | /// |
| 1092 | /// - `cnt`: The container in the FormLayeredPane where the sheet is to be rendered. |
| 1093 | private int getHiddenY(Container cnt) { |
| 1094 | switch (getPositionInt()) { |
| 1095 | case S: |
| 1096 | case C: |
| 1097 | return cnt.getHeight(); |
| 1098 | case W: |
| 1099 | case E: |
| 1100 | return 0; |
| 1101 | case N: |
| 1102 | return -getPreferredH(cnt); |
| 1103 | default: |
| 1104 | return 0; |
| 1105 | } |
| 1106 | } |
| 1107 | |
| 1108 | /// Gets the preferred width of the sheet. Will depend on where it is rendered. If position is CENTER, |
| 1109 | /// then the preferred width will be the natural preferred width of the sheet. But NORTH or SOUTH, |
no test coverage detected