Class EdgeConstraints

java.lang.Object
xal.tools.apputils.EdgeConstraints
All Implemented Interfaces:
Cloneable

public class EdgeConstraints extends Object implements 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 Details

    • growBehavior

      protected int growBehavior
      how the component should grow
    • strutBehavior

      protected int strutBehavior
      how the
    • topStrut

      protected int topStrut
      struts from each edge
    • leftStrut

      protected int leftStrut
    • bottomStrut

      protected int bottomStrut
    • rightStrut

      protected int rightStrut
  • Constructor Details

    • 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 Details

    • toString

      public String toString()
      Implement toString() to print summary of constraint
      Overrides:
      toString in class Object