japlot.jaxodraw
Class JaxoExportPS
- java.lang.Object
-
- japlot.jaxodraw.JaxoExport
-
- japlot.jaxodraw.JaxoExportPS
-
- All Implemented Interfaces:
- java.awt.print.Printable
public class JaxoExportPS extends JaxoExport implements java.awt.print.Printable
The class that is responsible for exporting to postscript output: portrait, landscape or EPS are possible options. Asks for an export file name.
-
-
Field Summary
-
Fields inherited from class japlot.jaxodraw.JaxoExport
ExportFile
-
-
Constructor Summary
Constructors Constructor and Description JaxoExportPS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexport(JaxoGraph newGraph)Exports the JaxoGraph graph into a postscript file: asks for an export file name.voidexportEPS(JaxoGraph newGraph)Exports the JaxoGraph graph into an EPS file: asks for an export file name.voidexportEPS(JaxoGraph graph, java.lang.String exportEPSFileName)Exports the JaxoGraph graph into the EPS file exportEPSFileName.voidexportPS(JaxoGraph newGraph, java.awt.Dimension d, java.lang.String fileName, int mode)The class that is responsible for exporting to postscript output: portrait, landscape or EPS are possible options.voidexportPS(JaxoGraph graph, int mode)Exports the JaxoGraph graph into a postscript format specified by mode.intprint(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)The actual printing routine required by the Printable interface.voidsetCanvasD(java.awt.Dimension newD)Sets the dimension of the canvas.-
Methods inherited from class japlot.jaxodraw.JaxoExport
checkforLatexText, checkforPSText, getExportFile, getExportFileName, getGraph, getMode, setCurrentTab, setExportFile, setGraph, setMode
-
-
-
-
Method Detail
-
setCanvasD
public final void setCanvasD(java.awt.Dimension newD)
Sets the dimension of the canvas.- Parameters:
newD- The dimension of the canvas.
-
export
public final void export(JaxoGraph newGraph)
Exports the JaxoGraph graph into a postscript file: asks for an export file name.- Specified by:
exportin classJaxoExport- Parameters:
newGraph- The graph to be exported.
-
exportPS
public final void exportPS(JaxoGraph graph, int mode)
Exports the JaxoGraph graph into a postscript format specified by mode.- Parameters:
graph- The graph to be exported.mode- An integer specifying the postscript format.
-
exportEPS
public final void exportEPS(JaxoGraph newGraph)
Exports the JaxoGraph graph into an EPS file: asks for an export file name.- Parameters:
newGraph- The graph to be exported.
-
exportEPS
public final void exportEPS(JaxoGraph graph, java.lang.String exportEPSFileName)
Exports the JaxoGraph graph into the EPS file exportEPSFileName.- Parameters:
graph- The graph to be exported.exportEPSFileName- The name of the export file.
-
print
public final int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)The actual printing routine required by the Printable interface.- 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.
-
exportPS
public final void exportPS(JaxoGraph newGraph, java.awt.Dimension d, java.lang.String fileName, int mode)
The class that is responsible for exporting to postscript output: portrait, landscape or EPS are possible options. The export file name is given by fileName.- Parameters:
newGraph- The JaxoGraph to be exported.d- The current dimension of the Canvas.fileName- The export file name.mode- An integer specifying the postscript format: 0=portrait, 1 = landscape.
-
-
DMelt 3.0 © DataMelt by jWork.ORG