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

Reply via email to