net.claribole.zgrviewer.dot
Class Edge

java.lang.Object
  extended bynet.claribole.zgrviewer.dot.Edge

public class Edge
extends java.lang.Object

Defines a GraphViz edge linking a node to another. GraphViz handle both directed and undirected graphs, but its edges are all coded directed, and only changing edge's drawing.

Author:
Eric Mounhem

Constructor Summary
Edge(java.lang.Object rootGraph, Node start, Node end)
          Create an Edge object going from a node to another
 
Method Summary
 void addColor(java.awt.Color edgeColor)
          Add a new color to the color's list of an edge
 void changeOption(java.lang.String name, java.lang.String value)
           
 void removeColor(java.awt.Color edgeColor)
          Remove the last color added
 void setEnd(Node end)
          Define the ending node
 void setStart(Node start)
          Define the starting node
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(java.lang.Object rootGraph,
            Node start,
            Node end)
Create an Edge object going from a node to another

Parameters:
rootGraph - Root of the graph
start - Starting node
end - Ending node
Method Detail

addColor

public void addColor(java.awt.Color edgeColor)
Add a new color to the color's list of an edge

Parameters:
edgeColor - new color to add

removeColor

public void removeColor(java.awt.Color edgeColor)
Remove the last color added

Parameters:
edgeColor - the color to remove

setStart

public void setStart(Node start)
Define the starting node

Parameters:
start -

setEnd

public void setEnd(Node end)
Define the ending node

Parameters:
end -

changeOption

public void changeOption(java.lang.String name,
                         java.lang.String value)

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2004-2005 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.