public void setMaxNoOfMinorTicks ( final int MAX_NO_OF_MINOR_TICKS ) { if ( MAX_NO_OF_MINOR_TICKS > 10 ) { this . maxNoOfMinorTicks = 10 ; } else if ( MAX_NO_OF_MINOR_TICKS < 1 ) { this . maxNoOfMinorTicks = 1 ; } else { this . maxNoOfMinorTicks = MAX_NO_OF_MINOR_TICKS ; } calculate ( ) ; fireStateChanged ( ) ; }
Sets the maximum number of minor tickmarks we re comfortable with