O.K.
I think I've narrowed down my NullPointerException problem, but I still need
some help with a complete fix. I am able to properly render a layer when
loading a new dataset in OpenJUMP with my pluggable rendering system
enabled.
However, when I try to zoom or pan the data in the LayerViewPanel I get a
NullPointerException. I also get this exception when I start OpenJUMP and an
emptyLayerViewPanel is displayed.
By default my pluggable rendering system only supports rendering
com.vividsolutions.jump.workbench.model.Layer objects and
com.vividsolutions.jump.model.WMSLayer objects. I thought I only needed to
include renderers for these two classes by default. I'm beginning to suspect
that another object is passed to the render() method of the RenderingManager
object. This would explain the NullPointerException. My pluggable rendering
system would return null for any object that was passed to the
RenderingManager.render() method that wasn't a Layer object or WMSLayer
object.
What other types of objects are passed to the RenderingManager.render()
method? I almost think we are passing a reference to the LayerViewPanel
itself. What else would need to get painted when OpenJUMP starts and an
empty LayerViewPanel is displayed?
This problem has me really stumped. I appreciate everyone's patience with my
efforts on this. I think the benefits of a pluggable rendering system will
be worth it.
If you can tell me what other classes might get passed to the
RenderingManager.render() method when OpenJUMP first loads, or when a
viewport is panned, I would appreciate it. Or, tell me how I could find out.
:]
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel