I have a DocumentWindow whose contents is dynamically drawn via paint(). whenever i resize the window, paint() is called every frame. as i'm dealing with a lot of std::vector<>'s being cleared and recalculated, it would be a big improvement to performance if I could make the window not recalculate while it's being resized. I noticed the resizeBegin() and resizeEnd() methods in the ComponentBoundsContainer class, so i'm wondering if there's a way to make some code not be run until the window is finished being resized. If so, what is the proper approach? since any call to resized() results in a subsequent call to paint(), I can't figure out how to get around this. Any help would be appreciated.
to summarize, I'm hoping to not do any calculations until ResizableWindow has finished being resized, once that lower right hand corner is grabbed and dragged, and only then should my DocumentWindow call paint() and refresh.