Package swingtree.layout
@NullMarked
package swingtree.layout
-
ClassDescriptionThis class is an
AddConstraint
designed as a component constraint for theResponsiveGridFlowLayout
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 aFlowCell
should place its associated component within aResponsiveGridFlowLayout
.
Instances of this are passed to theConfigurator
of aFlowCell
so that you can dynamically assign the number of cells a component should span, based on the size category of the parent container.
UseUILayoutConstants.AUTO_SPAN(Configurator)
to create aFlowCell
from aConfigurator
and pass it to theUIForAnySwing.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 aResponsiveGridFlowLayout
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.