@Override
  protected void calculateLabelRect() {
    super.calculateLabelRect();
    if (slider.getPaintLabels()) {
      if (slider.getOrientation() == SwingConstants.VERTICAL) {
        int distance = JBUIScale.scale(11); // Count tickRect
        labelRect.x += slider.getComponentOrientation().isLeftToRight() ? distance : -distance;
      }
      else {
        labelRect.y += JBUIScale.scale(6);
      }
    }
  }
@Override
  protected void calculateLabelRect()