Class CenterLayout

  • All Implemented Interfaces:
    java.awt.LayoutManager

    public class CenterLayout
    extends java.lang.Object
    implements java.awt.LayoutManager
    Simple layout that arranges the first component of the container centered and spans the whole area if the corresponding mode is set.
    Version:
    1.0
    Author:
    Andreas
    • Field Detail

      • mode

        protected int mode
      • SPAN_X_LAYOUT

        public static final CenterLayout SPAN_X_LAYOUT
        A layout that spans the x axis.
      • SPAN_Y_LAYOUT

        public static final CenterLayout SPAN_Y_LAYOUT
        A layout that spans the y axis.
      • SPAN_BOTH_LAYOUT

        public static final CenterLayout SPAN_BOTH_LAYOUT
        A layout that spans the x and y axis.
    • Method Detail

      • minimumLayoutSize

        public java.awt.Dimension minimumLayoutSize​(java.awt.Container container)
        DOCUMENT-ME
        Specified by:
        minimumLayoutSize in interface java.awt.LayoutManager
      • addLayoutComponent

        public void addLayoutComponent​(java.lang.String str,
                                       java.awt.Component component)
        DOCUMENT-ME
        Specified by:
        addLayoutComponent in interface java.awt.LayoutManager
      • layoutContainer

        public void layoutContainer​(java.awt.Container container)
        DOCUMENT-ME
        Specified by:
        layoutContainer in interface java.awt.LayoutManager
      • removeLayoutComponent

        public void removeLayoutComponent​(java.awt.Component component)
        DOCUMENT-ME
        Specified by:
        removeLayoutComponent in interface java.awt.LayoutManager
      • preferredLayoutSize

        public java.awt.Dimension preferredLayoutSize​(java.awt.Container container)
        DOCUMENT-ME
        Specified by:
        preferredLayoutSize in interface java.awt.LayoutManager