Class VerticalFlowLayout

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

    public class VerticalFlowLayout
    extends java.lang.Object
    implements java.awt.LayoutManager, java.io.Serializable
    A vertical flow layout is similar to a flow layuot but it layouts the components vertically instead of horizontally.
    Author:
    vassilidzuba
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BOTTOM
      Description of the Field
      static int CENTER
      Description of the Field
      static int LEFT
      Description of the Field
      static int RIGHT
      Description of the Field
      static int TOP
      Description of the Field
    • Constructor Summary

      Constructors 
      Constructor Description
      VerticalFlowLayout()
      Constructor for the VerticalFlowLayout object
      VerticalFlowLayout​(int halign, int valign)
      Constructor for the VerticalFlowLayout object
      VerticalFlowLayout​(int halign, int valign, int hgap, int vgap, boolean hfill)
      Constructor for the VerticalFlowLayout object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLayoutComponent​(java.lang.String name, java.awt.Component comp)
      Adds a feature to the LayoutComponent attribute of the VerticalFlowLayout object
      int getHalignment()
      Gets the Halignment attribute of the VerticalFlowLayout object
      int getHgap()
      Gets the Hgap attribute of the VerticalFlowLayout object
      boolean getHorizontalFill()
      Gets the Hfill attribute of the VerticalFlowLayout object
      int getValignment()
      Gets the Valignment attribute of the VerticalFlowLayout object
      int getVgap()
      Gets the Vgap attribute of the VerticalFlowLayout object
      void layoutContainer​(java.awt.Container target)
      Description of the Method
      java.awt.Dimension minimumLayoutSize​(java.awt.Container target)
      Description of the Method
      java.awt.Dimension preferredLayoutSize​(java.awt.Container target)
      Description of the Method
      void removeLayoutComponent​(java.awt.Component comp)
      Description of the Method
      void setAlignment​(int halign, int valign)
      Sets the Alignment attribute of the VerticalFlowLayout object
      void setHgap​(int hgap)
      Sets the Hgap attribute of the VerticalFlowLayout object
      void setHorizontalFill​(boolean hfill)
      Sets the Hfill attribute of the VerticalFlowLayout object
      void setVgap​(int vgap)
      Sets the Vgap attribute of the VerticalFlowLayout object
      java.lang.String toString()
      Description of the Method
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VerticalFlowLayout

        public VerticalFlowLayout()
        Constructor for the VerticalFlowLayout object
      • VerticalFlowLayout

        public VerticalFlowLayout​(int halign,
                                  int valign)
        Constructor for the VerticalFlowLayout object
        Parameters:
        halign - Description of Parameter
        valign - Description of Parameter
      • VerticalFlowLayout

        public VerticalFlowLayout​(int halign,
                                  int valign,
                                  int hgap,
                                  int vgap,
                                  boolean hfill)
        Constructor for the VerticalFlowLayout object
        Parameters:
        halign - Description of Parameter
        valign - Description of Parameter
        hgap - Description of Parameter
        vgap - Description of Parameter
    • Method Detail

      • setAlignment

        public void setAlignment​(int halign,
                                 int valign)
        Sets the Alignment attribute of the VerticalFlowLayout object
        Parameters:
        halign - The new Alignment value
        valign - The new Alignment value
      • setHgap

        public void setHgap​(int hgap)
        Sets the Hgap attribute of the VerticalFlowLayout object
        Parameters:
        hgap - The new Hgap value
      • setVgap

        public void setVgap​(int vgap)
        Sets the Vgap attribute of the VerticalFlowLayout object
        Parameters:
        vgap - The new Vgap value
      • getHalignment

        public int getHalignment()
        Gets the Halignment attribute of the VerticalFlowLayout object
        Returns:
        The Halignment value
      • getValignment

        public int getValignment()
        Gets the Valignment attribute of the VerticalFlowLayout object
        Returns:
        The Valignment value
      • getHgap

        public int getHgap()
        Gets the Hgap attribute of the VerticalFlowLayout object
        Returns:
        The Hgap value
      • getVgap

        public int getVgap()
        Gets the Vgap attribute of the VerticalFlowLayout object
        Returns:
        The Vgap value
      • setHorizontalFill

        public void setHorizontalFill​(boolean hfill)
        Sets the Hfill attribute of the VerticalFlowLayout object
        Parameters:
        hfill -
      • getHorizontalFill

        public boolean getHorizontalFill()
        Gets the Hfill attribute of the VerticalFlowLayout object
        Returns:
        The Hfill value
      • addLayoutComponent

        public void addLayoutComponent​(java.lang.String name,
                                       java.awt.Component comp)
        Adds a feature to the LayoutComponent attribute of the VerticalFlowLayout object
        Specified by:
        addLayoutComponent in interface java.awt.LayoutManager
        Parameters:
        name - The feature to be added to the LayoutComponent attribute
        comp - The feature to be added to the LayoutComponent attribute
      • removeLayoutComponent

        public void removeLayoutComponent​(java.awt.Component comp)
        Description of the Method
        Specified by:
        removeLayoutComponent in interface java.awt.LayoutManager
        Parameters:
        comp - Description of Parameter
      • preferredLayoutSize

        public java.awt.Dimension preferredLayoutSize​(java.awt.Container target)
        Description of the Method
        Specified by:
        preferredLayoutSize in interface java.awt.LayoutManager
        Parameters:
        target - Description of Parameter
        Returns:
        Description of the Returned Value
      • minimumLayoutSize

        public java.awt.Dimension minimumLayoutSize​(java.awt.Container target)
        Description of the Method
        Specified by:
        minimumLayoutSize in interface java.awt.LayoutManager
        Parameters:
        target - Description of Parameter
        Returns:
        Description of the Returned Value
      • layoutContainer

        public void layoutContainer​(java.awt.Container target)
        Description of the Method
        Specified by:
        layoutContainer in interface java.awt.LayoutManager
        Parameters:
        target - Description of Parameter
      • toString

        public java.lang.String toString()
        Description of the Method
        Overrides:
        toString in class java.lang.Object
        Returns:
        Description of the Returned Value