Class ResponsiveGridFlowLayout

java.lang.Object
swingtree.layout.ResponsiveGridFlowLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2

public final class ResponsiveGridFlowLayout extends Object implements LayoutManager2
A flow layout arranges components in a directional flow, much like lines of text in a paragraph.
  • Constructor Details

    • ResponsiveGridFlowLayout

      public ResponsiveGridFlowLayout()
      Constructs a new FlowLayout with a centered alignment and a default 5-unit horizontal and vertical gap.
    • ResponsiveGridFlowLayout

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

      public ResponsiveGridFlowLayout(UI.HorizontalAlignment align, int horizontalGapSize, int verticalGapSize)
      Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps.

      The value of the alignment argument must be one of UI.HorizontalAlignment.LEFT, UI.HorizontalAlignment.RIGHT, UI.HorizontalAlignment.CENTER, UI.HorizontalAlignment.LEADING, or UI.HorizontalAlignment.TRAILING.

      Parameters:
      align - the alignment value
      horizontalGapSize - the horizontal gap between components and between the components and the borders of the Container
      verticalGapSize - the vertical gap between components and between the components and the borders of the Container
  • Method Details