Package net.sf.jaxodraw.io
Class JaxoPrint
java.lang.Object
net.sf.jaxodraw.io.JaxoPrint
- All Implemented Interfaces:
Printable
Responsible for printing directly to a printer.
- Since:
- 2.0
-
Field Summary
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Print the current graph.final void
Deprecated.final void
The method to be called from the printing menu.final int
print
(Graphics g, PageFormat pf, int pageIndex) The actual printing routine.
-
Constructor Details
-
JaxoPrint
Constructor.- Parameters:
graph
- the graph to print. Not null.
-
JaxoPrint
public JaxoPrint()Constructor. Prepares to print an empty graph.
-
-
Method Details
-
print
The actual printing routine. -
print
The method to be called from the printing menu.- Parameters:
parent
- parent Component for dialogs.graph
- The JaxoGraph to be printed. Not null.name
- Name for the job.- Since:
- 2.0.2
-
print
Print the current graph.- Parameters:
parent
- parent Component for dialogs.name
- Name for the job.- Since:
- 2.1
-
print
Deprecated.useprint(Component,JaxoGraph,String)
instead.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. This is not used!name
- Name for the job.
-
print(Component,JaxoGraph,String)
instead.