The steps below have provided considerable progress, but I have two new problem areas:
1. Is there any way of changing the size of the LayerViewPanel to a specific size programmatically. This would be useful to re-paint the panel off screen at a required scale, without scaling the styles (fonts, line widths etc)? Currently I am limited to scaling the graphics within the printing modules, thus scaling everything. 2. I also have problems with feature labels being rotated incorrectly, and sometimes printed as though mirrored. The screen display is OK, it only happens when my printer module causes a repaint by the RenderingManager. This also happens when landscape page format is chosen. Seems to happen when the rotation angle is clockwise. I did note the reference to the group planning a printing extension (http://intevation.de/geospatial/index.en.html), but I have not been able to access their web site today. On an unrelated matter: I also note some problems with setting attributes using the Change Styles dialog - it appears that when you set one parameter, another one is unset!!!! Has anyone seen this behaviour?? Geoff Roy Sunburned Surveyor wrote: > Geoff, > > There is another team of developers working on a printing plug-in for > JUMP/OpenJUMP. Maybe you should consider working with them... > > The Sunburned Surveyor > > On 12/25/06, Sunburned Surveyor <[EMAIL PROTECTED]> wrote: > >> Geoff, >> >> Jon has given you the information you need. >> >> [1] Get the LayerViewPanel from the PlugInContext using the >> PlugInContext.getLayerViewPanel() method. >> >> [2] Then get the RenderingManager associated with the LayerViewPanel >> using the LayerViewPanel.getRenderingManager() method. >> >> [3] Then I believe you want to use the RenderingManager.copyTo() >> method, passing your panel or other "canvas" as the argument. (I don't >> think the rendering manager exposes a public paint() method. There is >> a renderAll() method, but it think it just repaints the "regular" >> LayerViewPanel already displayed in OpenJUMP/JUMP. >> >> I hope that helps. I've been studying the rendering code in OpenJUMP >> the last couple of weeks, so if you have any other questions let me >> know and I'll do my best to get you an answer. >> >> The Sunburned Surveyor >> >> On 12/25/06, Jonathan Aquino <[EMAIL PROTECTED]> wrote: >> >>> Hi Geoff - Been a while since I've been in the code, but I think there's a >>> method in LayerViewPanel or LayerViewPanel.getRenderingManager (named >>> paint() perhaps?) to which you can pass in your JPanel's GraphicsContext and >>> get it painted. >>> >>> -- >>> Jon Aquino (Victoria BC Canada) >>> http://jonathanaquino.com >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: [EMAIL PROTECTED] >>>> [mailto:[EMAIL PROTECTED] On >>>> Behalf Of Geoffrey G Roy >>>> Sent: Monday, December 25, 2006 12:25 AM >>>> To: jump-pilot-devel@lists.sourceforge.net >>>> Subject: Re: [JPP-Devel] printing >>>> >>>> >>>> I am new to openJump and still coming to terms with how it is all put >>>> together. >>>> >>>> I am currently attempting to develop a printing plugin that >>>> will print >>>> maps to scale over multiple sheets of paper.. My initial problem >>>> concerns displaying the current map display in another window >>>> for layout >>>> purposes. Once I have the plugin context (and hence the >>>> LayerViewPanel, >>>> etc), how to I get access to the "map" components so I can >>>> draw them in >>>> another JPanel using the inbuilt renderers? >>>> >>>> I realize there is probably a simple solution - but I have >>>> not yet found it. >>>> >>>> Geoff Roy >>>> >>>> -- >>>> Geoffrey G Roy >>>> Cadplan >>>> 129 Gloster Street, Subiaco WA 6008 >>>> Tel: (08) 9381 4870 Fax: (08) 9382 4459 >>>> Email: [EMAIL PROTECTED] >>>> http://www.cadplan.com.au >>>> >>>> >>>> -------------------------------------------------------------- >>>> ----------- >>>> 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 > > -- Geoffrey G Roy Cadplan 129 Gloster Street, Subiaco WA 6008 Tel: (08) 9381 4870 Fax: (08) 9382 4459 Email: [EMAIL PROTECTED] http://www.cadplan.com.au ------------------------------------------------------------------------- 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