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

Constructor Index

 o JCAMP(String, StringList)
create a JCAMP tree from a file or file content

Method Index

 o display()
displays the spectrum automatically
 o getSpectrum()
returns the spectrum as a node; (null if invalid)
 o process()
 o showHelp()
display help

Constructors

 o 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

Methods

 o showHelp
  public void showHelp()
display help
Overrides:
showHelp in class ChemTree
 o process
  protected void process() throws BadJCAMPFileException
 o getSpectrum
  public XLISTNode getSpectrum()
returns the spectrum as a node; (null if invalid)
Overrides:
getSpectrum in class CMLTree
 o display
  public void display()
displays the spectrum automatically
Overrides:
display in class CMLTree

All Packages  Class Hierarchy  This Package  Previous  Next  Index