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
-
PERSONNode(String, SGMLTree)
-
-
addChild(int)
- checks that parent knows about children
-
addFirstname(String)
-
-
addInitials(String)
-
-
addLastname(String)
-
-
createAndAdd(SGMLTree, int, String, String, String)
-
-
debug()
- for debug
-
display(Graphics)
- used by the ScrollableTopLevel to paint the object, or can be used to
draw the object to somewhere else.
-
drawIcon(Graphics, int, int)
- draw a CML icon
-
getFirstname()
-
-
getInitials()
-
-
getLastname()
-
-
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
PERSONNode
public PERSONNode(String giName,
SGMLTree tree)
createAndAdd
public static int createAndAdd(SGMLTree tree,
int parentIndex,
String lastname,
String firstname,
String initials)
addChild
public void addChild(int childIndex)
- checks that parent knows about children
- Overrides:
- addChild in class SGMLNode
getLastname
public String getLastname()
getFirstname
public String getFirstname()
getInitials
public String getInitials()
getTitle
public String getTitle()
- get title from TITLE, DICTNAME, BUILTIN if present, else TITLE
- Overrides:
- getTitle in class DrawableX_Node
addFirstname
public void addFirstname(String firstname)
addLastname
public void addLastname(String lastname)
addInitials
public void addInitials(String initials)
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(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
drawIcon
public int drawIcon(Graphics g,
int x,
int y)
- draw a CML icon
- Overrides:
- drawIcon in class DrawableX_Node
debug
public void debug()
- for debug
- Overrides:
- debug in class DrawableX_Node
All Packages Class Hierarchy This Package Previous Next Index