if (! isLayoutValid(axis)) requirements[axis] = calculateMinorAxisRequirements(axis, requirements[axis]);
updateRequirements(axis);
  public float getAlignment(int axis)  {    float align;    if (axis == myAxis)      align = 0.5F;    else      {        if (! isLayoutValid(axis))          requirements[axis] = calculateMinorAxisRequirements(axis,                                                           requirements[axis]);        align = requirements[axis].alignment;      }    return align;  }