code: 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();
      }
docs: Sets the maximum number of minor tickmarks we're comfortable with
  @param MAX_NO_OF_MINOR_TICKS the maxmium number of minor tickmarks for the axis