com.gomjabbar.graph
Class GraphModel

java.lang.Object
  |
  +--com.gomjabbar.graph.GraphModel
Direct Known Subclasses:
QueryTreeGraphAdapter

public class GraphModel
extends java.lang.Object


Constructor Summary
GraphModel()
           
 
Method Summary
 void addElement(GraphElement e, double x, double y)
           
 void addRelation(GraphRelation r)
           
 int findElement(GraphElement e)
           
 java.util.Enumeration getElements()
           
 java.awt.geom.Point2D.Double getLocation(GraphElement e)
           
 java.util.Enumeration getRelations()
           
 void setLocation(GraphElement e, double x, double y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphModel

public GraphModel()
Method Detail

addElement

public void addElement(GraphElement e,
                       double x,
                       double y)

addRelation

public void addRelation(GraphRelation r)

getElements

public java.util.Enumeration getElements()

getRelations

public java.util.Enumeration getRelations()

setLocation

public void setLocation(GraphElement e,
                        double x,
                        double y)

getLocation

public java.awt.geom.Point2D.Double getLocation(GraphElement e)

findElement

public int findElement(GraphElement e)