japlot.jaxodraw
Class JaxoPreview
- java.lang.Object
-
- japlot.jaxodraw.JaxoPreview
-
public class JaxoPreview extends java.lang.ObjectResponsible 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 voidpreviewEPS(JaxoGraph newGraph, java.awt.Dimension d)Previews the current JaxoGraph in EPS mode.voidpreviewIMG(JaxoGraph previewGraph, java.awt.Dimension d)Previews the current JaxoGraph in JPG/PNG mode.voidpreviewLatex(JaxoGraph newGraph)Previews the current JaxoGraph in LaTex mode.voidpreviewLatexPS(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.voidpreviewPS(JaxoGraph newGraph, java.awt.Dimension d, int mode)Previews the current JaxoGraph in postscript mode (portrait or landscape).
-
-
-
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