Search in sources :

Example 1 with SetConnectionSourceNodeCommand

use of org.kie.workbench.common.stunner.core.graph.command.impl.SetConnectionSourceNodeCommand in project kie-wb-common by kiegroup.

the class GraphBuilder method addEdge.

private void addEdge(Edge<? extends View<?>, Node> edge, Node source, Connection sourceConnection, Node target, Connection targetConnection) {
    SetConnectionSourceNodeCommand setSourceNode = commandFactory.setSourceNode(source, edge, sourceConnection);
    SetConnectionTargetNodeCommand setTargetNode = commandFactory.setTargetNode(target, edge, targetConnection);
    execute(setSourceNode);
    execute(setTargetNode);
}
Also used : SetConnectionTargetNodeCommand(org.kie.workbench.common.stunner.core.graph.command.impl.SetConnectionTargetNodeCommand) SetConnectionSourceNodeCommand(org.kie.workbench.common.stunner.core.graph.command.impl.SetConnectionSourceNodeCommand)

Aggregations

SetConnectionSourceNodeCommand (org.kie.workbench.common.stunner.core.graph.command.impl.SetConnectionSourceNodeCommand)1 SetConnectionTargetNodeCommand (org.kie.workbench.common.stunner.core.graph.command.impl.SetConnectionTargetNodeCommand)1