public void setStepWithAnimationSpeed(int step, int fps) {
    int currentFramesPerStep = artist.getFramesPerStep();

    artist.setFramesPerStep(fps);
    artist.setStepNum(step);

    repaint();

    artist.setFramesPerStep(currentFramesPerStep);
  }
 /**
  * Set the FPS (Frames per STEP) of the animation
  *
  * @param fps
  */
 public void setAnimationTiming(int fps) {
   artist.setFramesPerStep(fps);
   updated = true;
 }