(boolean dummy)
| 211 | } |
| 212 | |
| 213 | public int getMaxWidth(boolean dummy) { |
| 214 | if (calculatedWidth >= 0) { |
| 215 | return calculatedWidth; |
| 216 | } |
| 217 | int max = 0; |
| 218 | for (ActiveModuleItem item : items) { |
| 219 | if (item.getHandle().shouldRender(dummy)) { |
| 220 | int width = item.getHandle().getWidth(dummy); |
| 221 | if (width > max) { |
| 222 | max = width; |
| 223 | } |
| 224 | } |
| 225 | } |
| 226 | if (isShowLabel()) { |
| 227 | int width = The5zigMod.getVars().getStringWidth(getDisplayName()); |
| 228 | if (width > max) { |
| 229 | max = width; |
| 230 | } |
| 231 | } |
| 232 | return (int) (max * scale); |
| 233 | } |
| 234 | |
| 235 | public int getTotalHeight(boolean dummy) { |
| 236 | if (calculatedHeight >= 0) { |
no test coverage detected