Class StretchLayout

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

    public class StretchLayout
    extends java.lang.Object
    implements java.awt.LayoutManager, java.io.Serializable
    A layout manager that gives the affect of CENTER in BorderLayout.
    See Also:
    Serialized Form
    • Constructor Detail

      • StretchLayout

        public StretchLayout()
    • Method Detail

      • addLayoutComponent

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

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

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

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

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