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

Class JaxoPreview



  • public class JaxoPreview
    extends java.lang.Object
    Responsible for previewing the results of an export. In general, creates temporary files that are opened with a default application and deleted after the program terminates. For postscript preview, it is mandatory to specify a default application in the preferences, the LaTex preview may be done with Java's internal JEditorPane.
    • Constructor Summary

      Constructors 
      Constructor and Description
      JaxoPreview() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void previewEPS(JaxoGraph newGraph, java.awt.Dimension d)
      Previews the current JaxoGraph in EPS mode.
      void previewIMG(JaxoGraph previewGraph, java.awt.Dimension d)
      Previews the current JaxoGraph in JPG/PNG mode.
      void previewLatex(JaxoGraph newGraph)
      Previews the current JaxoGraph in LaTex mode.
      void previewLatexPS(JaxoGraph newGraph, java.awt.Dimension d, boolean wMode)
      If a postscript viewer has been specified in the Preferencies, runs external comands to produce a postscript file via LaTeX and opens a window to view it.
      void previewPS(JaxoGraph newGraph, java.awt.Dimension d, int mode)
      Previews the current JaxoGraph in postscript mode (portrait or landscape).
      • Methods inherited from class java.lang.Object

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

      • JaxoPreview

        public JaxoPreview()
    • Method Detail

      • previewPS

        public final void previewPS(JaxoGraph newGraph,
                                    java.awt.Dimension d,
                                    int mode)
        Previews the current JaxoGraph in postscript mode (portrait or landscape).
        Parameters:
        newGraph - The JaxoGraph to be previewed.
        d - The current dimension of the canvas.
        mode - The preview mode: JaxoExport.PS_PORTRAIT or JaxoExport.PS_LANDSCAPE.
      • previewEPS

        public final void previewEPS(JaxoGraph newGraph,
                                     java.awt.Dimension d)
        Previews the current JaxoGraph in EPS mode.
        Parameters:
        newGraph - The JaxoGraph to be previewed.
        d - The current dimension of the canvas.
      • previewLatex

        public final void previewLatex(JaxoGraph newGraph)
        Previews the current JaxoGraph in LaTex mode.
        Parameters:
        newGraph - The current graph to be previewed.
      • previewLatexPS

        public final void previewLatexPS(JaxoGraph newGraph,
                                         java.awt.Dimension d,
                                         boolean wMode)
        If a postscript viewer has been specified in the Preferencies, runs external comands to produce a postscript file via LaTeX and opens a window to view it. All temporary files created during the process are deleted when the application is closed.
        Parameters:
        wMode - A boolean variable that indicates whether the Preview is done in watch mode.
        newGraph - The current JaxoGraph to be previewed.
        d - The current canvas dimension.
      • previewIMG

        public final void previewIMG(JaxoGraph previewGraph,
                                     java.awt.Dimension d)
        Previews the current JaxoGraph in JPG/PNG mode.
        Parameters:
        previewGraph - The current graph to be previewed.
        d - The dimension of the canvas.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.