I think I've finally found a hack that will allow pluggable renderers in
OpenJUMP. I've got the source code and some initial developer documentation
completed.
In short a plug-in developer will need to do the following tasks to add
custom rendering behavior to OpenJUMP without the need for compilation of
the core:
[1] IDesign a class which implements the Renderer interface and which
implements their custom rendering behavior.
[2] Create a class which implements the IRendererFactoryTool interface and
returns an instance of their custom Renderer class.
[3] Place a JAR file with the class in the OpenJUMP's lib folder, or another
folder on the Java classpath used by OpenJUMP.
[4] Add the fully qualified class name of the class that implements the
IRendererFactoryTool interface to the "irendererfactorytools.txt" file in
the /lib/ext/surveyos/pluggable_renderers.
After these steps have been completed the custom renderer will be
automatically used in every RenderingManager created by OpenJUMP. This
system has been designed with implementations that provide the "default"
rendering that already exists in OpenJUMP for the Layer and WMSLayer
classes. The default rendering for these classes can be overridden by
plug-in developers.
I will now start work on my plug-in dependency system for OpenJUMP. After
this is completed I will implement a plug-in that adds a pluggable renderer
for "free-form" text labels in OpenJUMP. This will allow me to test and work
out the kinks in both the plug-in dependency and the pluggable rendering
systems.
After testing and revision I will put together a proposal to add these
changes to OpenJUMP's core. In the meantime I will release them as part of
OpenJUMP-Ex so developers can take them for a spin.
I've temporarily put the source code and initial developer documentation on
my website. After some testing I'll release all of the source code and final
documentation on the SurveyOS SourceForge web site.
Please let me know if you have any questions or comments.
Thanks,
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