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.
 
Fields inherited from class java.awt.GridBagLayout
columnWeights, columnWidths, comptable, defaultConstraints, layoutInfo, MAXGRIDSIZE, MINSIZE, PREFERREDSIZE, rowHeights, rowWeights
 
Constructor Summary
FillBoxLayout(int place, int ipad)
          Creates a FillBoxLayout.
 
Method Summary
 void addLayoutComponent(Component c)
          Adds the specified component to the layout.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.
Constructor Detail

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.
Method Detail

addLayoutComponent

public void addLayoutComponent(Component c)
Adds the specified component to the layout.