net.sf.jaxodraw.io
Class JaxoPrint
java.lang.Object
net.sf.jaxodraw.io.JaxoPrint
- All Implemented Interfaces:
- java.awt.print.Printable
public class JaxoPrint
- extends java.lang.Object
- implements java.awt.print.Printable
Responsible for printing directly to a printer.
- Since:
- 2.0
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Method Summary |
void |
print(java.awt.Component parent,
JaxoGraph newGraph,
java.awt.Dimension d,
java.lang.String name)
The method to be called from the printing menu. |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
The actual printing routine. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaxoPrint
public JaxoPrint()
print
public final int print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
- The actual printing routine.
- Specified by:
print
in interface java.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(java.awt.Component parent,
JaxoGraph newGraph,
java.awt.Dimension d,
java.lang.String name)
- The method to be called from the printing menu.
- Parameters:
parent
- parent Component for dialogs.newGraph
- The JaxoGraph to be printed.d
- The current dimension of the canvas.name
- Name for the job
Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.