| java.lang.Object edu.rice.cs.drjava.model.print.PagePrinter
PagePrinter | public class PagePrinter implements Printable(Code) | | Class which represents a Printable object for a given
page of the print job.
version: $Id: PagePrinter.java 4255 2007-08-28 19:17:37Z mgricken $ |
Constructor Summary | |
public | PagePrinter(int page, String fileName, DrJavaBook parent) Constructs a PagePrinter for a given page number (which is ignored!), a
given filename, and parent. |
Method Summary | |
public void | add(TextLayout text, TextLayout lineNumber) Method which adds a TextLayout (and lineNumber) to this
page. | public int | print(Graphics graphics, PageFormat format, int pageIndex) Method to support the Printable interface. |
PagePrinter | public PagePrinter(int page, String fileName, DrJavaBook parent)(Code) | | Constructs a PagePrinter for a given page number (which is ignored!), a
given filename, and parent.
|
add | public void add(TextLayout text, TextLayout lineNumber)(Code) | | Method which adds a TextLayout (and lineNumber) to this
page. This is designed to represent a physical line of
text to be printed on the document (as opposed to a
real line number.
Parameters: text - The text of the given line. Parameters: lineNumber - The Text to write in the lineNumber location. |
print | public int print(Graphics graphics, PageFormat format, int pageIndex)(Code) | | Method to support the Printable interface. It prints the
contents of this PagePrinter onto the Graphics object.
Parameters: graphics - The Graphics object to print to. Parameters: format - The PageFormat to use. Parameters: pageIndex - The page number to print. |
|
|