(Component comp, String name, String icon)
| 316 | int textWidth; |
| 317 | |
| 318 | Tab(Component comp, String name, String icon) { |
| 319 | this.comp = comp; |
| 320 | this.name = name; |
| 321 | |
| 322 | if (icon != null) { |
| 323 | enabledIcon = mode.loadImageX(icon + "-enabled"); |
| 324 | selectedIcon = mode.loadImageX(icon + "-selected"); |
| 325 | if (selectedIcon == null) { |
| 326 | selectedIcon = enabledIcon; // use this as the default |
| 327 | } |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | boolean contains(int x) { |
| 332 | return x >= left && x <= right; |
nothing calls this directly
no test coverage detected