While developing quite complex java2d applications I’ve faced a number of times the problem to save the current Graphics state (clip,transform,paint,etc.) and restore it later.
The current Java2D implementation forces me to make copies of the objects I’m going to modify and then re-set them in the graphics context later. I suppose this approach is both memory consuming and quite expensive in terms of performance.
I think that the Push/Pop approach would be of great help in order to keep code clean and fast. I think it would also be helpful in order to optimize the new OGL pipeline.
Mik