public class XYPlotPersistence
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
XYPlotPersistence.ProgressCallback
Interface for getting progress for reading/writing XYPlotData arrays.
|
Constructor and Description |
---|
XYPlotPersistence() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment() |
java.util.Date |
getDate() |
double |
getXMax()
Get the maximal X value used in this persisted data
|
double |
getXMin()
Get the minimal X value used in this persisted data
|
java.lang.String |
getXText() |
java.lang.String |
getXUnit() |
XYPlotData[] |
readData(java.lang.String fileName)
Read data from a file
|
XYPlotData[] |
readData(java.lang.String fileName,
XYPlotPersistence.ProgressCallback progressCallback)
Read data from a file
|
void |
setComment(java.lang.String comment) |
void |
setXDescription(java.lang.String xtext,
java.lang.String xunit) |
void |
writeData(java.lang.String fileName,
XYPlotData[] dataList)
Save plot data into a file.
|
void |
writeData(java.lang.String fileName,
XYPlotData[] dataList,
XYPlotPersistence.ProgressCallback progressCallback)
Save plot data into a file.
|
public void setXDescription(java.lang.String xtext, java.lang.String xunit)
public void setComment(java.lang.String comment)
public java.lang.String getComment()
public java.util.Date getDate()
public java.lang.String getXUnit()
public java.lang.String getXText()
public void writeData(java.lang.String fileName, XYPlotData[] dataList, XYPlotPersistence.ProgressCallback progressCallback) throws java.io.IOException
fileName
- Name of the filedataList
- An plot data handler arrayprogressCallback
- A progress callbackjava.io.IOException
public void writeData(java.lang.String fileName, XYPlotData[] dataList) throws java.io.IOException
fileName
- Name of the filedataList
- An plot data handler arrayjava.io.IOException
public XYPlotData[] readData(java.lang.String fileName, XYPlotPersistence.ProgressCallback progressCallback) throws java.io.IOException
fileName
- Name of the fileprogressCallback
- A progress callbackjava.io.IOException
public XYPlotData[] readData(java.lang.String fileName) throws java.io.IOException
fileName
- Name of the filejava.io.IOException
public double getXMin()
public double getXMax()