Package swingtree.layout
@NullMarked
package swingtree.layout
-
ClassDescriptionRepresents a constraint that can be added to a layout manager on a component by component basis.This class is an
AddConstraintdesigned as a component constraint for theResponsiveGridFlowLayoutlayout 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 aFlowCellshould place its associated component within aResponsiveGridFlowLayout.
Instances of this are passed to theConfiguratorof aFlowCellso 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 aFlowCellfrom aConfiguratorand 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 aResponsiveGridFlowLayoutthat serves as a sort of layout mode for the child components.An immutable value based class that represents a location in float based 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 float based width and height or lack thereof.