The contentIDToLowRendererFactoryMap contains renderers that paint below the layers e.g. gridlines.
The contentIDToHighRendererFactoryMap contains renderers that pain above the layers e.g. scale bar, selection handles, etc. This code just grabs the renderer from one collection or the other and returns it. For example, if contentID is SELECTION_HANDLES, it will return the renderer for selection handles (from the second collection). Jon > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Stefan Steiniger > Sent: Wednesday, December 13, 2006 11:42 AM > To: List for discussion of JPP development and use. > Subject: Re: [JPP-Devel] Question on the > RenderingManager.createRenderer() method... > > > i guess the only ones who knows why they did that are Jon and Martin > > stefan > > Sunburned Surveyor schrieb: > > I working on the patch to add pluggable renderers to Vivid's JUMP, > > based on code that is already in OpenJUMP. Most of my work revolves > > around the createRenderer() method of the RenderingMananger class. > > This method contains the following Java statements: > > > > > > if (contentIDToLowRendererFactoryMap.containsKey(contentID)) { > > return ((Renderer.Factory) > contentIDToLowRendererFactoryMap > > .get(contentID)).create(); > > } > > if > (contentIDToHighRendererFactoryMap.containsKey(contentID)) { > > return ((Renderer.Factory) > contentIDToHighRendererFactoryMap > > .get(contentID)).create(); > > } > > > > Can someone help me understand the purpose of this code? > > > > I appreciate the help. > > > > 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 > > ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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