Class FlowLayout

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Layout<FlowConstraints>

public class FlowLayout extends AbstractFlowLayout<FlowConstraints>
A layout that flows information along an axis.
Author:
Garret Wilson
  • Constructor Details

    • FlowLayout

      public FlowLayout()
      Default constructor with Flow.PAGE layout.
    • FlowLayout

      public FlowLayout(Flow flow)
      Flow constructor with no wrapping.
      Parameters:
      flow - The logical axis (line or page) along which information is flowed.
      Throws:
      NullPointerException - if the flow axis is null.
    • FlowLayout

      public FlowLayout(Flow flow, boolean wrapped)
      Flow and wrap constructor.
      Parameters:
      flow - The logical axis (line or page) along which information is flowed.
      wrapped - Whether flowed children should be wrapped when the flow extent is reached.
      Throws:
      NullPointerException - if the flow axis is null.
  • Method Details

    • getConstraintsClass

      public Class<? extends FlowConstraints> getConstraintsClass()
      Returns:
      The class representing the type of constraints appropriate for this layout.
    • createDefaultConstraints

      public FlowConstraints createDefaultConstraints()
      Description copied from interface: Layout
      Creates default constraints for the layout component.
      Returns:
      New default constraints for the layout component.