yPos += trackRect.y; return yPos;
return trackRect.y + Math.min(yPos, trackRect.height - 1);
  protected int yPositionForValue(int value)  {    int min = slider.getMinimum();    int max = slider.getMaximum();    int len = trackRect.height - 1;    int yPos = (max == min) ? 0 : (value - min) * len / (max - min);    if (! drawInverted())      {	yPos = len - yPos;	yPos += trackRect.y;      }    else      yPos += trackRect.y;    return yPos;  }