public boolean nextIteration(){
  int widthToUse=getImageWidthToUse();
  int heightToUse=getImageHeightToUse();
  if (widthToUse <= 0 || heightToUse <= 0) {
    myImage=null;
    myCurrentImage=null;
    myAnimated=true;
    return false;
  }
  myCurrentImage=myImage.getSubimage(0,0,widthToUse,heightToUse);
  invalidate();
  return true;
}

public boolean nextIteration ( ) { int widthToUse = getImageWidthToUse ( ) ; int heightToUse = getImageHeightToUse ( ) ; if ( widthToUse <= 0 || heightToUse <= 0 ) { myImage = null ; myCurrentImage = null ; myAnimated = true ; return false ; } myCurrentImage = myImage . getSubimage ( 0 , 0 , widthToUse , heightToUse ) ; invalidate ( ) ; return true ; }
asks current panel to switch to the next drawing iteration
