public class DotGraphEdge extends java.lang.Object implements Renderable
Constructor and Description |
---|
DotGraphEdge(DotGraphNode src,
DotGraphNode dst)
Draws a directed edge.
|
DotGraphEdge(DotGraphNode src,
DotGraphNode dst,
boolean directed)
Draws a graph edge by specifying directed or undirected.
|
Modifier and Type | Method and Description |
---|---|
void |
render(java.io.OutputStream out,
int indent) |
void |
setAttribute(DotGraphAttribute attr)
Sets an edge attribute.
|
void |
setAttribute(java.lang.String id,
java.lang.String value)
Sets an edge attribute.
|
void |
setLabel(java.lang.String label)
Sets the label for the edge.
|
void |
setStyle(java.lang.String style)
Sets the edge style.
|
public DotGraphEdge(DotGraphNode src, DotGraphNode dst)
src,
- the source nodedst,
- the end nodepublic DotGraphEdge(DotGraphNode src, DotGraphNode dst, boolean directed)
src,
- the source nodedst,
- the end nodedirected,
- the edge is directed or notpublic void setLabel(java.lang.String label)
label,
- a label stringpublic void setStyle(java.lang.String style)
style,
- a style of edgeDotGraphConstants
public void setAttribute(java.lang.String id, java.lang.String value)
id,
- the attribute id to be setvalue,
- the attribute valuepublic void setAttribute(DotGraphAttribute attr)
attr,
- a DotGraphAttribute
specifying the
attribute name and value.public void render(java.io.OutputStream out, int indent) throws java.io.IOException
render
in interface Renderable
java.io.IOException