private void fireUpdated ( Object control ) { if ( control . equals ( minSpinner ) ) { int minY = ( ( Integer ) minSpinner . getValue ( ) ) . intValue ( ) ; if ( minY < panel . getWorldMaxY ( ) ) { panel . setWorldMinY ( minY ) ; panel . makeSureCurveFits ( ) ; panel . repaint ( ) ; } else { minSpinner . setValue ( new Integer ( ( int ) panel . getWorldMinY ( ) ) ) ; } } else if ( control . equals ( maxSpinner ) ) { int maxY = ( ( Integer ) maxSpinner . getValue ( ) ) . intValue ( ) ; if ( maxY > panel . getWorldMinY ( ) ) { panel . setWorldMaxY ( maxY ) ; panel . makeSureCurveFits ( ) ; panel . repaint ( ) ; } else { maxSpinner . setValue ( new Integer ( ( int ) panel . getWorldMaxY ( ) ) ) ; } } }
Fire a notification that the panel has been changed