Package hsa

Class SavePrint

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

    public class SavePrint
    extends java.lang.Object
    implements java.awt.print.Printable
    • Field Summary

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

        NO_SUCH_PAGE, PAGE_EXISTS
    • Constructor Summary

      Constructors 
      Constructor Description
      SavePrint​(hsa.DrawGraphics savePrintObj, java.awt.Component componentObj, int xSize, int ySize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int print​(java.awt.Graphics g, java.awt.print.PageFormat format, int pageIndex)  
      void saveToFile​(java.lang.String fileName)  
      • Methods inherited from class java.lang.Object

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

      • SavePrint

        public SavePrint​(hsa.DrawGraphics savePrintObj,
                         java.awt.Component componentObj,
                         int xSize,
                         int ySize)
    • Method Detail

      • saveToFile

        public void saveToFile​(java.lang.String fileName)
      • print

        public int print​(java.awt.Graphics g,
                         java.awt.print.PageFormat format,
                         int pageIndex)
        Specified by:
        print in interface java.awt.print.Printable