com.ibm.apl2
Class Apl2print

java.lang.Object
  extended bycom.ibm.apl2.Apl2print
All Implemented Interfaces:
java.awt.print.Printable

public class Apl2print
extends java.lang.Object
implements java.awt.print.Printable

Java object class used to print from APL2


Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
Apl2print(Apl2interp Master, java.lang.String Function)
          Construct an object whose print method calls APL2.
 
Method Summary
 int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageformat, int page)
          Implementation of Printable interface's print method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Apl2print

public Apl2print(Apl2interp Master,
                 java.lang.String Function)
Construct an object whose print method calls APL2.

Parameters:
Master - APL2 interpreter print method should call
Function - Name of APL2 function that print method should call
Method Detail

print

public int print(java.awt.Graphics graphics,
                 java.awt.print.PageFormat pageformat,
                 int page)
          throws java.awt.print.PrinterException
Implementation of Printable interface's print method.

Specified by:
print in interface java.awt.print.Printable
Parameters:
graphics - the context into which the page is drawn
pageformat - the size and orientation of the page being drawn
page - the zero based index of the page to be drawn
Throws:
java.awt.print.PrinterException