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

Class pmr.cml.PERSONNode

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

public class PERSONNode
extends DrawableX_Node
a person - not yet completed
Author:
(C) P. Murray-Rust, 1996

Constructor Index

 o PERSONNode(String, SGMLTree)

Method Index

 o addChild(int)
checks that parent knows about children
 o addFirstname(String)
 o addInitials(String)
 o addLastname(String)
 o createAndAdd(SGMLTree, int, String, String, String)
 o debug()
for debug
 o display(Graphics)
used by the ScrollableTopLevel to paint the object, or can be used to draw the object to somewhere else.
 o drawIcon(Graphics, int, int)
draw a CML icon
 o getFirstname()
 o getInitials()
 o getLastname()
 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 PERSONNode
  public PERSONNode(String giName,
                    SGMLTree tree)

Methods

 o createAndAdd
  public static int createAndAdd(SGMLTree tree,
                                 int parentIndex,
                                 String lastname,
                                 String firstname,
                                 String initials)
 o addChild
  public void addChild(int childIndex)
checks that parent knows about children
Overrides:
addChild in class SGMLNode
 o getLastname
  public String getLastname()
 o getFirstname
  public String getFirstname()
 o getInitials
  public String getInitials()
 o getTitle
  public String getTitle()
get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
Overrides:
getTitle in class DrawableX_Node
 o addFirstname
  public void addFirstname(String firstname)
 o addLastname
  public void addLastname(String lastname)
 o addInitials
  public void addInitials(String initials)
 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(Graphics g)
used by the ScrollableTopLevel to paint the object, or can be used to draw the object to somewhere else.
Overrides:
display 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
 o debug
  public void debug()
for debug
Overrides:
debug in class DrawableX_Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index