public class SvgCanvas extends Object
| Constructor and Description |
|---|
SvgCanvas(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
String |
getGraph()
Return the whole graph as SVG
|
void |
node(Node n)
Produce the graph for a node
|
Connection |
transitionNodeToNode(Transition t)
Arrow between two nodes
|
void |
transitionToSelf(Transition t,
double angle)
Self loop.
|
public void node(Node n)
n - is the nodepublic Connection transitionNodeToNode(Transition t)
t - the transitionpublic void transitionToSelf(Transition t, double angle)
t - is the transition.angle - the best angle from the node to the excentric circlepublic String getGraph()
Copyright © 2017. All rights reserved.