MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getExtraSize

Method getExtraSize

ij/src/main/java/ij/gui/ImageWindow.java:615–629  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 2

getMaximumBoundsMethod · 0.95
fitToWindowMethod · 0.95

Calls 3

getInsetsMethod · 0.95
logMethod · 0.95
getPreferredSizeMethod · 0.45

Tested by

no test coverage detected