|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.BorderLayout
A TNT style border bag layout. It will layout a container using members named "North", "South", "East", "West" and "Center". The "North", "South", "East" and "West" components get layed out according to their preferred sizes and the constraints of the container's size. The "Center" component will get any space left over.
Constructor Summary | |
BorderLayout()
Constructs a new BorderLayout. |
|
BorderLayout(int hgap,
int vgap)
Constructs a BorderLayout with the specified gaps. |
Method Summary | |
void |
addLayoutComponent(String name,
Component comp)
Adds the specified named component to the layout. |
void |
layoutContainer(Container target)
Lays out the specified container. |
Dimension |
minimumLayoutSize(Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container. |
Dimension |
preferredLayoutSize(Container target)
Returns the preferred dimensions for this layout given the components in the specified target container. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
String |
toString()
Returns the String representation of this BorderLayout's values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BorderLayout()
public BorderLayout(int hgap, int vgap)
hgap
- the horizontal gapvgap
- the vertical gapMethod Detail |
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
name
- the String namecomp
- the component to be addedpublic void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- the component to be removedpublic Dimension minimumLayoutSize(Container target)
minimumLayoutSize
in interface LayoutManager
target
- the Container on which to do the layoutContainer
,
preferredLayoutSize(java.awt.Container)
public Dimension preferredLayoutSize(Container target)
preferredLayoutSize
in interface LayoutManager
target
- the component which needs to be laid outContainer
,
minimumLayoutSize(java.awt.Container)
public void layoutContainer(Container target)
layoutContainer
in interface LayoutManager
target
- the component being laid outContainer
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |