|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.layout.GroupLayout.Constraints
public static class GroupLayout.Constraints
The group layout managers supports two constraints: fixedness and weight. A fixed component will not be stretched along the major axis of the group. Those components that are stretched will have the extra space divided among them according to their weight (specifically receiving the ratio of their weight to the total weight of all of the free components in the container).
If a constraints object is constructed with fixedness set to true and with a weight, the weight will be ignored.
| Field Summary | |
|---|---|
boolean |
fixed
Whether or not this component is fixed. |
int |
weight
The weight of this component relative to the other components in the container. |
| Constructor Summary | |
|---|---|
GroupLayout.Constraints(boolean fixed)
Constructs a new constraints object with the specified fixedness and weight. |
|
GroupLayout.Constraints(int weight)
Constructs a new constraints object with the specified fixedness and weight. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean fixed
public int weight
| Constructor Detail |
|---|
public GroupLayout.Constraints(boolean fixed)
public GroupLayout.Constraints(int weight)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||