Larry and OpenJUMP Developers,

I think the problem may be in the LayerViewPanel.layerChanged(LayerEvent)
method. This method calls the RenderingManager.render() method with a
Layerable object as the argument. I think I need to modify my code to
determine the class that is implementing the layerable interface. I'll need
to give some more thought to this.

Thanks for the suggestion in Eclipse.

The Sunburned Surveyor

On 4/12/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:

Thanks Larry. I'll try that.

The Sunburned Surveyor


 On 4/12/07, Larry Becker <[EMAIL PROTECTED]> wrote:
>
> In Eclipse, just highlight the reference you are interested in (in this
> case render), right click and choose References->Project.  This will display
> all of the places in the project that reference your highlighted text in a
> Search panel that you can arrow through. It understands Java, so it is much
> better than simply doing a word search.
>
> Larry
>
>  On 4/12/07, Sunburned Surveyor < [EMAIL PROTECTED]> wrote:
>
> >  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
> >
> >
>
>
> --
> http://amusingprogrammer.blogspot.com/
>
> -------------------------------------------------------------------------
> 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
>
>

-------------------------------------------------------------------------
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

Reply via email to