Class pmr.cml.ATOMSNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.cml.ATOMSNode

java.lang.Object
   |
   +----pmr.sgml.SGMLNode
           |
           +----pmr.sgml.DrawableSGMLNode
                   |
                   +----pmr.cml.DrawableX_Node
                           |
                           +----pmr.cml.ATOMSNode

public class ATOMSNode
extends DrawableX_Node
ATOMSNode stores ARRAYs of atoms
Author:
(C) P.Murray-Rust, 1996, 1997

Constructor Index

 o ATOMSNode(String, SGMLTree)

Method Index

 o debug()
for debug
 o display()
display() is unlikely to be possible without help from MOL or CRYST, so just ignore it
 o drawIcon(Graphics, int, int)
draw a CML icon
 o getAtomCount()
 o getAtomSerial(String)
get serial number of atom (0...natoms-1) from ATOMID; -1 if not found
 o mayContain(SGMLNode)
can this node contain others.
 o process()
complex objects may require processing; override this.
 o showHelp()
display Help (includes MOL and BONDS)

Constructors

 o ATOMSNode
  public ATOMSNode(String giName,
                   SGMLTree tree)

Methods

 o showHelp
  public void showHelp()
display Help (includes MOL and BONDS)
Overrides:
showHelp in class DrawableX_Node
 o getAtomCount
  public int getAtomCount()
 o mayContain
  public boolean mayContain(SGMLNode n)
can this node contain others.
Overrides:
mayContain in class DrawableX_Node
 o process
  public void process()
complex objects may require processing; override this.
Overrides:
process in class DrawableSGMLNode
 o display
  public void display()
display() is unlikely to be possible without help from MOL or CRYST, so just ignore it
Overrides:
display in class DrawableSGMLNode
 o getAtomSerial
  public int getAtomSerial(String atomid)
get serial number of atom (0...natoms-1) from ATOMID; -1 if not found
 o debug
  public void debug()
for debug
Overrides:
debug in class DrawableX_Node
 o drawIcon
  public int drawIcon(Graphics g,
                      int x,
                      int y)
draw a CML icon
Overrides:
drawIcon in class DrawableX_Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index