be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.graph
Class MyDirectedSparseGraph

java.lang.Object
  extended by edu.uci.ics.jung.utils.UserDataDelegate
      extended by edu.uci.ics.jung.graph.impl.AbstractArchetypeGraph
          extended by edu.uci.ics.jung.graph.impl.AbstractSparseGraph
              extended by edu.uci.ics.jung.graph.impl.SparseGraph
                  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.graph.MyDirectedSparseGraph
All Implemented Interfaces:
edu.uci.ics.jung.graph.ArchetypeGraph, edu.uci.ics.jung.graph.DirectedGraph, edu.uci.ics.jung.graph.Graph, edu.uci.ics.jung.utils.UserDataContainer, java.lang.Cloneable

public class MyDirectedSparseGraph
extends edu.uci.ics.jung.graph.impl.SparseGraph
implements edu.uci.ics.jung.graph.DirectedGraph

Directed Sparse graph that allow parallel links. Contains methods to create nodes and links and to edit them thanks to a dialog.

Creation date: 3/10/2007

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.uci.ics.jung.graph.impl.AbstractArchetypeGraph
edu.uci.ics.jung.graph.impl.AbstractArchetypeGraph.Requirements
 
Nested classes/interfaces inherited from interface edu.uci.ics.jung.utils.UserDataContainer
edu.uci.ics.jung.utils.UserDataContainer.CopyAction
 
Field Summary
static java.lang.Object KEY
          Main key: used in vertex to refer to the corresponding node instance.
 
Fields inherited from class edu.uci.ics.jung.graph.impl.AbstractSparseGraph
mEdges, mVertices
 
Fields inherited from class edu.uci.ics.jung.graph.impl.AbstractArchetypeGraph
edge_requirements, mEdgeIDs, mGraphListenerHandler, mVertexIDs, vertex_requirements
 
Fields inherited from class edu.uci.ics.jung.utils.UserDataDelegate
factory, udc_delegate
 
Fields inherited from interface edu.uci.ics.jung.graph.Graph
DIRECTED_EDGE, NOT_PARALLEL_EDGE, SIMPLE_EDGE, UNDIRECTED_EDGE
 
Fields inherited from interface edu.uci.ics.jung.graph.ArchetypeGraph
SUBSET_MANAGER
 
Constructor Summary
MyDirectedSparseGraph(DomainDecorator domainDecorator, NodeFactory nodeFactory, LinkFactory linkFactory)
          Creates an instance of a sparse directed graph.
 
Method Summary
 edu.uci.ics.jung.graph.Edge addEdge(edu.uci.ics.jung.graph.Edge e)
           
 edu.uci.ics.jung.graph.Vertex addVertex(edu.uci.ics.jung.graph.Vertex v)
           
 edu.uci.ics.jung.graph.Edge createEdge(edu.uci.ics.jung.graph.Vertex src, edu.uci.ics.jung.graph.Vertex dst)
           
 edu.uci.ics.jung.graph.Vertex createVertex()
           
 edu.uci.ics.jung.graph.Edge editEdge(edu.uci.ics.jung.graph.Edge e)
           
 edu.uci.ics.jung.graph.Vertex editVertex(edu.uci.ics.jung.graph.Vertex v)
           
 DomainDecorator getDomainDecorator()
           
 LinkFactory getLinkFactory()
           
 NodeFactory getNodeFactory()
           
 void removeEdge(edu.uci.ics.jung.graph.Edge e)
           
 void removeVertex(edu.uci.ics.jung.graph.Vertex v)
           
 void setLayout(MyStaticLayout layout)
          Sets the layout to update when a node location is set in the dialog.
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractSparseGraph
getEdges, getVertices, initialize, isDirected, removeEdges, removeVertices
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractArchetypeGraph
addAllNotInitializers, addListener, checkConstraints, copy, getEdgeConstraints, getVertexConstraints, listenersExist, newInstance, numEdges, numVertices, removeAllEdges, removeAllVertices, removeListener, toString
 
Methods inherited from class edu.uci.ics.jung.utils.UserDataDelegate
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDataFactory, setUserDatum
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.uci.ics.jung.graph.Graph
isDirected
 
Methods inherited from interface edu.uci.ics.jung.graph.ArchetypeGraph
addListener, copy, getEdgeConstraints, getEdges, getVertexConstraints, getVertices, newInstance, numEdges, numVertices, removeAllEdges, removeAllVertices, removeEdges, removeListener, removeVertices
 
Methods inherited from interface edu.uci.ics.jung.utils.UserDataContainer
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDatum
 

Field Detail

KEY

public static final java.lang.Object KEY
Main key: used in vertex to refer to the corresponding node instance. Used in edges to refer to the corresponding linkDecorator instance

Constructor Detail

MyDirectedSparseGraph

public MyDirectedSparseGraph(DomainDecorator domainDecorator,
                             NodeFactory nodeFactory,
                             LinkFactory linkFactory)
Creates an instance of a sparse directed graph.

Method Detail

getLinkFactory

public LinkFactory getLinkFactory()

getNodeFactory

public NodeFactory getNodeFactory()

setLayout

public void setLayout(MyStaticLayout layout)
Sets the layout to update when a node location is set in the dialog.

Parameters:
layout -

getDomainDecorator

public DomainDecorator getDomainDecorator()

addEdge

public edu.uci.ics.jung.graph.Edge addEdge(edu.uci.ics.jung.graph.Edge e)
Specified by:
addEdge in interface edu.uci.ics.jung.graph.Graph
Overrides:
addEdge in class edu.uci.ics.jung.graph.impl.AbstractSparseGraph

addVertex

public edu.uci.ics.jung.graph.Vertex addVertex(edu.uci.ics.jung.graph.Vertex v)
Specified by:
addVertex in interface edu.uci.ics.jung.graph.Graph
Overrides:
addVertex in class edu.uci.ics.jung.graph.impl.AbstractSparseGraph

createEdge

public edu.uci.ics.jung.graph.Edge createEdge(edu.uci.ics.jung.graph.Vertex src,
                                              edu.uci.ics.jung.graph.Vertex dst)

createVertex

public edu.uci.ics.jung.graph.Vertex createVertex()

editEdge

public edu.uci.ics.jung.graph.Edge editEdge(edu.uci.ics.jung.graph.Edge e)

editVertex

public edu.uci.ics.jung.graph.Vertex editVertex(edu.uci.ics.jung.graph.Vertex v)

removeEdge

public void removeEdge(edu.uci.ics.jung.graph.Edge e)
Specified by:
removeEdge in interface edu.uci.ics.jung.graph.Graph
Overrides:
removeEdge in class edu.uci.ics.jung.graph.impl.AbstractSparseGraph

removeVertex

public void removeVertex(edu.uci.ics.jung.graph.Vertex v)
Specified by:
removeVertex in interface edu.uci.ics.jung.graph.Graph
Overrides:
removeVertex in class edu.uci.ics.jung.graph.impl.AbstractSparseGraph


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.