public class WriteCurveBinary extends java.lang.Object implements WriteCurve_ifc
Modifier and Type | Field and Description |
---|---|
(package private) java.io.File |
fOut |
(package private) java.io.OutputStream |
out |
static int |
version
Version, history and copyright/copyleft.
|
Constructor and Description |
---|
WriteCurveBinary() |
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 xx) |
public static final int version
org.vishia.guiInspc.InspcCurveView
and org.vishia.gral.base.GralCurveView
.
java.io.File fOut
java.io.OutputStream out
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 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 writeCurveError(java.lang.String msg)
writeCurveError
in interface WriteCurve_ifc
public void writeCurveFinish()
writeCurveFinish
in interface WriteCurve_ifc
public void writeCurveRecord(int timeshort, float[] values)
writeCurveRecord
in interface WriteCurve_ifc
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
public void writeCurveTimestamp(Timeshort xx)
writeCurveTimestamp
in interface WriteCurve_ifc