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