|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.layout.LayoutManager
com.threerings.opengl.gui.layout.BorderLayout
public class BorderLayout
Lays out the children of a container around the borders and one in the center. For example:
+------------------------------------+ | NORTH | +-----+------------------------+-----+ | | | | | W | CENTER | E | | | | | +-----+------------------------+-----+ | SOUTH | +------------------------------------+
| Field Summary | |
|---|---|
static Integer |
CENTER
A layout constraint. |
static Integer |
EAST
A layout constraint. |
static Integer |
IGNORE
A layout constraint. |
static Integer |
NORTH
A layout constraint. |
static Integer |
SOUTH
A layout constraint. |
static Integer |
WEST
A layout constraint. |
| Constructor Summary | |
|---|---|
BorderLayout()
Creates a border layout with zero gap between the horizontal components and zero gap between the vertical. |
|
BorderLayout(int hgap,
int vgap)
Creates a border layout with the specified gap between the horizontal components and the specified gap between the vertical. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
Components added to a container will result in a call to this method, informing the layout manager of said constraints. |
Dimension |
computePreferredSize(Container target,
int whint,
int hhint)
Computes the preferred size for the supplied container, based on the preferred sizes of its children and the layout policy implemented by this manager. |
Object |
getConstraints(Component comp)
Returns a reference to the constraints associated with the specified component, or null for none. |
void |
layoutContainer(Container target)
Effects the layout policy of this manager on the supplied target, adjusting the size and position of its children based on the size and position of the target at the time of this call. |
void |
removeLayoutComponent(Component comp)
Components removed to a container for which a layout manager has been configured will result in a call to this method. |
void |
setGaps(int hgap,
int vgap)
Configures our inter-component gaps. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Integer NORTH
public static final Integer SOUTH
public static final Integer EAST
public static final Integer WEST
public static final Integer CENTER
public static final Integer IGNORE
| Constructor Detail |
|---|
public BorderLayout()
public BorderLayout(int hgap,
int vgap)
| Method Detail |
|---|
public void setGaps(int hgap,
int vgap)
public void addLayoutComponent(Component comp,
Object constraints)
LayoutManager
addLayoutComponent in class LayoutManagerpublic void removeLayoutComponent(Component comp)
LayoutManager
removeLayoutComponent in class LayoutManagerpublic Object getConstraints(Component comp)
LayoutManagernull for none. The default implementation always returns null.
getConstraints in class LayoutManager
public Dimension computePreferredSize(Container target,
int whint,
int hhint)
LayoutManager
computePreferredSize in class LayoutManagerpublic void layoutContainer(Container target)
LayoutManager
layoutContainer in class LayoutManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||