Class WrapLayout

java.lang.Object
java.awt.FlowLayout
jmri.util.swing.WrapLayout
All Implemented Interfaces:
LayoutManager, Serializable

public class WrapLayout extends FlowLayout
FlowLayout subclass that fully supports wrapping of components.
See Also:
  • Constructor Details

    • WrapLayout

      public WrapLayout()
      Constructs a new WrapLayout with a left alignment and a default 5-unit horizontal and vertical gap.
    • WrapLayout

      public WrapLayout(int align)
      Constructs a new WrapLayout with the specified alignment and a default 5-unit horizontal and vertical gap. The value of the alignment argument must be one of FlowLayout.CENTER, FlowLayout.LEFT, or FlowLayout.RIGHT.
      Parameters:
      align - the alignment value
    • WrapLayout

      public WrapLayout(int align, int hgap, int vgap)
      Creates a new WrapLayout with the indicated alignment and the indicated horizontal and vertical gaps.

      The value of the alignment argument must be one of FlowLayout.CENTER, FlowLayout.LEFT, or FlowLayout.RIGHT.

      Parameters:
      align - the alignment value
      hgap - the horizontal gap between components
      vgap - the vertical gap between components
  • Method Details