value = ((len - (yPos - trackRect.y)) * (max - min) / len + min);
value = (len - (yPos - trackRect.y)) * (max - min) / len + min;
  public int valueForYPosition(int yPos)  {    int min = slider.getMinimum();    int max = slider.getMaximum();    int len = trackRect.height;    int value;    // If the length is 0, you shouldn't be able to even see where the slider     // is.  This really shouldn't ever happen, but just in case, we'll return     // the middle.    if (len == 0)      return ((max - min) / 2);    if (! drawInverted())      value = ((len - (yPos - trackRect.y)) * (max - min) / len + min);    else      value = ((yPos - trackRect.y) * (max - min) / len + min);    // If this isn't a legal value, then we'll have to move to one now.    if (value > max)      value = max;    else if (value < min)      value = min;    return value;  }