Documentation of 'japlot.jaxodraw.JaxoExportPS' Java class
JaxoExportPS
japlot.jaxodraw

Class 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 interface java.awt.print.Printable

        NO_SUCH_PAGE, PAGE_EXISTS
    • Constructor Summary

      Constructors 
      Constructor and Description
      JaxoExportPS() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void export(JaxoGraph newGraph)
      Exports the JaxoGraph graph into a postscript file: asks for an export file name.
      void exportEPS(JaxoGraph newGraph)
      Exports the JaxoGraph graph into an EPS file: asks for an export file name.
      void exportEPS(JaxoGraph graph, java.lang.String exportEPSFileName)
      Exports the JaxoGraph graph into the EPS file exportEPSFileName.
      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.
      void exportPS(JaxoGraph graph, int mode)
      Exports the JaxoGraph graph into a postscript format specified by mode.
      int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
      The actual printing routine required by the Printable interface.
      void setCanvasD(java.awt.Dimension newD)
      Sets the dimension of the canvas.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JaxoExportPS

        public JaxoExportPS()
    • 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:
        export in class JaxoExport
        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:
        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.
      • 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

You see the box below because you did not login.