Class MstPrintForm

  • All Implemented Interfaces:
    java.awt.print.Printable

    public class MstPrintForm
    extends java.lang.Object
    Author:
    K. Hinsch -mst1- &task Printing Frames
    • Field Summary

      • Fields inherited from interface java.awt.print.Printable

        NO_SUCH_PAGE, PAGE_EXISTS
    • Constructor Summary

      Constructors 
      Constructor Description
      MstPrintForm()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.JMenuItem getMenuPrintDefaultLogbookPrinter​(java.awt.Component cmp, MaschineMgr mgr)  
      static javax.swing.JMenuItem getMenuPrintDefaultPrinter​(java.awt.Component c)  
      int print​(java.awt.Graphics g, java.awt.print.PageFormat pf, int page)  
      void printForm​(java.awt.Component myPicture, Maschine maschine, boolean LogbookFlag, java.awt.image.BufferedImage image)  
      void printForm​(java.awt.Component myPicture, Maschine maschine, boolean logbookFlag, java.awt.image.BufferedImage image, java.lang.String text, java.lang.String title, java.lang.String author, java.lang.String kennung, boolean mail)  
      void printForm​(java.awt.Component myPicture, Maschine maschine, boolean logbookFlag, java.awt.image.BufferedImage image, java.lang.String text, java.lang.String title, java.lang.String author, java.lang.String kennung, boolean logbook, boolean mail)  
      void printToDefaultPrinterWithoutDialog​(java.awt.Component myPicture)  
      void printToLogbookWithoutDialog​(java.awt.Component myPicture, Maschine maschine)  
      void printWithoutDialog​(java.awt.Component myPicture, java.lang.String printer)  
      boolean setupJobOptions()  
      boolean setupPageFormat()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MstPrintForm

        public MstPrintForm()
    • Method Detail

      • printWithoutDialog

        public void printWithoutDialog​(java.awt.Component myPicture,
                                       java.lang.String printer)
      • printToDefaultPrinterWithoutDialog

        public void printToDefaultPrinterWithoutDialog​(java.awt.Component myPicture)
      • printToLogbookWithoutDialog

        public void printToLogbookWithoutDialog​(java.awt.Component myPicture,
                                                Maschine maschine)
      • printForm

        public void printForm​(java.awt.Component myPicture,
                              Maschine maschine,
                              boolean LogbookFlag,
                              java.awt.image.BufferedImage image)
                       throws java.awt.print.PrinterException,
                              java.io.IOException
        Throws:
        java.awt.print.PrinterException
        java.io.IOException
      • printForm

        public void printForm​(java.awt.Component myPicture,
                              Maschine maschine,
                              boolean logbookFlag,
                              java.awt.image.BufferedImage image,
                              java.lang.String text,
                              java.lang.String title,
                              java.lang.String author,
                              java.lang.String kennung,
                              boolean mail)
                       throws java.awt.print.PrinterException,
                              java.io.IOException
        Throws:
        java.awt.print.PrinterException
        java.io.IOException
      • printForm

        public void printForm​(java.awt.Component myPicture,
                              Maschine maschine,
                              boolean logbookFlag,
                              java.awt.image.BufferedImage image,
                              java.lang.String text,
                              java.lang.String title,
                              java.lang.String author,
                              java.lang.String kennung,
                              boolean logbook,
                              boolean mail)
                       throws java.awt.print.PrinterException,
                              java.io.IOException
        Throws:
        java.awt.print.PrinterException
        java.io.IOException
      • print

        public int print​(java.awt.Graphics g,
                         java.awt.print.PageFormat pf,
                         int page)
                  throws java.awt.print.PrinterException
        Specified by:
        print in interface java.awt.print.Printable
        Throws:
        java.awt.print.PrinterException
      • getMenuPrintDefaultPrinter

        public static javax.swing.JMenuItem getMenuPrintDefaultPrinter​(java.awt.Component c)
      • getMenuPrintDefaultLogbookPrinter

        public static javax.swing.JMenuItem getMenuPrintDefaultLogbookPrinter​(java.awt.Component cmp,
                                                                              MaschineMgr mgr)
      • setupPageFormat

        public boolean setupPageFormat()
      • setupJobOptions

        public boolean setupJobOptions()