public Dimension preferredLayoutSize(Container parent) { return LayoutUtil.add( useSelectedComponentSize ? component == null ? new Dimension(0, 0) : component.getPreferredSize() : LayoutUtil.getMaxPreferredSize(parent.getComponents()), parent.getInsets()); }
public Dimension maximumLayoutSize(Container target) { return LayoutUtil.add(LayoutUtil.getMinMaximumSize(target.getComponents()), target.getInsets()); }
public Dimension minimumLayoutSize(Container parent) { return LayoutUtil.add(LayoutUtil.getMaxMinimumSize(parent.getComponents()), parent.getInsets()); }