Search in sources :

Example 1 with Shape

use of guru.nidi.graphviz.attribute.Shape in project oozie by apache.

the class GraphvizRenderer method addNode.

@Override
public void addNode(final WorkflowActionNode node) {
    final Shape shape = getShape(node.getType());
    final Color color = getColor(node.getStatus());
    final Node graphvizNode = Factory.node(node.getName()).with(shape).with(color);
    graphvizNodes.put(node.getName(), graphvizNode);
}
Also used : Shape(guru.nidi.graphviz.attribute.Shape) Color(guru.nidi.graphviz.attribute.Color) Node(guru.nidi.graphviz.model.Node)

Aggregations

Color (guru.nidi.graphviz.attribute.Color)1 Shape (guru.nidi.graphviz.attribute.Shape)1 Node (guru.nidi.graphviz.model.Node)1