jdk/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java
changeset 32865 f9cb6e427f9e
parent 32491 7b3783f9484d
child 34403 b4ca8477370e
equal deleted inserted replaced
32864:2a338536e642 32865:f9cb6e427f9e
   333 
   333 
   334     /**
   334     /**
   335      * Returns the resolution in dots per inch across the width
   335      * Returns the resolution in dots per inch across the width
   336      * of the page.
   336      * of the page.
   337      */
   337      */
   338     abstract protected double getXRes();
   338     protected abstract double getXRes();
   339 
   339 
   340     /**
   340     /**
   341      * Returns the resolution in dots per inch down the height
   341      * Returns the resolution in dots per inch down the height
   342      * of the page.
   342      * of the page.
   343      */
   343      */
   344     abstract protected double getYRes();
   344     protected abstract double getYRes();
   345 
   345 
   346     /**
   346     /**
   347      * Must be obtained from the current printer.
   347      * Must be obtained from the current printer.
   348      * Value is in device pixels.
   348      * Value is in device pixels.
   349      * Not adjusted for orientation of the paper.
   349      * Not adjusted for orientation of the paper.
   350      */
   350      */
   351     abstract protected double getPhysicalPrintableX(Paper p);
   351     protected abstract double getPhysicalPrintableX(Paper p);
   352 
   352 
   353     /**
   353     /**
   354      * Must be obtained from the current printer.
   354      * Must be obtained from the current printer.
   355      * Value is in device pixels.
   355      * Value is in device pixels.
   356      * Not adjusted for orientation of the paper.
   356      * Not adjusted for orientation of the paper.
   357      */
   357      */
   358     abstract protected double getPhysicalPrintableY(Paper p);
   358     protected abstract double getPhysicalPrintableY(Paper p);
   359 
   359 
   360     /**
   360     /**
   361      * Must be obtained from the current printer.
   361      * Must be obtained from the current printer.
   362      * Value is in device pixels.
   362      * Value is in device pixels.
   363      * Not adjusted for orientation of the paper.
   363      * Not adjusted for orientation of the paper.
   364      */
   364      */
   365     abstract protected double getPhysicalPrintableWidth(Paper p);
   365     protected abstract double getPhysicalPrintableWidth(Paper p);
   366 
   366 
   367     /**
   367     /**
   368      * Must be obtained from the current printer.
   368      * Must be obtained from the current printer.
   369      * Value is in device pixels.
   369      * Value is in device pixels.
   370      * Not adjusted for orientation of the paper.
   370      * Not adjusted for orientation of the paper.
   371      */
   371      */
   372     abstract protected double getPhysicalPrintableHeight(Paper p);
   372     protected abstract double getPhysicalPrintableHeight(Paper p);
   373 
   373 
   374     /**
   374     /**
   375      * Must be obtained from the current printer.
   375      * Must be obtained from the current printer.
   376      * Value is in device pixels.
   376      * Value is in device pixels.
   377      * Not adjusted for orientation of the paper.
   377      * Not adjusted for orientation of the paper.
   378      */
   378      */
   379     abstract protected double getPhysicalPageWidth(Paper p);
   379     protected abstract double getPhysicalPageWidth(Paper p);
   380 
   380 
   381     /**
   381     /**
   382      * Must be obtained from the current printer.
   382      * Must be obtained from the current printer.
   383      * Value is in device pixels.
   383      * Value is in device pixels.
   384      * Not adjusted for orientation of the paper.
   384      * Not adjusted for orientation of the paper.
   385      */
   385      */
   386     abstract protected double getPhysicalPageHeight(Paper p);
   386     protected abstract double getPhysicalPageHeight(Paper p);
   387 
   387 
   388     /**
   388     /**
   389      * Begin a new page.
   389      * Begin a new page.
   390      */
   390      */
   391     abstract protected void startPage(PageFormat format, Printable painter,
   391     protected abstract void startPage(PageFormat format, Printable painter,
   392                                       int index, boolean paperChanged)
   392                                       int index, boolean paperChanged)
   393         throws PrinterException;
   393         throws PrinterException;
   394 
   394 
   395     /**
   395     /**
   396      * End a page.
   396      * End a page.
   397      */
   397      */
   398     abstract protected void endPage(PageFormat format, Printable painter,
   398     protected abstract void endPage(PageFormat format, Printable painter,
   399                                     int index)
   399                                     int index)
   400         throws PrinterException;
   400         throws PrinterException;
   401 
   401 
   402     /**
   402     /**
   403      * Prints the contents of the array of ints, 'data'
   403      * Prints the contents of the array of ints, 'data'
   404      * to the current page. The band is placed at the
   404      * to the current page. The band is placed at the
   405      * location (x, y) in device coordinates on the
   405      * location (x, y) in device coordinates on the
   406      * page. The width and height of the band is
   406      * page. The width and height of the band is
   407      * specified by the caller.
   407      * specified by the caller.
   408      */
   408      */
   409     abstract protected void printBand(byte[] data, int x, int y,
   409     protected abstract void printBand(byte[] data, int x, int y,
   410                                       int width, int height)
   410                                       int width, int height)
   411         throws PrinterException;
   411         throws PrinterException;
   412 
   412 
   413 /* Instance Methods */
   413 /* Instance Methods */
   414 
   414