Java2D User to Device Space Mapping Very Slow
I'm drawing about a 1000 lines, sometimes much more, using Graphics' drawLine function.
To scale them and shift their position I use Graphics2D's translate() and scale() functions.
But drawing and redrawing these lines take awfully long time.
Now, if do the mapping of the coordinates myself as opposed to using translate and scale functions, the time it takes to draw even a million lines takes a fraction of a second as opposed to 5 or more.
Any ideas?

