private void set ( double value ) { cur = value ; if ( ! overMax && cur > max ) { cur = max ; } if ( cur < Alterable . MIN ) { cur = Alterable . MIN ; } }
Set current value . The current value will be fixed between 0 and the maximum .