public class JaxoPrint
extends java.lang.Object
implements java.awt.print.Printable
| Constructor and Description |
|---|
JaxoPrint()
Constructor.
|
JaxoPrint(JaxoGraph graph)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
print(java.awt.Component parent,
JaxoGraph newGraph,
java.awt.Dimension d,
java.lang.String name)
Deprecated.
use
print(Component,JaxoGraph,String) instead. |
void |
print(java.awt.Component parent,
JaxoGraph graph,
java.lang.String name)
The method to be called from the printing menu.
|
void |
print(java.awt.Component parent,
java.lang.String name)
Print the current graph.
|
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
The actual printing routine.
|
public JaxoPrint(JaxoGraph graph)
graph - the graph to print. Not null.public JaxoPrint()
public final int print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
print in interface java.awt.print.Printableg - The specified graphics context.pf - The specified page format.pageIndex - The specified page index.public final void print(java.awt.Component parent,
JaxoGraph graph,
java.lang.String name)
parent - parent Component for dialogs.graph - The JaxoGraph to be printed. Not null.name - Name for the job.public final void print(java.awt.Component parent,
java.lang.String name)
parent - parent Component for dialogs.name - Name for the job.@Deprecated
public final void print(java.awt.Component parent,
JaxoGraph newGraph,
java.awt.Dimension d,
java.lang.String name)
print(Component,JaxoGraph,String) instead.parent - parent Component for dialogs.newGraph - The JaxoGraph to be printed.d - The current dimension of the canvas. This is not used!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.