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
-
Method Summary
Modifier and TypeMethodDescriptionstatic BorderLayout
Creates a BorderLayout using the default vertical and horizontal gap valuestatic FlexibleGridLayout.Builder
Creates a FlexibleGridLayout.Builder using the default vertical and horizontal gap valuestatic FlexibleGridLayout
flexibleGridLayout
(int rows, int columns) Creates a FlexibleGridLayout using the default vertical and horizontal gap value, with neither row heights nor column widths fixed.static FlowLayout
flowLayout
(int alignment) Creates a FlowLayout using the default vertical and horizontal gap valuestatic GridLayout
gridLayout
(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
-
-
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 a FlexibleGridLayout using 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 a FlexibleGridLayout.Builder using the default vertical and horizontal gap value- Returns:
- a FlexibleGridLayout.Builder instance
- See Also:
-