|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Graph
The Graph interface is implemented by all objects which support to add a graph structure. The are methods to add nodes, edges and subgraphs. For convenience there are also some methods to define default design for those types. The default is used if you add, for example a node, without parameter.
Method Summary | |
---|---|
Edge |
addEdge(Node n1,
Node n2)
Adds an Edge to the graph using the default edge design |
Edge |
addEdge(Node n1,
Node n2,
EdgeDesign ed)
Adds an Edge to the graph using the given design |
TextNode |
addNode()
Adds a Node to the graph using the default node design and returns it. |
TextNode |
addNode(NodeDesign nd)
Adds a Node to the graph using the given design and returns it. |
Subgraph |
addSubgraph()
Adds an Subgraph to the graph using the default design |
Subgraph |
addSubgraph(NodeDesign nd)
Adds an Subgraph to the Graph using the given design |
EdgeDesign |
getDefaultEdgeDesign()
|
NodeDesign |
getDefaultNodeDesign()
|
NodeDesign |
getDefaultSubgraphDesign()
|
void |
setDefaultEdgeDesign(EdgeDesign ed)
|
void |
setDefaultNodeDesign(NodeDesign nd)
|
void |
setDefaultSubgraphDesign(NodeDesign nd)
|
Method Detail |
---|
TextNode addNode()
TextNode addNode(NodeDesign nd)
nd
- the node design
Edge addEdge(Node n1, Node n2)
n1
- the first noden2
- the second node
GraphStructureException
Edge addEdge(Node n1, Node n2, EdgeDesign ed)
n1
- the first noden2
- the second node
GraphStructureException
Subgraph addSubgraph()
Subgraph addSubgraph(NodeDesign nd)
void setDefaultEdgeDesign(EdgeDesign ed)
ed
- the new default edge designvoid setDefaultNodeDesign(NodeDesign nd)
nd
- the new default node designvoid setDefaultSubgraphDesign(NodeDesign nd)
nd
- the new default subgraph designEdgeDesign getDefaultEdgeDesign()
NodeDesign getDefaultNodeDesign()
NodeDesign getDefaultSubgraphDesign()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |