org.browsecode.helpers.layouts
Class SmartFlowLayoutConstraints

java.lang.Object
  extended by org.browsecode.helpers.layouts.SmartFlowLayoutConstraints
All Implemented Interfaces:
java.lang.Cloneable

public class SmartFlowLayoutConstraints
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
 boolean alignAtBottom
           
 boolean endOfRow
           
 int fillHeight
          How much of the height to fill: 0 = Do not give it extra height 1 = Fill it, giving it a low priority 2 = Fill it, giving it double the priority 3 = Fill it, giving it triple the priority etc.
 int fillWidth
          How much of the width to fill: 0 = Do not give it extra width 1 = Fill it, giving it a low priority 2 = Fill it, giving it double the priority 3 = Fill it, giving it triple the priority etc.
 float xAlignment
          The alignment along the x axis.
 
Constructor Summary
SmartFlowLayoutConstraints()
           
 
Method Summary
 java.lang.Object clone()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endOfRow

public boolean endOfRow

fillHeight

public int fillHeight
How much of the height to fill: 0 = Do not give it extra height 1 = Fill it, giving it a low priority 2 = Fill it, giving it double the priority 3 = Fill it, giving it triple the priority etc. Higher numbers get more of the fill (if there is more than one component that has a fillHeight of more than 0).


fillWidth

public int fillWidth
How much of the width to fill: 0 = Do not give it extra width 1 = Fill it, giving it a low priority 2 = Fill it, giving it double the priority 3 = Fill it, giving it triple the priority etc. Higher numbers get more of the fill (if there is more than one component that has a fillHeight of more than 0)..


alignAtBottom

public boolean alignAtBottom

xAlignment

public float xAlignment
The alignment along the x axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc. -1 means that the value has not been set yet and it will do the default (matching other parameters) Only the first component in a row with an xAlignment value will be listened to -- there is no averaging procedure. This is not useful when "fillWidth" has been set to a non-zero value for any component on the row -- if something on this row is filling up the empty space, then there's no need for xAlignment, as it will always be both left- and right-justified.

Constructor Detail

SmartFlowLayoutConstraints

public SmartFlowLayoutConstraints()
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException