Class pmr.chemime.JCAMP
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.chemime.JCAMP
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----pmr.simplegraph.SimpleApplet
|
+----pmr.sgml.SGMLApplet
|
+----pmr.sgml.SGMLTree
|
+----pmr.cml.CMLTree
|
+----pmr.chemime.ChemTree
|
+----pmr.chemime.JCAMP
- public class JCAMP
- extends ChemTree
class to read (? and write?) JCAMP files. This is being developed in conjunction
with the published standard and the cooperation of Tony Davies, but we cannot guarantee
that this code fits the published standard.
- Author:
- (C) P. Murray-Rust, 1996
-
JCAMP(String, StringList)
- create a JCAMP tree from a file or file content
-
display()
- displays the spectrum automatically
-
getSpectrum()
- returns the spectrum as a node; (null if invalid)
-
process()
-
-
showHelp()
- display help
JCAMP
public JCAMP(String filename,
StringList lines) throws BadJCAMPFileException
- create a JCAMP tree from a file or file content
- Parameters:
- filename - name of file to read from (or title if lines != null)
- lines - if lines != null, use this as file content instead of filename
- Throws: BadJCAMPFileException
- bad or non-existent input
showHelp
public void showHelp()
- display help
- Overrides:
- showHelp in class ChemTree
process
protected void process() throws BadJCAMPFileException
getSpectrum
public XLISTNode getSpectrum()
- returns the spectrum as a node; (null if invalid)
- Overrides:
- getSpectrum in class CMLTree
display
public void display()
- displays the spectrum automatically
- Overrides:
- display in class CMLTree
All Packages Class Hierarchy This Package Previous Next Index