charva.awt

Class BorderLayout

Implemented Interfaces:
LayoutManager, LayoutManager2

public class BorderLayout
extends java.lang.Object
implements LayoutManager2

A concrete implementation of LayoutManager that lays out its components around its edges. The components are laid out according to their preferred sizes and the constraints of the container's size. The NORTH and SOUTH components may be stretched horizontally; the WEST and EAST components may be stretched vertically; the CENTER component may stretch both horiz- ontally and vertically to fill any space left over.

Field Summary

static String
CENTER
static String
EAST
static String
NORTH
static String
SOUTH
static String
WEST

Constructor Summary

BorderLayout()

Method Summary

void
addLayoutComponent(Component component_, Object constraint_)
void
doLayout(Container container_)
This is called when the size of the container has already been set.
void
invalidateLayout(Container target_)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
Dimension
minimumSize(Container container_)
Calculate the minimum-size rectangle that can enclose all the components in the given container.

Field Details

CENTER

public static final String CENTER

EAST

public static final String EAST

NORTH

public static final String NORTH

SOUTH

public static final String SOUTH

WEST

public static final String WEST

Constructor Details

BorderLayout

public BorderLayout()

Method Details

addLayoutComponent

public void addLayoutComponent(Component component_,
                               Object constraint_)
Specified by:
addLayoutComponent in interface LayoutManager2

doLayout

public void doLayout(Container container_)
This is called when the size of the container has already been set. It just lays out the components according to the specified alignment, hgap and vgap.
Specified by:
doLayout in interface LayoutManager

invalidateLayout

public void invalidateLayout(Container target_)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
Specified by:
invalidateLayout in interface LayoutManager2

minimumSize

public Dimension minimumSize(Container container_)
Calculate the minimum-size rectangle that can enclose all the components in the given container.
Specified by:
minimumSize in interface LayoutManager