private void initIndeterminateDefaults(){
  initRepaintInterval();
  initCycleTime();
  if (repaintInterval <= 0) {
    repaintInterval=100;
  }
  if (repaintInterval > cycleTime) {
    cycleTime=repaintInterval * 20;
  }
 else {
    int factor=(int)Math.ceil(((double)cycleTime) / ((double)repaintInterval * 2));
    cycleTime=repaintInterval * factor * 2;
  }
}

private void initIndeterminateDefaults ( ) { initRepaintInterval ( ) ; initCycleTime ( ) ; if ( repaintInterval <= 0 ) { repaintInterval = 100 ; } if ( repaintInterval > cycleTime ) { cycleTime = repaintInterval * 20 ; } else { int factor = ( int ) Math . ceil ( ( ( double ) cycleTime ) / ( ( double ) repaintInterval * 2 ) ) ; cycleTime = repaintInterval * factor * 2 ; } }
initialize cycletime , repaintinterval , numframes , animationindex .
