public class DotGraphEdge extends 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(OutputStream out,
int indent) |
void |
setAttribute(DotGraphAttribute attr)
Sets an edge attribute.
|
void |
setAttribute(String id,
String value)
Sets an edge attribute.
|
void |
setLabel(String label)
Sets the label for the edge.
|
void |
setStyle(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(String label)
label,
- a label stringpublic void setStyle(String style)
style,
- a style of edgeDotGraphConstants
public void setAttribute(String id, 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(OutputStream out, int indent) throws IOException
render
in interface Renderable
IOException