mapss.dif
Class DIFHierarchyToDot

java.lang.Object
  extended by mapss.dif.graph.HierarchyToDot
      extended by mapss.dif.DIFHierarchyToDot

public class DIFHierarchyToDot
extends HierarchyToDot

DOT file generator for DIFHierarchy objects. It is used to create dot files as an input to GraphViz tools. A dot file is created by first defining an DIFHierarchy object and then using the HierarchyToDot.toFile(java.lang.String) method. Underlying hierarchy object is cached during the constructor call and cannot be changed afterwards.

Version:
$Id: DIFHierarchyToDot.java 409 2007-05-13 19:47:16Z plishker $
Author:
Fuat Keceli

Field Summary
 
Fields inherited from class mapss.dif.graph.HierarchyToDot
_dotGenerator, _hierarchy
 
Constructor Summary
DIFHierarchyToDot()
           
 
Method Summary
protected  java.lang.String _elementName(mocgraph.Element element)
          Returns the name of an element if it is stored in a special way.
 
Methods inherited from class mapss.dif.graph.HierarchyToDot
hierarchyGraphToDot, toFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DIFHierarchyToDot

public DIFHierarchyToDot()
Method Detail

_elementName

protected java.lang.String _elementName(mocgraph.Element element)
Description copied from class: HierarchyToDot
Returns the name of an element if it is stored in a special way. This implementation assumes the weight of the graph element is a String and uses it as the name. Other implementations can change this assumption.

Overrides:
_elementName in class HierarchyToDot
Parameters:
element - An element (node or an edge) included in the backing graph of the hierarchy.
Returns:
Weight of the element printed as a String using its toString method.