Hello Alessandro,

you must implement the inteface Renderer.ContentDependendFactory:

public class MyLayerRendererFactory implements 
Renderer.ContentDependendFactory {
        ...
}

The Factory creat a new instance from the renderer.
Now you can give Jump the factory in the initialize funtion from your 
plugin-class.


public void initialize(PlugInContext context) throws Exception {
        ...
        RenderingManager.putRendererForLayerable(MyLayer.class,
                         new 
MyLayerRendererFactory(context.getWorkbenchContext()));
        ...
}

Now the Workbench load the Renderer when paint the "MyLayer" in the 
ViewPanel.

best regards

Stefan Henke
Projekt OK-GIS


[EMAIL PROTECTED] schrieb:
> Hi List,
> 
> I've a question:
> 
> I needed to implement a LayerRenderer for 
> a particular purpose in a project in which i'm involved.
> John suggested 
> me to implement it from scratch, but i wasn't able, so i did a little 
> modify to the existing LayerRender class, in order to finish my 
> project.
> The problem now is that now i need to upgrade jump api and 
> jump workbench. So i'm starting to write a LayerRenderer from scratch.
> But How can i use it without modify JUMP code?
> Should I implement my 
> configuration and workbench classes?
> Generally, how can i use in JUMP a 
> simple class that it isn't a plug-in or neither a tool, in order to 
> keep it when i need to change the JUMP version.
> 
> Hope I've been clear 
> enough
> 
> Regards
> 
> Alessandro
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to