org.apache.maven.diagrams.connector_api
Class GraphBuilderListener
java.lang.Object
org.apache.maven.diagrams.connector_api.GraphBuilderListener
- All Implemented Interfaces:
- GraphListener
public class GraphBuilderListener
- extends java.lang.Object
- implements GraphListener
Example/simple implementation of GraphListener thats just builds the graph
from the events.
- Author:
- Piotr Tabor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphBuilderListener
public GraphBuilderListener()
addEdge
public void addEdge(Edge edge)
- Specified by:
addEdge
in interface GraphListener
addNode
public void addNode(Node node)
- Specified by:
addNode
in interface GraphListener
finish
public void finish()
- Description copied from interface:
GraphListener
- Marks that the graph is finished (no more changes are allowed)
- Specified by:
finish
in interface GraphListener
init
public void init(GraphMetadata metadata)
- Specified by:
init
in interface GraphListener
getGraph
public Graph getGraph()
- Returns the current (builded) graph.
delEdge
public void delEdge(Node node)
- Specified by:
delEdge
in interface GraphListener
delNode
public void delNode(Node node)
- Specified by:
delNode
in interface GraphListener
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.