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

Class pmr.cml.RELATIONNode

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

public class RELATIONNode
extends DrawableX_Node
A RELATIONSHIP class. The contents of RELATION are of the form:

  GRAPHNODE:203-227
  MOL:3
or ARRAY for many-many relationships.  There must be exactly one each of END1
and END2.  An attribute DIRECTED=YES signifies a directed link from END1 to 
END2

Author:
(C) P. Murray-Rust, 1996

Constructor Index

 o RELATIONNode(SGMLTree, Vector, Vector, boolean)
construct from two FullAddressVectors, one for each end
 o RELATIONNode(String, SGMLTree)
default constructor; this has no 'contents'

Method Index

 o createAndAdd(SGMLTree, int, Vector, Vector, boolean)
 o debug()
for debug
 o display()
displays the nodes.
 o display(Graphics)
no routine yet to display the relationships...
 o displayRELATIONTargets(FullAddress)
display all RELATION
 o getAllRELATIONNodes(SGMLTree)
get all RELATION in the document
 o getFullAddress(FullAddress)
get all the addresses corresponding to the END(n) values where 'fa' matches the other END value.
 o getXARR()
get the ARRAY Objects
 o getXVAR()
get the XVAR Objects
 o mayContain(SGMLNode)
can this node contain others.
 o process()
complex objects may require processing; override this.
 o showHelp()
display Help

Constructors

 o RELATIONNode
  public RELATIONNode(String giName,
                      SGMLTree tree)
default constructor; this has no 'contents'
 o RELATIONNode
  public RELATIONNode(SGMLTree tree,
                      Vector fav0,
                      Vector fav1,
                      boolean bidirectional)
construct from two FullAddressVectors, one for each end

Methods

 o createAndAdd
  public static int createAndAdd(SGMLTree tree,
                                 int parentIndex,
                                 Vector fav0,
                                 Vector fav1,
                                 boolean bidirectional)
 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 getXVAR
  public XVARNode[] getXVAR()
get the XVAR Objects
 o getXARR
  public ARRAYNode[] getXARR()
get the ARRAY Objects
 o display
  public void display()
displays the nodes. Doesn't yet clear subaddresses in nodes before it starts...
Overrides:
display in class DrawableSGMLNode
 o display
  public void display(Graphics g)
no routine yet to display the relationships...
Overrides:
display in class DrawableX_Node
 o getAllRELATIONNodes
  public static RELATIONNode[] getAllRELATIONNodes(SGMLTree tree)
get all RELATION in the document
 o displayRELATIONTargets
  public static void displayRELATIONTargets(FullAddress fa)
display all RELATION
 o getFullAddress
  public FullAddress[] getFullAddress(FullAddress fa)
get all the addresses corresponding to the END(n) values where 'fa' matches the other END value. If none found, return null. If BIDIRECTIONAL=NO, only END1 values are searched.
 o debug
  public void debug()
for debug
Overrides:
debug in class DrawableX_Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index