net.ggtools.grand.graph
Interface GraphElementFactory

All Known Implementing Classes:
AntGraphElementFactory, SimpleGraphElementFactory

public interface GraphElementFactory

Interface to be implemented by classes creating graph elements (nodes & links).

Author:
Christophe Labouisse

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.
 

Method Detail

createNode

Node createNode(java.lang.String nodeName)
Creates a new Node.

Parameters:
nodeName - name of the newly created node.
Returns:
a new node.

createLink

Link createLink(java.lang.String linkName,
                Node startNode,
                Node endNode)
Creates a new link between 2 nodes.

Parameters:
linkName - the new link name, can be null.
startNode - start node
endNode - end node
Returns:
a new link.


Copyright © 2004-2005 ggTools. All Rights Reserved.