com.softsynth.jmsl.score
Class ScorePagePrinter

java.lang.Object
  extended by 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, didkovn@mail.rockefeller.edu

Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Method Summary
 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 page
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat pf,
                 int pageIndex)
          throws java.awt.print.PrinterException
Specified by:
print in interface java.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.