uk.ac.man.cs.mig.util.graph.outputrenderer.impl
Class DotOutputGraphRenderer
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DotOutputGraphRenderer
public DotOutputGraphRenderer(NodeLabelRenderer labelRen,
EdgeLabelRenderer edgeLabelRen)
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 namedotShapeName - 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
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