public void calcMajorTick(){
  majorTick=10;
  majorTickCount=(int)Math.round(log10(maxTick / minTick)) + 1;
}

public void calcMajorTick ( ) { majorTick = 10 ; majorTickCount = ( int ) Math . round ( log10 ( maxTick / minTick ) ) + 1 ; }
calculate the optimum major tick distance .
