Class VerticalLayout

  • All Implemented Interfaces:
    java.awt.LayoutManager

    public class VerticalLayout
    extends java.lang.Object
    implements java.awt.LayoutManager
    LayoutManager for arranging components in a single column. All components retain their preferred heights, but are sized to the same width.
    • Constructor Summary

      Constructors 
      Constructor Description
      VerticalLayout​(int vgap)
      Constructor for VerticalLayout.
    • Constructor Detail

      • VerticalLayout

        public VerticalLayout​(int vgap)
        Constructor for VerticalLayout.
        Parameters:
        vgap - gap (in pixels) between components.
    • 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(String, Component)
      • removeLayoutComponent

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

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

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

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