Protege 4.1.0

uk.ac.man.cs.mig.util.graph.outputrenderer.impl
Class DotOutputGraphRenderer

java.lang.Object
  extended by uk.ac.man.cs.mig.util.graph.outputrenderer.impl.DotOutputGraphRenderer
All Implemented Interfaces:
GraphOutputRenderer
Direct Known Subclasses:
DotSubGraphOutputRenderer

public class DotOutputGraphRenderer
extends Object
implements GraphOutputRenderer

User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Jan 16, 2004

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm


Field Summary
static String LAYOUT_DIRECTION
           
static String RANK_SPACING
           
static String SIBLING_SPACING
           
protected  BufferedWriter writer
           
 
Constructor Summary
DotOutputGraphRenderer(NodeLabelRenderer labelRen, EdgeLabelRenderer edgeLabelRen)
           
 
Method Summary
protected  void closeGraph()
           
static void registerShapeMapping(Class nodeClass, String dotShapeName)
          Adds a map to convert a class of node to a dot shape name.
protected  void renderEdge(Edge edge)
           
 void renderGraph(Graph graph, OutputStream os)
           
protected  void renderNode(Node node)
           
 void setRendererOption(String attribute, String value)
           
protected  void writeHeader(Graph graph)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected BufferedWriter writer

LAYOUT_DIRECTION

public static final String LAYOUT_DIRECTION
See Also:
Constant Field Values

RANK_SPACING

public static final String RANK_SPACING
See Also:
Constant Field Values

SIBLING_SPACING

public static final String SIBLING_SPACING
See Also:
Constant Field Values
Constructor Detail

DotOutputGraphRenderer

public DotOutputGraphRenderer(NodeLabelRenderer labelRen,
                              EdgeLabelRenderer edgeLabelRen)
Method Detail

registerShapeMapping

public static void registerShapeMapping(Class nodeClass,
                                        String dotShapeName)
Adds a map to convert a class of node to a dot shape name. (e.g. by default, Rectangle.class maps to "box")

Parameters:
nodeClass - The class of the node to map to a dot shape name
dotShapeName - The name of the dot shape.

setRendererOption

public void setRendererOption(String attribute,
                              String value)
Specified by:
setRendererOption in interface GraphOutputRenderer

renderGraph

public void renderGraph(Graph graph,
                        OutputStream os)
Specified by:
renderGraph in interface GraphOutputRenderer

renderNode

protected void renderNode(Node node)
                   throws IOException
Throws:
IOException

renderEdge

protected void renderEdge(Edge edge)
                   throws IOException
Throws:
IOException

writeHeader

protected void writeHeader(Graph graph)
                    throws IOException
Throws:
IOException

closeGraph

protected void closeGraph()
                   throws IOException
Throws:
IOException

Protege 4.1.0

Submit a bug report or feature request

For further API reference and developer documentation, see Protege 4 Developer Documentation.

Copyright © 2010 Stanford Center for Biomedical Informatics Research