|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaxodraw.io.JaxoPrint
public class JaxoPrint
Responsible for printing directly to a printer.
Field Summary |
---|
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
---|---|
JaxoPrint()
Constructor. |
|
JaxoPrint(JaxoGraph graph)
Constructor. |
Method Summary | |
---|---|
void |
print(Component parent,
JaxoGraph newGraph,
Dimension d,
String name)
Deprecated. use print(Component,JaxoGraph,String) instead. |
void |
print(Component parent,
JaxoGraph graph,
String name)
The method to be called from the printing menu. |
void |
print(Component parent,
String name)
Print the current graph. |
int |
print(Graphics g,
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 |
Constructor Detail |
---|
public JaxoPrint(JaxoGraph graph)
graph
- the graph to print. Not null.public JaxoPrint()
Method Detail |
---|
public final int print(Graphics g, PageFormat pf, int pageIndex)
print
in interface Printable
g
- The specified graphics context.pf
- The specified page format.pageIndex
- The specified page index.
public final void print(Component parent, JaxoGraph graph, String name)
parent
- parent Component for dialogs.graph
- The JaxoGraph to be printed. Not null.name
- Name for the job.public final void print(Component parent, String name)
parent
- parent Component for dialogs.name
- Name for the job.@Deprecated public final void print(Component parent, JaxoGraph newGraph, Dimension d, 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |