com.threerings.opengl.gui.layout
Class GroupLayout.Constraints

java.lang.Object
  extended by com.threerings.opengl.gui.layout.GroupLayout.Constraints
Enclosing class:
GroupLayout

public static class GroupLayout.Constraints
extends Object

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

fixed

public boolean fixed
Whether or not this component is fixed.


weight

public int weight
The weight of this component relative to the other components in the container.

Constructor Detail

GroupLayout.Constraints

public GroupLayout.Constraints(boolean fixed)
Constructs a new constraints object with the specified fixedness and weight.


GroupLayout.Constraints

public GroupLayout.Constraints(int weight)
Constructs a new constraints object with the specified fixedness and weight.



Copyright © 2011. All Rights Reserved.