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