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; }
static FontFamily() { Container = new awt.Container(); _installedFonts = new InstalledFontCollection(); _genericMonospace = new FontFamily(GenericFontFamilies.Monospace); _genericSansSerif = new FontFamily(GenericFontFamilies.SansSerif); _genericSerif = new FontFamily(GenericFontFamilies.Serif); }
public static Control AttachTo(this Control e, Container parent) { parent.add(e.GetTargetElement()); e.Show(); return e; }
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); } } }
/// <summary> /// Lays out the container argument using this border layout. /// </summary> public void layoutContainer(Container @target) { }
/// <summary> /// Paints a component <code>c</code> on an arbitrary graphics /// <code>g</code> in the specified rectangle, specifying a Rectangle object. /// </summary> static public void paintComponent(Graphics @g, Component @c, Container @p, Rectangle @r) { }
/// <summary> /// Returns whether the specified Container is the focus cycle root of this /// Container's focus traversal cycle. /// </summary> public bool isFocusCycleRoot(Container @container) { return default(bool); }
/// <summary> /// Sets the content pane -- the container that holds the components /// parented by the root pane. /// </summary> public void setContentPane(Container @content) { }
/// <summary> /// Paints a component <code>c</code> on an arbitrary graphics /// <code>g</code> in the /// specified rectangle, specifying the rectangle's upper left corner /// and size. /// </summary> static public void paintComponent(Graphics @g, Component @c, Container @p, int @x, int @y, int @w, int @h) { }
/// <summary> /// Returns the Component that should receive the focus before aComponent. /// </summary> public Component getComponentBefore(Container @focusCycleRoot, Component @aComponent) { return(default(Component)); }
/// <summary> /// Returns the last Component in the traversal cycle. /// </summary> public Component getLastComponent(Container @focusCycleRoot) { return(default(Component)); }
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; } } } }
/// <summary> /// Constructs an AncestorEvent object to identify a change /// in an ancestor-component's display-status. /// </summary> public AncestorEvent(JComponent @source, int @id, Container @ancestor, Container @ancestorParent) { }
/// <summary> /// Returns the Component that should receive the focus before aComponent. /// </summary> public Component getComponentBefore(Container @focusCycleRoot, Component @aComponent) { return default(Component); }
/// <summary> /// Invalidates the layout, indicating that if the layout manager /// has cached information it should be discarded. /// </summary> public void invalidateLayout(Container @target) { }
/// <summary> /// Returns the alignment along the y axis. /// </summary> public float getLayoutAlignmentY(Container @parent) { return default(float); }
/// <summary> /// Determines the preferred size of the <code>target</code> /// container using this layout manager, based on the components /// in the container. /// </summary> public Dimension preferredLayoutSize(Container @target) { return default(Dimension); }
/// <summary> /// Returns the last Component in the traversal cycle. /// </summary> public Component getLastComponent(Container @focusCycleRoot) { return default(Component); }
/// <summary> /// Constructs an <code>HierarchyEvent</code> object to identify /// a change in the <code>Component</code> hierarchy. /// </summary> public HierarchyEvent(Component @source, int @id, Component @changed, Container @changedParent, long @changeFlags) { }
/// <summary> /// Returns the maximum dimensions for this layout given the components /// in the specified target container. /// </summary> public Dimension maximumLayoutSize(Container @target) { return default(Dimension); }