I've done a little digging in the code and was able to track down the
changes made by Ole to allow "pluggable" renderers in OpenJUMP. He
basically changed to createRenderer() method of the RenderingMananger
class. It now looks up the appropriate Renderer to create for an
object based on its class name.

I have attached files showing the code for the createRenderer() method
in JUMP and OpenJUMP. I have also attached a text file with 2 new
methods added to the RenderingManager class by Ole to support this
functionality, the getRenderFactoryForLayerable() method and the
putRendererForLayerable() method.

I haven't gone over Ole's additions word by word, but I think I have a
pretty good understanding of what is going on here.

If Vivid Solutions is interested in supporting plugabble renderers I
can create a submission for the JUMP CVS for David or another Vivid
developer to review. I can even make some slight revisions to Ole's
code for Vivid's JUMP if some small changes need to be made.

The Sunburned Surveyor

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to