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
-
RELATIONNode(SGMLTree, Vector, Vector, boolean)
- construct from two FullAddressVectors, one for each end
-
RELATIONNode(String, SGMLTree)
- default constructor; this has no 'contents'
-
createAndAdd(SGMLTree, int, Vector, Vector, boolean)
-
-
debug()
- for debug
-
display()
- displays the nodes.
-
display(Graphics)
- no routine yet to display the relationships...
-
displayRELATIONTargets(FullAddress)
- display all RELATION
-
getAllRELATIONNodes(SGMLTree)
- get all RELATION in the document
-
getFullAddress(FullAddress)
- get all the addresses corresponding to the END(n) values where 'fa' matches
the other END value.
-
getXARR()
- get the ARRAY Objects
-
getXVAR()
- get the XVAR Objects
-
mayContain(SGMLNode)
- can this node contain others.
-
process()
- complex objects may require processing; override this.
-
showHelp()
- display Help
RELATIONNode
public RELATIONNode(String giName,
SGMLTree tree)
- default constructor; this has no 'contents'
RELATIONNode
public RELATIONNode(SGMLTree tree,
Vector fav0,
Vector fav1,
boolean bidirectional)
- construct from two FullAddressVectors, one for each end
createAndAdd
public static int createAndAdd(SGMLTree tree,
int parentIndex,
Vector fav0,
Vector fav1,
boolean bidirectional)
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
getXVAR
public XVARNode[] getXVAR()
- get the XVAR Objects
getXARR
public ARRAYNode[] getXARR()
- get the ARRAY Objects
display
public void display()
- displays the nodes. Doesn't yet clear subaddresses in nodes before it
starts...
- Overrides:
- display in class DrawableSGMLNode
display
public void display(Graphics g)
- no routine yet to display the relationships...
- Overrides:
- display in class DrawableX_Node
getAllRELATIONNodes
public static RELATIONNode[] getAllRELATIONNodes(SGMLTree tree)
- get all RELATION in the document
displayRELATIONTargets
public static void displayRELATIONTargets(FullAddress fa)
- display all RELATION
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.
debug
public void debug()
- for debug
- Overrides:
- debug in class DrawableX_Node
All Packages Class Hierarchy This Package Previous Next Index