int weight = 1; if (axis == myAxis) weight = 0;
updateRequirements(axis); int weight = 0; if ((requirements[axis].preferred != requirements[axis].minimum) || (requirements[axis].preferred != requirements[axis].maximum)) weight = 1;
  public int getResizeWeight(int axis)  {    if (axis != X_AXIS && axis != Y_AXIS)      throw new IllegalArgumentException("Illegal axis argument");    int weight = 1;    if (axis == myAxis)      weight = 0;    return weight;  }