Introduce invalidate IPlotPainter method.

Handle adapter and painter changes.