question: public void updateSlider ( final double p , final boolean n ) { checkWidget ( ) ; double percentage = p ; if ( step != null ) { percentage = Math . round ( percentage / step ) * step ; } this . notify = n ; if ( percentage < 0 ) { percentage = 0 ; } else if ( percentage > 1 ) { percentage = 1 ; } final int usefulWidth = getClientArea ( ) . width - thumbWidth ; final int width = ( int ) Math . round ( usefulWidth * percentage ) ; moveThumbHorizontally ( width ) ; previousPosition = percentage ; this . notify = true ; }
target:  Method to update current position of the slider