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?

[489 byte] By [minimikea] at [2007-11-27 5:36:01]
# 1
well I don't think translate will slow things down, but scale will of course.scale means more than just chaning coordinates and you'll most likely fall out of fast-paths onto slower ones.lg Clemens
linuxhippya at 2007-7-12 15:05:57 > top of Java-index,Security,Cryptography...
# 2
Can you post a sample to see this.It looks kind of strange!
khangharotha at 2007-7-12 15:05:57 > top of Java-index,Security,Cryptography...