gov.sns.tools.apputils
Class EdgeConstraints

java.lang.Object
  |
  +--gov.sns.tools.apputils.EdgeConstraints
All Implemented Interfaces:
java.lang.Cloneable

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

Edge Constraint defines the strut and growth constrains for a component. The struts are measured from the specified edge of the component to the specified edge of the container. For example, the right strut is the distance between the right edge of the component and the right edge of the container.


Field Summary
 int bottomStrut
           
 int growBehavior
           
 int leftStrut
           
 int rightStrut
           
 int strutBehavior
           
 int topStrut
           
 
Constructor Summary
EdgeConstraints()
          Empty Constructor
EdgeConstraints(int aTopStrut, int aLeftStrut, int aBottomStrut, int aRightStrut, int aStrutBehavior, int aGrowBehavior)
          Constructor with all settings
 
Method Summary
 java.lang.String toString()
          Implement toString() to print summary of constraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

growBehavior

public int growBehavior

strutBehavior

public int strutBehavior

topStrut

public int topStrut

leftStrut

public int leftStrut

bottomStrut

public int bottomStrut

rightStrut

public int rightStrut
Constructor Detail

EdgeConstraints

public EdgeConstraints()
Empty Constructor


EdgeConstraints

public EdgeConstraints(int aTopStrut,
                       int aLeftStrut,
                       int aBottomStrut,
                       int aRightStrut,
                       int aStrutBehavior,
                       int aGrowBehavior)
Constructor with all settings

Method Detail

toString

public java.lang.String toString()
Implement toString() to print summary of constraint

Overrides:
toString in class java.lang.Object