public void restore(double value){
  setValue(Math.min(maxValue,getValue() + value));
}

public void restore ( double value ) { setValue ( Math . min ( maxValue , getValue ( ) + value ) ) ; }
restore component by given value .
