Package jspecview.source
Class JDXSource
java.lang.Object
jspecview.source.JDXHeader
jspecview.source.JDXSource
JDXSource
is representation of all the data in the JCAMP-DX file
or source. Note: All Jdx Source are viewed as having a set of Spectra- Author:
- Debbie-Ann Facey, Khari A. Bryan, Prof. Robert J. Lancashire
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
int
int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addJDXSpectrum
(String filePath, Spectrum spectrum, boolean forceSub) Adds a Spectrum to the liststatic JDXSource
createView
(Lst<Spectrum> specs) void
dispose()
Returns the error log for this sourceString[][]
getHeaderRowDataAsArray
(boolean addDataClass, String[][] rowData) getJDXSpectrum
(int index) Returns the Spectrum at a given index in the listint
Returns the number of Spectra in this SourceReturns the Vector of SpectraSpectrum[]
Used in Androidboolean
matchesFilePath
(String filePath) void
setErrorLog
(String errors) Sets the error log for this sourcevoid
setFilePath
(String filePath) void
void
setInlineData
(String data) Methods inherited from class jspecview.source.JDXHeader
getDataClass, getDataType, getDate, getHeaderRowDataAsArray, getHeaderTable, getJcampdx, getLongDate, getOrigin, getOwner, getQualifiedDataType, getTime, getTitle, setDataClass, setDataType, setDate, setHeaderTable, setJcampdx, setLongDate, setOrigin, setOwner, setTime, setTitle
-
Field Details
-
TYPE_VIEW
public static final int TYPE_VIEW- See Also:
-
TYPE_UNKNOWN
public static final int TYPE_UNKNOWN- See Also:
-
TYPE_SIMPLE
public static final int TYPE_SIMPLE- See Also:
-
TYPE_BLOCK
public static final int TYPE_BLOCK- See Also:
-
TYPE_NTUPLE
public static final int TYPE_NTUPLE- See Also:
-
type
public int type -
isCompoundSource
public boolean isCompoundSource -
peakCount
public int peakCount -
isView
public boolean isView
-
-
Constructor Details
-
JDXSource
-
-
Method Details
-
dispose
public void dispose() -
getJDXSpectrum
Returns the Spectrum at a given index in the list- Parameters:
index
- the spectrum index- Returns:
- the Spectrum at a given index in the list
-
addJDXSpectrum
Adds a Spectrum to the list- Parameters:
filePath
-spectrum
- the spectrum to be addedforceSub
-
-
getNumberOfSpectra
public int getNumberOfSpectra()Returns the number of Spectra in this Source- Returns:
- the number of Spectra in this Source
-
getSpectra
Returns the Vector of Spectra- Returns:
- the Vector of Spectra
-
getSpectraAsArray
Used in Android- Returns:
- array of JDXpectrum
-
getErrorLog
Returns the error log for this source- Returns:
- the error log for this source
-
setErrorLog
Sets the error log for this source- Parameters:
errors
- error log for this source
-
setFilePath
-
getFilePath
-
createView
-
getHeaderRowDataAsArray
-
setID
-
matchesFilePath
-
setInlineData
-