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
-
FORMULANode(String, SGMLTree)
-
-
createAndAdd(SGMLTree, int)
- create from a data entry; this has to add it to the tree as well
-
debug()
- for debug
-
display()
- Kicks off a ScrollableTopLevel which contains the object.
-
drawIcon(Graphics, int, int)
- draw a CML icon
-
getStoichiometry()
- get the stoichiometry; null if not given and cannot calculate
-
getTitle()
- get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
-
mayContain(SGMLNode)
- can this node contain others.
-
process()
- complex objects may require processing; override this.
-
showHelp()
- display Help
FORMULANode
public FORMULANode(String giName,
SGMLTree tree)
createAndAdd
public static int createAndAdd(SGMLTree tree,
int parentIndex)
- create from a data entry; this has to add it to the tree as well
getTitle
public String getTitle()
- get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
- Overrides:
- getTitle in class DrawableX_Node
getStoichiometry
public Stoichiometry getStoichiometry()
- get the stoichiometry; null if not given and cannot calculate
showHelp
public void showHelp()
- display Help
- Overrides:
- showHelp in class DrawableX_Node
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()
- Kicks off a ScrollableTopLevel which contains the object.
- Overrides:
- display in class DrawableSGMLNode
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