I have completed the RenderingManager modifications.  It now supports
three modes of interactivity: interactive, single thread queue, or
execute on event thread.  It defaults to interactive which operates
just as it always did.

The execute on event thread mode blocks the GUI, and the single thread
queue renders all layers sequentially on the default renderer thread
queue.

I have also added the capability to request a call back in the form of
a Runnable when rendering is complete.  The definition of complete
varies with the mode of interactivity.

I have tested the new code in interactive mode with the
ZoomToSelectedItemsPlugIn, and in execute on event thread mode on my
LayerPrinter2 plug-in which generates high resolution images.
Everything seems to be working fine.  I hope that others can get some
time to test the modifications.

regards,
Larry Becker

On 6/26/07, Larry Becker <[EMAIL PROTECTED]> wrote:
Sascha,

  Thanks for checking it out.  No rush.

>   I'm still a bit concerned that the hole expensive rendering is done
>inside the event dispatch thread. I have to test if this may lead to
>trouble elsewhere.

I also got a little concerned about the effect of GUI blocking on
ZoomToSelectedItemsPlugIn so I tested some really slow server layers.
It took about 30 seconds for the zoom and flash to occur.  Clearly,
this is a case of the cure being worse than the disease.  Flashing out
of order or not flashing at all seems pretty trivial when you are
waiting for something to happen.  Since the GUI is frozen, the user
could panic and kill the application.

It would seem that my solution need some more tweaking.

I'll post again after I've made some modifications to change to a
non-blocking notifying version.

regards,
Larry Becker

On 6/25/07, Sascha L. Teichmann <[EMAIL PROTECTED]> wrote:
> Larry,
>
> Larry Becker schrieb:
> > [...]
> > I'm hoping someone will verify that this solution works for printing
> > plugins.
>
> I will implement a path for the Print/Layout plug-in to be able
> to test it. I'm quiet a bit busy at the moment so results will only
> be available in two days.
>
> > [...]
>
> Regards,
>   Sascha
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>


--
http://amusingprogrammer.blogspot.com/



--
http://amusingprogrammer.blogspot.com/

Attachment: LayerPrinter2.java
Description: Binary data

Attachment: RenderingManager.java
Description: Binary data

Attachment: ZoomToSelectedItemsPlugIn.java
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to