private void prepareForRepaint(){
  textPanel.replaceTextRange(movesTextStart,textPanel.getCharCount() - movesTextStart,"");
  moveNodes.clear();
  moveNodesLengths.clear();
}

private void prepareForRepaint ( ) { textPanel . replaceTextRange ( movesTextStart , textPanel . getCharCount ( ) - movesTextStart , "" ) ; moveNodes . clear ( ) ; moveNodesLengths . clear ( ) ; }
clear all info about painted object and prepare for a new repaint operation .
