japlot.jaxodraw
Class JaxoExport
- java.lang.Object
-
- japlot.jaxodraw.JaxoExport
-
- Direct Known Subclasses:
- JaxoExportImg, JaxoExportLatex, JaxoExportLatexPS, JaxoExportPS
public abstract class JaxoExport extends java.lang.ObjectAn abstract superclass for all exporting classes.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringExportFile
-
Constructor Summary
Constructors Constructor and Description JaxoExport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidcheckforLatexText()Checks if there are LatexText objects present in the current graph, and if yes, displays a warning message.voidcheckforPSText()Checks if there are PSText objects present in the current graph, and if yes, displays a warning message.abstract voidexport(JaxoGraph aGraph)Exports a JaxoGraph to some file format.java.lang.StringgetExportFile()java.lang.StringgetExportFileName()Brings up a file chooser dialog to determine the file for exporting.JaxoGraphgetGraph()Returns the current graph to export.intgetMode()Returns the current export mode.voidsetCurrentTab(java.lang.String newTab)Sets the currentTab property.voidsetExportFile(java.lang.String exportFile)voidsetGraph(JaxoGraph newGraph)Sets the graph to export.voidsetMode(int newMode)Sets the export mode.
-
-
-
Method Detail
-
setCurrentTab
public final void setCurrentTab(java.lang.String newTab)
Sets the currentTab property.- Parameters:
newTab- The name of the current tab.
-
setExportFile
public void setExportFile(java.lang.String exportFile)
-
getExportFile
public java.lang.String getExportFile()
-
setMode
public final void setMode(int newMode)
Sets the export mode.- Parameters:
newMode- The new export mode (as defined in JaxoExportPanel).
-
getMode
public final int getMode()
Returns the current export mode.- Returns:
- The current export mode (as defined in JaxoExportPanel).
-
setGraph
public final void setGraph(JaxoGraph newGraph)
Sets the graph to export.- Parameters:
newGraph- The graph to export.
-
getGraph
public final JaxoGraph getGraph()
Returns the current graph to export.- Returns:
- The graph to export.
-
getExportFileName
public final java.lang.String getExportFileName()
Brings up a file chooser dialog to determine the file for exporting.- Returns:
- The chosen export file name
-
checkforLatexText
public final void checkforLatexText()
Checks if there are LatexText objects present in the current graph, and if yes, displays a warning message.
-
checkforPSText
public final void checkforPSText()
Checks if there are PSText objects present in the current graph, and if yes, displays a warning message.
-
export
public abstract void export(JaxoGraph aGraph)
Exports a JaxoGraph to some file format.- Parameters:
aGraph- The graph to export.
-
-
DMelt 3.0 © DataMelt by jWork.ORG