java.lang.Object
simula.runtime.RTS_PageWriter.Sheet
- All Implemented Interfaces:
Printable
- Enclosing class:
RTS_PageWriter
Utility class to represent a printable sheet.
-
Field Summary
Modifier and TypeFieldDescriptionThe set of linesint
The page numberprivate RTS_PageWriter
The printer.int
The sheet numberFields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
-
Constructor Summary
ConstructorDescriptionSheet
(RTS_PageWriter printer, int pageNumber, int sheetNumber) Create a new Sheet. -
Method Summary
-
Field Details
-
printer
The printer. -
pageNumber
public int pageNumberThe page number -
sheetNumber
public int sheetNumberThe sheet number -
lines
The set of lines
-
-
Constructor Details
-
Sheet
Create a new Sheet.- Parameters:
printer
- the printerpageNumber
- the page numbersheetNumber
- the sheet number
-
-
Method Details
-
nLines
public int nLines()Returns the number of lines.- Returns:
- the number of lines
-
addLine
Add a line of text to this Sheet.- Parameters:
text
- the text to add
-
print
- Specified by:
print
in interfacePrintable
- Throws:
PrinterException
-