public virtual Dimension minimumLayoutSize(Container parent) { Dimension dimension; lock (((Component) parent).getTreeLock()) { Insets local_1 = parent.getInsets(); Component[] local_2 = parent.getComponents(); int local_3 = 0; int local_4 = 0; for (int local_5 = 0; local_5 < local_2.Length; ++local_5) { if (local_2[local_5].isVisible() || !this.ignoreInvisible) { Dimension local_6 = local_2[local_5].getMinimumSize(); if (local_6.height > local_3) local_3 = (int) local_6.height; if (local_6.width > local_4) local_4 = (int) local_6.width; } } Dimension.__\u003Cclinit\u003E(); dimension = new Dimension(local_4 + local_1.left + local_1.right, local_3 + local_1.top + local_1.bottom); } return dimension; }
public virtual void layoutContainer(Container parent) { lock (((Component) parent).getTreeLock()) { Insets local_1 = parent.getInsets(); Rectangle local_2 = ((Component) parent).getBounds(); int local_3 = (int) (local_2.width - local_1.left - local_1.right); int local_4 = (int) (local_2.height - local_1.top - local_1.bottom); Component[] local_5 = parent.getComponents(); for (int local_6 = 0; local_6 < local_5.Length; ++local_6) { Component local_7 = local_5[local_6]; if (local_5[local_6].isVisible() || !this.ignoreInvisible) local_7.setBounds((int) local_1.left, (int) local_1.top, local_3, local_4); } } }
public virtual void layoutContainer(Container parent) { lock (((Component) parent).getTreeLock()) { Insets local_1 = parent.getInsets(); int local_2 = (int) (local_1.left + local_1.right); int local_4 = !this.isUseSizeFromParent() ? this.preferredLayoutSize(parent).width - local_2 : ((Component) parent).getBounds().width - local_2; Component[] local_5 = parent.getComponents(); int local_6 = (int) local_1.top; for (int local_7 = 0; local_7 < local_5.Length; ++local_7) { Component local_8 = local_5[local_7]; if (local_8.isVisible()) { Dimension local_9 = local_8.getPreferredSize(); local_8.setBounds((int) local_1.left, local_6, local_4, (int) local_9.height); local_6 += (int) local_9.height; } } } }