public void setMaxValue ( final double MAX_VALUE ) { // check min-max values if ( Double . compare ( MAX_VALUE , minValue ) == 0 ) { throw new IllegalArgumentException ( "Max value cannot be equal to min value" ) ; } if ( Double . compare ( MAX_VALUE , minValue ) < 0 ) { maxValue = minValue ; minValue = MAX_VALUE ; } else { maxValue = MAX_VALUE ; } calculate ( ) ; validate ( ) ; calcAngleStep ( ) ; fireStateChanged ( ) ; }
Sets the maximum value that will be used for the calculation of the nice maximum vlaue for the scale .