void () { super.calculateTickRect(); if (slider.getOrientation() == SwingConstants.HORIZONTAL) { tickRect.y -= JBUIScale.scale(5); } else { if (slider.getComponentOrientation().isLeftToRight()) { tickRect.x -= JBUIScale.scale(5); } else { tickRect.x = trackRect.x + JBUIScale.scale(5); } } }