Package com.softsynth.jmsl.score
Class ScorePagePrinter
java.lang.Object
com.softsynth.jmsl.score.ScorePagePrinter
- All Implemented Interfaces:
java.awt.print.Printable
public class ScorePagePrinter
extends java.lang.Object
implements java.awt.print.Printable
- Author:
- Nick Didkovsky, nick@didkovsky.com
-
Field Summary
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
-
Method Summary
Modifier and Type Method Description int
print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
static void
setPrintPageNumbers(boolean flag)
If true, print page number at bottom of every pageMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
print
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex) throws java.awt.print.PrinterException- Specified by:
print
in interfacejava.awt.print.Printable
- Throws:
java.awt.print.PrinterException
-
setPrintPageNumbers
public static void setPrintPageNumbers(boolean flag)If true, print page number at bottom of every page- Parameters:
printPageNumbers
- The printPageNumbers to set.
-