[Date Prev][Date Next][Index][Thread] [SGT Mail Archive] [SGT Main Page]

printing for dummies



*************************************************
Message from the sgt mail list.
*************************************************

Hi you all,

I derived a JPlotLayout and add a method to print the graph :

    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(this, printJob.defaultPage());
    if ( printJob.printDialog() ) {
      try {
        printJob.print();
      }
      catch (PrinterException ex) {
        ex.printStackTrace();
      }
    }

Although it does print something, only the center part of the graph is
printed, the Y axis is not printed, the title and legend are not printed
either. Seems a clipping occur, but turning it to off doesn't change
anything. I also tried to adjust the printer margin, no change.

Anybody have an idea? I use SGT 3.0 and JRE 1.4.

Regards,
Patrick Delarge
http://www.delarge.be


*************************************************
To remove yourself from this mailing list,
send mail to <Majordomo@epic.noaa.gov> with
"unsubscribe sgt" in the message body.