|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.layout.LayoutManager
public abstract class LayoutManager
Layout managers implement a policy for laying out the children in a container. They must provide routines for computing the preferred size of a target container and for actually laying out its children.
| Constructor Summary | |
|---|---|
LayoutManager()
|
|
| 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. |
abstract 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. |
abstract 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutManager()
| Method Detail |
|---|
public void addLayoutComponent(Component comp,
Object constraints)
public void removeLayoutComponent(Component comp)
public Object getConstraints(Component comp)
null for none. The default implementation always returns null.
public abstract Dimension computePreferredSize(Container target,
int whint,
int hhint)
public abstract void layoutContainer(Container target)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||