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