diva.graphx.toolbox
Class BasicGraphModel

java.lang.Object
  extended by diva.graphx.GraphModel
      extended by diva.graphx.toolbox.BasicGraphModel

public class BasicGraphModel
extends GraphModel

A basic implementation of a graph model that uses BasicNodes and BasicEdges objects as its graph structure.

Version:
$Revision: 1.2 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu), John Reekie (johnr@eecs.berkeley.edu)

Field Summary
 
Fields inherited from class diva.graphx.GraphModel
_graphListeners
 
Constructor Summary
BasicGraphModel()
          Construct an empty graph model.
 
Method Summary
 EdgeAdapter getEdgeAdapter(Object edge)
          Return the model for the given edge object.
 NodeAdapter getNodeAdapter(Object node)
          Return the node model for the given object.
 
Methods inherited from class diva.graphx.GraphModel
acceptHead, acceptTail, addEdge, addGraphListener, addNode, connectEdge, disconnectEdge, dispatchGraphEvent, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDispatchEnabled, isEdge, isNode, nodes, outEdges, removeGraphListener, removeNode, setDispatchEnabled, setHead, setRoot, setTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGraphModel

public BasicGraphModel()
Construct an empty graph model.

Method Detail

getEdgeAdapter

public EdgeAdapter getEdgeAdapter(Object edge)
Return the model for the given edge object. If the object is not an edge, then return null.

Specified by:
getEdgeAdapter in class GraphModel

getNodeAdapter

public NodeAdapter getNodeAdapter(Object node)
Return the node model for the given object. If the object is not a node, then return null.

Specified by:
getNodeAdapter in class GraphModel


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.