SizeRequirements result; if (axis == myAxis) result = calculateMajorAxisRequirements(axis, sr); else result = calculateMinorAxisRequirements(axis, sr); return result;
SizeRequirements[] childReqs = getChildRequirements(axis); return SizeRequirements.getAlignedSizeRequirements(childReqs);
  protected SizeRequirements baselineRequirements(int axis,                                                  SizeRequirements sr)  {    SizeRequirements result;    if (axis == myAxis)      result = calculateMajorAxisRequirements(axis, sr);    else      result = calculateMinorAxisRequirements(axis, sr);    return result;  }