Class PrintPreviewModel

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class PrintPreviewModel
    extends java.awt.print.PageFormat
    Data model for the print preview pane, contains setters and getters for the print preview display.
    • Constructor Detail

      • PrintPreviewModel

        public PrintPreviewModel()
      • PrintPreviewModel

        public PrintPreviewModel​(View view,
                                 Buffer buffer,
                                 javax.print.PrintService printService,
                                 javax.print.attribute.PrintRequestAttributeSet attributes,
                                 java.util.HashMap<java.lang.Integer,​Range> pageRanges)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getPageNumber

        public int getPageNumber()
      • setPageNumber

        public void setPageNumber​(int number)
      • getPageRanges

        public java.util.HashMap<java.lang.Integer,​Range> getPageRanges()
      • setPageRanges

        public void setPageRanges​(java.util.HashMap<java.lang.Integer,​Range> pageRanges)
      • setPrintRangeType

        public void setPrintRangeType​(PrintRangeType type)
      • getPrintService

        public javax.print.PrintService getPrintService()
        Returns the value of printService.
      • setPrintService

        public void setPrintService​(javax.print.PrintService printService)
        Sets the value of printService.
        Parameters:
        printService - The value to assign printService.
      • getAttributes

        public javax.print.attribute.PrintRequestAttributeSet getAttributes()
        Returns the value of attributes.
      • setAttributes

        public void setAttributes​(javax.print.attribute.PrintRequestAttributeSet attributes)
        Sets the value of attributes.
        Parameters:
        attributes - The value to assign attributes.
      • getView

        public View getView()
        Returns the value of view.
      • setView

        public void setView​(View view)
        Sets the value of view.
        Parameters:
        view - The value to assign view.
      • getBuffer

        public Buffer getBuffer()
        Returns the value of buffer.
      • setBuffer

        public void setBuffer​(Buffer buffer)
        Sets the value of buffer.
        Parameters:
        buffer - The value to assign buffer.
      • setGraphics

        public void setGraphics​(java.awt.Graphics g)
      • getGraphics

        public java.awt.Graphics getGraphics()
      • setZoomLevel

        public void setZoomLevel​(float level)
      • getZoomLevel

        public float getZoomLevel()