Re: [JAVA2D] Long-running rendering ...was Re: Drawing to an off screen buffer

2008-09-26 Thread Harald Kuhr
Hi Chris, You might want to take a look at the Task class from Swing Application Framework. It is a great abstraction for long-running operations in general. It's basically a fancy SwingWorker, with support for a nice publish/process-protocol, which I think you could use for your drip-

Re: [JAVA2D] Long-running rendering ...was Re: Drawing to an off screen buffer

2008-09-26 Thread java2d
If I understand well, what takes time here is the computation of the plot. Now, have you considered building some kind of representation of the plot (say, in terms of shapes) ? In this case, you would have : * A thread building an abstract representation of the data * the graphical thread whose

Re: [JAVA2D] Optimizing concentric arcs

2008-09-26 Thread java2d
Er... is StrictMath already FPU accelerated? If it is then, oh well... Its as far accalerated as the FPU produces acceptable results. For example on x86 the sin-command is used only in a special range where its known to be correct. The current Math package is really not very good.