diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/stages/PushPullSelectionStage.java b/AlgebraicDataflowArchitectureModel/src/application/editor/stages/PushPullSelectionStage.java index b8f3bd2..eab8368 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/stages/PushPullSelectionStage.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/stages/PushPullSelectionStage.java @@ -242,17 +242,17 @@ // output edge DataTransferChannel channel = ((ChannelNode) dataFlowEdge.getSource()).getChannel(); ResourcePath dstRes = ((ResourceNode) dataFlowEdge.getDestination()).getInSideResource(channel); - graph.insertEdge(layer, null, new Editor.SrcDstAttribute(channel, dstRes), channelOutToCell.get(channel), resNodeToCell.get((ResourceNode) dataFlowEdge.getDestination()), "movable=false"); + graph.insertEdge(layer, null, new Editor.SrcDstAttribute(channel, dstRes), channelOutToCell.get(channel), resNodeToCell.get((ResourceNode) dataFlowEdge.getDestination()), "strokeColor=red;movable=false"); } else { // input edge DataTransferChannel channel = ((ChannelNode) dataFlowEdge.getDestination()).getChannel(); ResourcePath srcRes = ((ResourceNode) dataFlowEdge.getSource()).getOutSideResource(channel); Set> toRes = getResourceDependencyForChannel(channel, dataFlowGraph); for (Map.Entry RtoR : toRes) { - graph.insertEdge(layer, null, null, resNodeToCell.get(RtoR.getValue()), resNodeToCell.get(RtoR.getKey()), "dashed=true;movable=false"); + graph.insertEdge(layer, null, null, resNodeToCell.get(RtoR.getValue()), resNodeToCell.get(RtoR.getKey()), "strokeColor=red;dashed=true;movable=false"); } - graph.insertEdge(layer, null, new Editor.SrcDstAttribute(srcRes, channel), resNodeToCell.get((ResourceNode) dataFlowEdge.getSource()), channelInToCell.get(channel), "movable=false"); + graph.insertEdge(layer, null, new Editor.SrcDstAttribute(srcRes, channel), resNodeToCell.get((ResourceNode) dataFlowEdge.getSource()), channelInToCell.get(channel), "strokeColor=red;movable=false"); } } @@ -260,7 +260,7 @@ // reference edges DataTransferChannel channel = (DataTransferChannel) ch; for (ResourcePath refRes : channel.getReferenceResources()) { - graph.insertEdge(layer, null, null, resNodeToCell.get(dataFlowGraph.getResourceNode(refRes)), channelInToCell.get(channel), "dashed=true;movable=false"); + graph.insertEdge(layer, null, null, resNodeToCell.get(dataFlowGraph.getResourceNode(refRes)), channelInToCell.get(channel), "strokeColor=red;dashed=true;movable=false"); } } } finally {