public class LCBLayout
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private int |
buttonGap
The gap between each component and button.
|
private static int |
COLUMNS
A constant for the number of columns in the layout.
|
private int[] |
colWidth
Tracks the column widths.
|
private int |
labelGap
The gap between each label and component.
|
private int[] |
rowHeight
Tracks the row heights.
|
private static long |
serialVersionUID
For serialization.
|
private int |
vGap
The gap between rows.
|
Constructor and Description |
---|
LCBLayout(int maxrows)
Creates a new LCBLayout with the specified maximum number of rows.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.awt.Component comp)
Not used.
|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Not used.
|
void |
layoutContainer(java.awt.Container parent)
Lays out the components.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Returns the minimum size using this layout manager.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Returns the preferred size using this layout manager.
|
void |
removeLayoutComponent(java.awt.Component comp)
Not used.
|
void |
removeLayoutComponent(java.lang.String name,
java.awt.Component comp)
Not used.
|
private static final long serialVersionUID
private static final int COLUMNS
private int[] colWidth
private int[] rowHeight
private int labelGap
private int buttonGap
private int vGap
public LCBLayout(int maxrows)
maxrows
- the maximum number of rows.public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
parent
- the parent.public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
parent
- the parent.public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
parent
- the parent.public void addLayoutComponent(java.awt.Component comp)
comp
- the component.public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- the component.public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
name
- the component name.comp
- the component.public void removeLayoutComponent(java.lang.String name, java.awt.Component comp)
name
- the component name.comp
- the component.