Class WAppPrintPreview.Pages

java.lang.Object
hipp.com.wappedidpadpro2.print.WAppPrintPreview.Pages
All Implemented Interfaces:
java.awt.print.Printable
Enclosing class:
WAppPrintPreview

class WAppPrintPreview.Pages
extends java.lang.Object
implements java.awt.print.Printable
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.awt.font.TextLayout layout  
    private java.lang.String message  
    private float scaleX  
    private float scaleY  
    private float width  

    Fields inherited from interface java.awt.print.Printable

    NO_SUCH_PAGE, PAGE_EXISTS
  • Constructor Summary

    Constructors 
    Constructor Description
    Pages()  
  • Method Summary

    Modifier and Type Method Description
    void drawPage​(java.awt.Graphics2D g2, java.awt.print.PageFormat pf, int page)  
    int getPageCount​(java.awt.Graphics2D g2, java.awt.print.PageFormat pf)  
    int print​(java.awt.Graphics g, java.awt.print.PageFormat pf, int page)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • message

      private java.lang.String message
    • scaleX

      private float scaleX
    • scaleY

      private float scaleY
    • width

      private float width
    • layout

      private java.awt.font.TextLayout layout
  • Constructor Details

  • Method Details

    • getPageCount

      public int getPageCount​(java.awt.Graphics2D g2, java.awt.print.PageFormat pf)
    • 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
    • drawPage

      public void drawPage​(java.awt.Graphics2D g2, java.awt.print.PageFormat pf, int page) throws java.awt.print.PrinterException
      Throws:
      java.awt.print.PrinterException