if (type == TYPE_XYZ && idx >= 0 && idx <= 2)
if (type == ColorSpace.TYPE_XYZ && idx >= 0 && idx <= 2)
  public float getMaxValue(int idx)  {    if (type == TYPE_XYZ && idx >= 0 && idx <= 2)      return 1 + 32767 / 32768f;    else if (type == TYPE_Lab)      {        if (idx == 0)          return 100;        if (idx == 1 || idx == 2)          return 127;      }    if (idx < 0 || idx >= numComponents)      throw new IllegalArgumentException();    return 1;  }