private static void adjustFromLeft(SizeRequirements reqs, int baseline,
private static void adjustFromLeft(SizeRequirements reqs, float baseline,
  private static void adjustFromLeft(SizeRequirements reqs, int baseline,                                     int allocated, int[] spanAndOffset)  {    float left = baseline;    // If the resulting span exceeds the maximum of the component, then adjust    // accordingly.    float maxLeft = ((float) reqs.maximum) * reqs.alignment;    if (left / reqs.alignment > reqs.maximum)      left = maxLeft;    // If we have not enough space on the right side, then adjust accordingly.    if (left / reqs.alignment * (1.F - reqs.alignment) > allocated - baseline)      left = ((float) (allocated - baseline))             / (1.F - reqs.alignment) * reqs.alignment;    // If we are below the minimum, then adjust upwards.    float minLeft = ((float) reqs.minimum) * reqs.alignment;    if (left / reqs.alignment < reqs.minimum)      left = Math.max(minLeft, maxLeft);    spanAndOffset[0] = (int) (left / reqs.alignment);    spanAndOffset[1] = baseline -                       (int) (((float) spanAndOffset[0]) * reqs.alignment);  }