Class VerticalFlowLayout

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

    @Deprecated() 
    public final class VerticalFlowLayout
    extends AFlowLayout
                        

    A vertical layout manager similar to java.awt.FlowLayout. Like FlowLayout components do not expand to fill available space except when the horizontal alignment is BOTH in which case components are stretched horizontally. Unlike FlowLayout, components will not wrap to form another column if there isn't enough space vertically. VerticalLayout can optionally anchor components to the top or bottom of the display area or center them between the top and bottom. Revision date 12th July 2001 Homepage:www.kagi.com/equitysoft - Based on 'FlexLayout' in Java class libraries Vol 2 Chan/Lee Addison-Wesley 1998

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static int CENTER
      public final static int RIGHT
      public final static int LEFT
      public final static int BOTH
      public final static int TOP
    • Constructor Summary

      Constructors 
      Constructor Description
      VerticalFlowLayout(boolean ordered) Constructs an instance of VerticalLayout with a vertical vgap of 5 pixels, horizontal centering and anchored to the top of the display area.
      VerticalFlowLayout(int vgap, boolean ordered) Constructs a VerticalLayout instance with horizontal centering, anchored to the top with the specified vgap.
      VerticalFlowLayout(int vgap, int alignment, boolean ordered) Constructs a VerticalLayout instance anchored to the top with the specified vgap and horizontal alignment.
      VerticalFlowLayout(int vgap, int alignment, int anchor, boolean ordered) Constructs a VerticalLayout instance with the specified vgap, horizontal alignment and anchoring.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void layoutContainer(Container parent) Lays out the container.
      • Methods inherited from class it.unibo.alchemist.boundary.swingui.tape.impl.AFlowLayout

        addLayoutComponent, getComponentOrder, getComponentsList, isOrdered, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setComponentOrder, toString
      • Methods inherited from class java.awt.LayoutManager

        addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
      • Methods inherited from class java.lang.Object

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

      • VerticalFlowLayout

        VerticalFlowLayout(boolean ordered)
        Constructs an instance of VerticalLayout with a vertical vgap of 5 pixels, horizontal centering and anchored to the top of the display area.
        Parameters:
        ordered - true if the components must be ordered
      • VerticalFlowLayout

        VerticalFlowLayout(int vgap, boolean ordered)
        Constructs a VerticalLayout instance with horizontal centering, anchored to the top with the specified vgap.
        Parameters:
        vgap - An int value indicating the vertical seperation of the components
        ordered - true if the components must be ordered
      • VerticalFlowLayout

        VerticalFlowLayout(int vgap, int alignment, boolean ordered)
        Constructs a VerticalLayout instance anchored to the top with the specified vgap and horizontal alignment.
        Parameters:
        vgap - An int value indicating the vertical seperation of the components
        alignment - An int value which is one of RIGHT, LEFT, CENTER, BOTH for the horizontal alignment.
        ordered - true if the components must be ordered
      • VerticalFlowLayout

        VerticalFlowLayout(int vgap, int alignment, int anchor, boolean ordered)
        Constructs a VerticalLayout instance with the specified vgap, horizontal alignment and anchoring.
        Parameters:
        vgap - An int value indicating the vertical seperation of the components
        alignment - An int value which is one of RIGHT, LEFT, CENTER, BOTH for the horizontal alignment.
        anchor - An int value which is one of TOP, BOTTOM, CENTERindicating where the components are to appear if the display area exceeds the minimum necessary.
        ordered - true if the components must be ordered