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
-
Nested Class Summary
Nested classes/interfaces inherited from class JDXHeader
JDXHeader.DataLDRTable -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanintintstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJDXSpectrum(String filePath, Spectrum spectrum, boolean forceSub) Adds a Spectrum to the liststatic JDXSourcecreateView(Lst<Spectrum> specs) voiddispose()Returns the error log for this sourceString[][]getHeaderRowDataAsArray(boolean addDataClass, String[][] rowData) getJDXSpectrum(int index) Returns the Spectrum at a given index in the listintReturns the number of Spectra in this SourceReturns the Vector of SpectraSpectrum[]Used in AndroidbooleanmatchesFilePath(String filePath) voidsetErrorLog(String errors) Sets the error log for this sourcevoidsetFilePath(String filePath) voidvoidsetInlineData(String data) Methods inherited from class 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
-
getNumberOfSpectra
public int getNumberOfSpectra()Returns the number of Spectra in this Source- Returns:
- the number of Spectra in this Source
-
getSpectra
-
getSpectraAsArray
-
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
-