Class MiddleLayout

  • All Implemented Interfaces:
    java.awt.LayoutManager, java.io.Serializable

    public class MiddleLayout
    extends java.lang.Object
    implements java.awt.LayoutManager, java.io.Serializable
    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