()
| 613 | } |
| 614 | |
| 615 | @AstroImageJ(reason = "Widen access", modified = true) |
| 616 | protected Dimension getExtraSize() { |
| 617 | Insets insets = getInsets(); |
| 618 | int extraWidth = insets.left+insets.right + 10; |
| 619 | int extraHeight = insets.top+insets.bottom + 10; |
| 620 | if (extraHeight==20) extraHeight = 42; |
| 621 | int members = getComponentCount(); |
| 622 | for (int i=1; i<members; i++) { |
| 623 | Component m = getComponent(i); |
| 624 | Dimension d = m.getPreferredSize(); |
| 625 | extraHeight += d.height + 5; |
| 626 | if (IJ.debugMode) IJ.log(i+" "+d.height+" "+extraHeight); |
| 627 | } |
| 628 | return new Dimension(extraWidth, extraHeight); |
| 629 | } |
| 630 | |
| 631 | public Component add(Component comp) { |
| 632 | comp = super.add(comp); |
no test coverage detected