java.lang.Object
is.codion.swing.common.ui.layout.Layouts
A utility class for layouts. All layouts created use the centrally configured hgap and vgap.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BorderLayoutCreates a BorderLayout using the default vertical and horizontal gap valuestatic FlexibleGridLayout.BuilderCreates aFlexibleGridLayout.Builderusing the default vertical and horizontal gap value, with neither row heights nor column widths fixed.static FlexibleGridLayoutflexibleGridLayout(int rows, int columns) Creates aFlexibleGridLayoutusing the default vertical and horizontal gap value, with neither row heights nor column widths fixed.static FlowLayoutflowLayout(int alignment) Creates a FlowLayout using the default vertical and horizontal gap valuestatic GridLayoutgridLayout(int rows, int columns) Creates a GridLayout using the default vertical and horizontal gap value
-
Field Details
-
GAP
Specifies the default horizontal and vertical component gap, used by the layout factory methods, by default this is 5- See Also:
-
-
Method Details
-
borderLayout
Creates a BorderLayout using the default vertical and horizontal gap value- Returns:
- a BorderLayout
- See Also:
-
flowLayout
Creates a FlowLayout using the default vertical and horizontal gap value- Parameters:
alignment- the alignment- Returns:
- a FlowLayout
- See Also:
-
gridLayout
Creates a GridLayout using the default vertical and horizontal gap value- Parameters:
rows- the number of rowscolumns- the number of columns- Returns:
- a GridLayout
- See Also:
-
flexibleGridLayout
Creates aFlexibleGridLayoutusing the default vertical and horizontal gap value, with neither row heights nor column widths fixed.- Parameters:
rows- the number of rowscolumns- the number of columns- Returns:
- a
FlexibleGridLayout - See Also:
-
flexibleGridLayout
Creates aFlexibleGridLayout.Builderusing the default vertical and horizontal gap value, with neither row heights nor column widths fixed.- Returns:
- a
FlexibleGridLayout.Builder - See Also:
-