Hi Johan,
If I'm right, I think I was at the origin of the MapBeanPrinter class.
I've not the code here right now, but if my memory is correct, the only
think the class does is to use the java classic printer API's PrinterJob
and to rescale the image in order to fit it on the page.
Did you try to use another printer and/or driver?
On which platform are you working? I've to confess that I only tested it
on my Linux box...
Please feel free to contact me directly, as it seems that we are located
in the same small country :-)
Best regards
-- Prof Dr Bart Jourquin F.U.Ca.M. - G.T.M. Chaussée de Binche, 151a B7000 Mons Belgium Tel. : +32 65 323293 Fax. : +32 65 315691 http://www.fucam.ac.be/jourquin Le jeu 29/04/2004 à 19:03, Don Dietrick a écrit : > I'm afraid I don't have an answer for you, I've not seen that problem. > > - Don > > On Apr 29, 2004, at 12:54 PM, Johan Duflost wrote: > > > > > Hi Don, > > > > Excuse me for this late answer. Thank you for your help but I don't > > think > > it's a scale problem. In fact, the mapbean is printed with the > > complementary > > colors ! Strange, isn't it ? The black lines are rendered white, the > > red > > points are rendered green, ... > > > > I hope you will be able to help me again ! > > > > Johan > > > > > > ----- Original Message ----- > > From: "Don Dietrick" <dietrick@bbn.com> > > To: "Johan Duflost" <johan.duflost@belgacom.net> > > Cc: <openmap-users@bbn.com> > > Sent: Friday, April 16, 2004 11:27 PM > > Subject: Re: [OpenMap Users] printing with openmap > > > > > >> 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"] > > > > -- > [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"]
-- [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"]
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT