public class WriteCurveCsv extends java.lang.Object implements WriteCurve_ifc
Modifier and Type | Field and Description |
---|---|
(package private) float[] |
aLine0 |
(package private) float[] |
aMid |
(package private) float[] |
aScale7div |
(package private) java.text.SimpleDateFormat |
dateFormat |
(package private) java.io.File |
fOut |
(package private) java.io.Writer |
out |
(package private) java.lang.String[] |
sColorsColumn |
(package private) java.lang.String[] |
sNamesColumn |
(package private) java.lang.String[] |
sPathsColumn |
(package private) Timeshort |
timeshortabs |
(package private) java.lang.StringBuilder |
uLine |
static int |
version
Version, history and copyright/copyleft.
|
Constructor and Description |
---|
WriteCurveCsv() |
Modifier and Type | Method and Description |
---|---|
void |
setFile(java.io.File fOut)
Sets the output file.
|
void |
setTrackInfo(int nrofTracks,
int ixTrack,
java.lang.String sPath,
java.lang.String sName,
java.lang.String sColor,
float scale7div,
float mid,
float line0)
Sets information for one track.
|
void |
writeCurveError(java.lang.String msg) |
void |
writeCurveFinish() |
void |
writeCurveRecord(int timeshort,
float[] values) |
void |
writeCurveStart(int timeshort)
Opens the file and write head information.
|
void |
writeCurveTimestamp(Timeshort timeshortabs) |
private void |
writeFloatLine(java.io.Writer out,
java.lang.String col0,
float[] inp) |
private void |
writeStringLine(java.io.Writer out,
java.lang.String col0,
java.lang.String[] inp) |
public static final int version
org.vishia.guiInspc.InspcCurveView
and org.vishia.gral.base.GralCurveView
.
java.io.File fOut
java.io.Writer out
Timeshort timeshortabs
java.lang.String[] sPathsColumn
java.lang.String[] sNamesColumn
java.lang.String[] sColorsColumn
float[] aScale7div
float[] aMid
float[] aLine0
java.text.SimpleDateFormat dateFormat
java.lang.StringBuilder uLine
public void setFile(java.io.File fOut)
WriteCurve_ifc
WriteCurve_ifc.writeCurveStart(int)
.
This routine should be the first one to call. An currently usage of the same instance is closed
with this call.setFile
in interface WriteCurve_ifc
fOut
- The file for output.public void setTrackInfo(int nrofTracks, int ixTrack, java.lang.String sPath, java.lang.String sName, java.lang.String sColor, float scale7div, float mid, float line0)
WriteCurve_ifc
WriteCurve_ifc.setFile(File)
.setTrackInfo
in interface WriteCurve_ifc
public void writeCurveError(java.lang.String msg) throws java.io.IOException
writeCurveError
in interface WriteCurve_ifc
java.io.IOException
public void writeCurveFinish() throws java.io.IOException
writeCurveFinish
in interface WriteCurve_ifc
java.io.IOException
public void writeCurveRecord(int timeshort, float[] values) throws java.io.IOException
writeCurveRecord
in interface WriteCurve_ifc
java.io.IOException
public void writeCurveStart(int timeshort) throws java.io.IOException
WriteCurve_ifc
#setTrackInfo(int, int, String, String)
should be called already for all tracks. It means, all information which may need in the head are given
on calling this method.writeCurveStart
in interface WriteCurve_ifc
java.io.IOException
private void writeStringLine(java.io.Writer out, java.lang.String col0, java.lang.String[] inp) throws java.io.IOException
java.io.IOException
private void writeFloatLine(java.io.Writer out, java.lang.String col0, float[] inp) throws java.io.IOException
java.io.IOException
public void writeCurveTimestamp(Timeshort timeshortabs)
writeCurveTimestamp
in interface WriteCurve_ifc