void () { 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); } } }