}
private void paintAndSaveFrames() throws InterruptedException {
Box afterRootBox = treeDiff.getAfter().toBox(0L, COLOUR_SCHEME);
afterRootBox.setupInnerRectangle(FONT_SIZE);
Offset windowWithoutLabel = getWindowWithoutLabel(afterRootBox);
Box beforeRootBox = getBeforeRootBox(windowWithoutLabel);
afterRootBox.setupOuterRectangle(windowWithoutLabel);
afterRootBox.calcRootOffset();
int animationStart = initialFrameNumber + START_NUMBER;
int animationEnd = animationStart + TRANSITION_NUMBER;