public interface WriteCurve_ifc
org.vishia.gral.base.GralCurveView but it is useful for other applications too.
It is possible to load a implementor of that interface by string (using Class.forName(name).newInstance()).
It means that this interface should supply all required access methods.| Modifier and Type | Field and Description |
|---|---|
static int |
version
Version, history and copyright/copyleft.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setFile(java.io.File file)
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) |
static final int version
org.vishia.guiInspc.InspcCurveView and org.vishia.gral.base.GralCurveView.
void setFile(java.io.File file)
writeCurveStart(int).
This routine should be the first one to call. An currently usage of the same instance is closed
with this call.file - The file for output.void setTrackInfo(int nrofTracks,
int ixTrack,
java.lang.String sPath,
java.lang.String sName,
java.lang.String sColor,
float scale7div,
float mid,
float line0)
setFile(File).nrofTracks - ixTrack - sPath - sName - void writeCurveTimestamp(Timeshort timeshortabs)
void writeCurveStart(int timeshort)
throws java.io.IOException
#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.timeshort - java.io.IOExceptionvoid writeCurveRecord(int timeshort,
float[] values)
throws java.io.IOException
java.io.IOExceptionvoid writeCurveFinish()
throws java.io.IOException
java.io.IOExceptionvoid writeCurveError(java.lang.String msg)
throws java.io.IOException
java.io.IOException