public final class FlexibleGridLayout
extends java.awt.GridLayout
Constructor and Description |
---|
FlexibleGridLayout(int rows,
int cols)
Instantiates a new FlexibleGridLayout
|
FlexibleGridLayout(int rows,
int cols,
int hgap,
int vgap)
Instantiates a new FlexibleGridLayout
|
FlexibleGridLayout(int rows,
int cols,
int hgap,
int vgap,
boolean fixRowHeights,
boolean fixColumnWidths)
Instantiates a new FlexibleGridLayout
|
Modifier and Type | Method and Description |
---|---|
void |
layoutContainer(java.awt.Container parent) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
FlexibleGridLayout |
setFixedColumnWidth(int width) |
FlexibleGridLayout |
setFixedRowHeight(int height) |
public FlexibleGridLayout(int rows, int cols)
rows
- the number of rowscols
- the number of columnspublic FlexibleGridLayout(int rows, int cols, int hgap, int vgap)
rows
- the number of rowscols
- the number of columnshgap
- the horizontal gapvgap
- the vertical gappublic FlexibleGridLayout(int rows, int cols, int hgap, int vgap, boolean fixRowHeights, boolean fixColumnWidths)
rows
- the number of rowscols
- the number of columnshgap
- the horizontal gapvgap
- the vertical gapfixRowHeights
- if true then the row heights are fixed according to the largest rowfixColumnWidths
- if true then the column widths are fixed according to the largest columnpublic FlexibleGridLayout setFixedRowHeight(int height)
height
- the fixed row height to use in this layoutpublic FlexibleGridLayout setFixedColumnWidth(int width)
width
- the fixed column width to use in this layoutpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class java.awt.GridLayout
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
in class java.awt.GridLayout
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class java.awt.GridLayout