Class MiddleLayout

  • All Implemented Interfaces:

    public class MiddleLayout
    extends java.lang.Object
    implements java.awt.LayoutManager,
    Puts the first child of the given component in the middle of the component, both vertically and horizontally.
    See Also:
    Serialized Form
    • Constructor Detail

      • MiddleLayout

        public MiddleLayout()
    • Method Detail

      • addLayoutComponent

        public void addLayoutComponent​(java.lang.String name,
                                       java.awt.Component comp)
        Specified by:
        addLayoutComponent in interface java.awt.LayoutManager
      • removeLayoutComponent

        public void removeLayoutComponent​(java.awt.Component comp)
        Specified by:
        removeLayoutComponent in interface java.awt.LayoutManager
      • preferredLayoutSize

        public java.awt.Dimension preferredLayoutSize​(java.awt.Container container)
        Specified by:
        preferredLayoutSize in interface java.awt.LayoutManager
      • minimumLayoutSize

        public java.awt.Dimension minimumLayoutSize​(java.awt.Container cont)
        Specified by:
        minimumLayoutSize in interface java.awt.LayoutManager
      • layoutContainer

        public void layoutContainer​(java.awt.Container container)
        Specified by:
        layoutContainer in interface java.awt.LayoutManager