japlot.jaxodraw
Class JaxoPrint
- java.lang.Object
-
- japlot.jaxodraw.JaxoPrint
-
- All Implemented Interfaces:
- java.awt.print.Printable
public class JaxoPrint extends java.lang.Object implements java.awt.print.PrintableResponsible for printing directly to a printer.
-
-
Constructor Summary
Constructors Constructor and Description JaxoPrint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intprint(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)The actual printing routine.voidprint(JaxoGraph newGraph, java.awt.Dimension d)The method to be called from the printing menu.voidsetCurrentTab(java.lang.String newTab)Sets the currentTab property.
-
-
-
Method Detail
-
print
public final int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)The actual printing routine.- Specified by:
printin interfacejava.awt.print.Printable- Parameters:
g- The specified graphics context.pf- The specified page format.pageIndex- The specified page index.- Returns:
- Either Printable.PAGE_EXISTS or Printable.NO_SUCH_PAGE.
-
print
public final void print(JaxoGraph newGraph, java.awt.Dimension d)
The method to be called from the printing menu.- Parameters:
newGraph- The JaxoGraph to be printed.d- The current dimension of the canvas.
-
setCurrentTab
public final void setCurrentTab(java.lang.String newTab)
Sets the currentTab property.- Parameters:
newTab- The name of the current tab.
-
-
DMelt 3.0 © DataMelt by jWork.ORG