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

Class pmr.cml.FORMULANode

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

public class FORMULANode
extends DrawableX_Node
FORMULANode holds molecular formula information

Constructor Index

 o FORMULANode(String, SGMLTree)

Method Index

 o createAndAdd(SGMLTree, int)
create from a data entry; this has to add it to the tree as well
 o debug()
for debug
 o display()
Kicks off a ScrollableTopLevel which contains the object.
 o drawIcon(Graphics, int, int)
draw a CML icon
 o getStoichiometry()
get the stoichiometry; null if not given and cannot calculate
 o getTitle()
get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
 o mayContain(SGMLNode)
can this node contain others.
 o process()
complex objects may require processing; override this.
 o showHelp()
display Help

Constructors

 o FORMULANode
  public FORMULANode(String giName,
                     SGMLTree tree)

Methods

 o createAndAdd
  public static int createAndAdd(SGMLTree tree,
                                 int parentIndex)
create from a data entry; this has to add it to the tree as well
 o getTitle
  public String getTitle()
get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
Overrides:
getTitle in class DrawableX_Node
 o getStoichiometry
  public Stoichiometry getStoichiometry()
get the stoichiometry; null if not given and cannot calculate
 o showHelp
  public void showHelp()
display Help
Overrides:
showHelp in class DrawableX_Node
 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()
Kicks off a ScrollableTopLevel which contains the object.
Overrides:
display in class DrawableSGMLNode
 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