Hi Johan,
I'd check your size of your MapBean against the size of the print area.
I think the MapBeanPrinter tries to scale the map to fit the page, at
least in one dimension, and you might be seeing an effect of the
scaling. I'd make the map window bigger before printing to see if that
helps, and then at least you would know you're on the right track.
You might want to modify the MapBeanPrinter to call the Layers'
renderDataForProjection() method instead, creating a new Projection for
that method call that better fits the size of the page you are printing
to by setting the height and width of the projection. You might have
to play around with the scaling algorithm to make that happen
correctly, though.
Hope this helps,
Don
On Apr 16, 2004, at 9:45 AM, Johan Duflost wrote:
> Hello all ,
>
> I use the jnlp version of openmap and I try to print the mapbean and
> it works but the quality of the printed image is very bad and
> unusable. I use MapBeanPrinter in a Layer. I simply invoke printMap on
> the mapbean which is returned by the getAncestorOfClass method of
> SwingUtilities.
>
> Printing is a very important feature for end users. Do you know where
> I made a mistake ?
>
> Thank you in advance.
>
> Best regards,
>
> Johan Duflost
>
> Johan Duflost
> Analyst Programmer
> Belgian Biodiversity Information Facility (BeBIF)
> Universite Libre de Bruxelles (ULB)
> Boulevard du Triomphe - Campus de la Plaine
> B-1050 Bruxelles
> 02 650 57 51
> http://gis.bebif.be
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Fri Apr 16 17:30:16 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT