Package swingtree.layout


@NullMarked package swingtree.layout
  • Class
    Description
     
    An immutable value object that represents the position and size of a component in the form of an x and y coordinate modeled by a Position object and a width and height modeled by a Size object.
    This class is an AddConstraint designed as a component constraint for the ResponsiveGridFlowLayout layout manager, allowing you to dynamically adjust the number of grid layout cells a particular component can span based on the current parent container's size.
    An immutable configuration object used to define how a FlowCell should place its associated component within a ResponsiveGridFlowLayout.
    Instances of this are passed to the Configurator of a FlowCell so that you can dynamically assign the number of cells a component should span, based on the size category of the parent container.

    Use UILayoutConstants.AUTO_SPAN(Configurator) to create a FlowCell from a Configurator and pass it to the UIForAnySwing.add(AddConstraint, UIForAnySwing[]) of a SwingTree UI declaration.
    Here an example demonstrating how this might be used:
    A wrapper for mig layout constraint string to avoid the inherent brittleness of strings...
    A wrapper for mig layout constraint string to avoid the inherent brittleness of strings...
    Represents a classification of the size of a parent component in a ResponsiveGridFlowLayout that serves as a sort of layout mode for the child components.
    An immutable value based class that represents a location in a two-dimensional coordinate system specified in float precision and specifically designed for Swing components.
    A flow layout arranges components in a directional flow, much like lines of text in a paragraph.
    An immutable value object that represents a size in the form of a width and height or lack thereof.