gov.nasa.gsfc.drl.rtstps.library.layout
Class RowLayout.Constraint

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.library.layout.RowLayout.Constraint
Enclosing class:
RowLayout

public static class RowLayout.Constraint
extends java.lang.Object

RowLayout's component constraint object. You must pass it as the constraint when you add a component to a container.


Field Summary
 int row
          The component's row number.
 float weight
          The component's weight.
 
Constructor Summary
RowLayout.Constraint()
           
 
Method Summary
 void set(int row, float weight)
          A convenience method to set the constraints.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

row

public int row
The component's row number.


weight

public float weight
The component's weight. If zero, the component will not grow horizontally. If greater than zero, the component will get empty space proportional to its weight divided by the sum of all weights in the same row. The default weight of any component is 0.0f.

Constructor Detail

RowLayout.Constraint

public RowLayout.Constraint()
Method Detail

set

public void set(int row,
                float weight)
A convenience method to set the constraints.

Parameters:
row - The row number, starting at 0.
weight - A weight value between 0f and 1f.