Hi,
Now the extension is loaded OK. I will have a look on it next week but the
first look was promising. Perhaps problem was due to Java 1.6, my first
experience on it by the way.
Regards,
-Jukka-
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Geoffrey G Roy
Sent: Fri 5.1.2007 4:18
To: List for discussion of JPP development and use.
Subject: Re: [JPP-Devel] printing extension
It is possible that the jar file was created with Java 1.6, this may
have caused some problems? I have now uploaded a Java 1.5 version (vers
0.4) on the web site.
Geoff
Geoffrey G Roy wrote:
> The jar file contains all the required components to work (including
> PrinterExtension and PrinterPlugin).
>
> Are you placing it in the lib\ext folder of the OpenJump install folder?
>
>
> Geoff
>
> Larry Becker wrote:
>
>> Hi Jukka,
>>
>> Did you remember to create an Extension that loads it? As it shows on
>> page 13 of the JUMP Developers Guide:
>>
>> package example;
>> import com.vividsolutions.jump.workbench.plugin.Extension;
>> import com.vividsolutions.jump.workbench.plugin.PlugInContext;
>> public class MyExtension extends Extension {
>> public void configure(PlugInContext context) throws Exception {
>> new HelloWorldPlugIn().initialize(context);
>> }
>> }
>>
>> Note that this class must end in "Extension" in order for it to load
>> automatically.
>>
>> regards,
>> Larry Becker
>>
>> On 1/4/07, * Rahkonen Jukka* <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>
>> Hi,
>>
>> I am willing to test this extension, but how am I supposed to
>> install it? Dropping the jar to /lib/ext does not work for me, so
>> should I put it to some other place instead?
>>
>> Regards,
>>
>> -Jukka Rahkonen-
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]> on behalf
>> of Geoffrey G Roy
>> Sent: Tue 2.1.2007 5:24
>> To: List for discussion of JPP development and use.
>> Subject: Re: [JPP-Devel] printing extension
>>
>> Progress with Printing Extension:
>>
>> 1. The reshape() method is depreciated, I have tried using
>> setBounds() on the LayerViewPanel(). While the bounds are
>> changed
>> I cannot get the map to repaint (correctly) using the new
>> bounds
>> - any thoughts?
>> 2. The issues with the incorrectly rotated labels is a problem with
>> JDK1.6, the latest release (Update 1) seems to solve the
>> problem.
>> 3. I have placed a beta version of the JumpPrinter extension
>> (including the source) at http://www.cadplan.com.au for
>> review/comments/feedback. It is still rather basic - more work
>> needs to be done to add "furniture" (scales, legends, etc),
>> but I
>> would like to resolve the scaling problem outlined in (1) first.
>>
>> Other issues:
>>
>> 1. In the Change Styles dialog, if you set the Line Pattern to
>> Style
>> 1 (a dotted line), then OK, the line pattern is set, BUT
>> when you
>> re-launch the Change Styles dialog, the Line Pattern is <blank>
>> (and thus set to <default> on OK). This seems only apply to
>> Style 1.
>> 2. I not also, that if there are two extensions to load from the
>> ..lib\ext folder, only the first one loaded appears in the
>> splash
>> screen.
>>
>> Geoff
>> Sunburned Surveyor wrote:
>> > Geoff,
>> >
>> > You wrote:
>> >
>> > "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."
>> >
>> > The LayerViewPanel extends the JPanel class, which extends
>> JComponent.
>> > I think you should be able to resize the LayerViewPanel using the
>> > reshape()method that is inherited from JComponent.
>> >
>> > You wrote:
>> > "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 have no idea what might be causing this. It seems very wierd that
>> > you don't have problems on the screen, but when you try to
>> render for
>> > printing. But I'm not at all familiar with the way JUMP creates its
>> > labels. You might start by looking at the LabelStyle class. I think
>> > you will find the code that actually draws the labels in the
>> paint()
>> > method of this class.
>> >
>> >
>> > Let me know what you find. If something in the method needs to be
>> > fixed I can help you get a patch submitted to the CVS.
>> >
>> > You wrote:
>> >
>> > "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??"
>> >
>> > Do you notice this problem when you are on a specific tab or
>> panel of
>> > the change styles dialog? Can you give me a litte more detail?
>> >
>> > Thanks,
>> >
>> > The Sunburned Surveyor
>> >
>> >
>> >
>> > On 12/26/06, Geoffrey G Roy <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>> >
>> >> 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]
>> <mailto:[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]
>> <mailto:[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]>
>> >>>>>> [mailto:[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>] On
>> >>>>>> Behalf Of Geoffrey G Roy
>> >>>>>> Sent: Monday, December 25, 2006 12:25 AM
>> >>>>>> To: [email protected]
>> <mailto:[email protected]>
>> >>>>>> 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] <mailto:[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
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge>
>> >>>>>>
>> >>>>>>
>> >>>>> &CID=DEVDEV
>> >>>>> _______________________________________________
>> >>>>> Jump-pilot-devel mailing list
>> [email protected]
>> <mailto:[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
>>
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>> >>>>> _______________________________________________
>> >>>>> Jump-pilot-devel mailing list
>> >>>>> [email protected]
>> <mailto:[email protected]>
>> >>>>>
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>> <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
>>
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>> >>> _______________________________________________
>> >>> Jump-pilot-devel mailing list
>> >>> [email protected]
>> <mailto:[email protected]>
>> >>> 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] <mailto:[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
>>
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>> >> _______________________________________________
>> >> Jump-pilot-devel mailing list
>> >> [email protected]
>> <mailto:[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
>>
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>> > _______________________________________________
>> > Jump-pilot-devel mailing list
>> > [email protected]
>> <mailto:[email protected]>
>> > 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] <mailto:[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
>>
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> [email protected]
>> <mailto:[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
>>
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> [email protected]
>> <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>> <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
>>
>>
>
>
--
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
[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