requirements[axis] = calculateMajorAxisRequirements(axis, requirements[axis]);
max = getPreferredSpan(axis);
  public float getMaximumSpan(int axis)  {    if (!isLayoutValid(axis))      {        if (axis == myAxis)          requirements[axis] = calculateMajorAxisRequirements(axis,                                                           requirements[axis]);    else          requirements[axis] = calculateMinorAxisRequirements(axis,                                                           requirements[axis]);      }    return requirements[axis].maximum;  }