|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.grand.graph.SimpleGraphElementFactory
class SimpleGraphElementFactory
A basic implementation of GraphElementFactory creating
NodeImpl & LinkImpl.
Instances of this class are linked to a specific graph.
| Constructor Summary | |
|---|---|
SimpleGraphElementFactory(Graph graph)
Creates a factory instance linked to a specific graph. |
|
| Method Summary | |
|---|---|
Link |
createLink(java.lang.String linkName,
Node startNode,
Node endNode)
Creates a new link between 2 nodes. |
Node |
createNode(java.lang.String nodeName)
Creates a new Node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SimpleGraphElementFactory(Graph graph)
graph - | Method Detail |
|---|
public Node createNode(java.lang.String nodeName)
GraphElementFactory
createNode in interface GraphElementFactorynodeName - name of the newly created node.
public Link createLink(java.lang.String linkName,
Node startNode,
Node endNode)
GraphElementFactory
createLink in interface GraphElementFactorylinkName - the new link name, can be null.startNode - start nodeendNode - end node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||