public final void setStepSize ( final int stepSize ) { if ( stepSize != - 1 ) { Condition . INSTANCE . ensureAtLeast ( stepSize , 1 , "The step size must be at least 1" ) ; Condition . INSTANCE . ensureAtMaximum ( stepSize , getRange ( ) , "The step size must be at maximum the range" ) ; } this . stepSize = stepSize ; setValue ( adaptToStepSize ( getValue ( ) ) ) ; }
Sets the step size the value should be increased or decreased by when moving the seek bar .