Class FillBoxLayout
java.lang.Object
|
+--java.awt.GridBagLayout
|
+--FillBoxLayout
- All Implemented Interfaces:
- LayoutManager, LayoutManager2, Serializable
- public class FillBoxLayout
- extends GridBagLayout
This layout allows multiple components to be layed out either vertically
or horizontally with the same size.
- Author:
- P. URSO
- See Also:
- Serialized Form
Field Summary |
static int |
DOWN
Place components from south to north. |
static int |
LEFT
Place components from west to east. |
static int |
RIGHT
Place components from east to west. |
static int |
UP
Place components from north to south. |
Constructor Summary |
FillBoxLayout(int place,
int ipad)
Creates a FillBoxLayout. |
Methods inherited from class java.awt.GridBagLayout |
addLayoutComponent, addLayoutComponent, AdjustForGravity, ArrangeGrid, getConstraints, getLayoutAlignmentX, getLayoutAlignmentY, getLayoutDimensions, GetLayoutInfo, getLayoutOrigin, getLayoutWeights, GetMinSize, invalidateLayout, layoutContainer, location, lookupConstraints, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setConstraints, toString |
UP
public static final int UP
- Place components from north to south.
DOWN
public static final int DOWN
- Place components from south to north.
LEFT
public static final int LEFT
- Place components from west to east.
RIGHT
public static final int RIGHT
- Place components from east to west.
FillBoxLayout
public FillBoxLayout(int place,
int ipad)
- Creates a FillBoxLayout.
- Parameters:
place
- orientation of the layout - UP, DOWN, LEFT or RIGHT.ipad
- external padding of the component.
addLayoutComponent
public void addLayoutComponent(Component c)
- Adds the specified component to the layout.