Skip to content
Snippets Groups Projects
Commit a21dbfd6 authored by Irina LEE's avatar Irina LEE
Browse files

changed editable condition to false in connector (eln)

parent 8d9c5a1d
No related branches found
No related tags found
1 merge request!72Syscams
...@@ -166,7 +166,6 @@ public class ELNConnector extends TGConnector implements ScalableTGComponent { ...@@ -166,7 +166,6 @@ public class ELNConnector extends TGConnector implements ScalableTGComponent {
Stroke dashed = new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[] { 9 }, 0); Stroke dashed = new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[] { 9 }, 0);
g.setStroke(dashed); g.setStroke(dashed);
GraphicLib.arrowWithLine(g, 1, 0, 10, x1, y1, x2, y2, true); GraphicLib.arrowWithLine(g, 1, 0, 10, x1, y1, x2, y2, true);
editable = true;
g.drawString(value, (x1 + x2 - w) / 2, (y1 + y2) / 2); g.drawString(value, (x1 + x2 - w) / 2, (y1 + y2) / 2);
} else if (pt2.getFather() instanceof ELNModulePortDE && pt1.getFather() instanceof ELNClusterPortDE) { } else if (pt2.getFather() instanceof ELNModulePortDE && pt1.getFather() instanceof ELNClusterPortDE) {
((ELNClusterPortDE) pt1.getFather()).setPortType(((ELNModulePortDE) pt2.getFather()).getPortType()); ((ELNClusterPortDE) pt1.getFather()).setPortType(((ELNModulePortDE) pt2.getFather()).getPortType());
...@@ -181,7 +180,6 @@ public class ELNConnector extends TGConnector implements ScalableTGComponent { ...@@ -181,7 +180,6 @@ public class ELNConnector extends TGConnector implements ScalableTGComponent {
Stroke dashed = new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[] { 9 }, 0); Stroke dashed = new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[] { 9 }, 0);
g.setStroke(dashed); g.setStroke(dashed);
GraphicLib.arrowWithLine(g, 1, 0, 10, x1, y1, x2, y2, true); GraphicLib.arrowWithLine(g, 1, 0, 10, x1, y1, x2, y2, true);
editable = true;
g.drawString(value, (x1 + x2 - w) / 2, (y1 + y2) / 2); g.drawString(value, (x1 + x2 - w) / 2, (y1 + y2) / 2);
} else if ((pt1.getFather() instanceof ELNModulePortTDF && pt2.getFather() instanceof ELNModulePortTDF) || (pt2.getFather() instanceof ELNModulePortTDF && pt1.getFather() instanceof ELNModulePortTDF)) { } else if ((pt1.getFather() instanceof ELNModulePortTDF && pt2.getFather() instanceof ELNModulePortTDF) || (pt2.getFather() instanceof ELNModulePortTDF && pt1.getFather() instanceof ELNModulePortTDF)) {
String name1 = ((ELNModulePortTDF) pt1.getFather()).getValue(); String name1 = ((ELNModulePortTDF) pt1.getFather()).getValue();
...@@ -190,7 +188,6 @@ public class ELNConnector extends TGConnector implements ScalableTGComponent { ...@@ -190,7 +188,6 @@ public class ELNConnector extends TGConnector implements ScalableTGComponent {
value = name1; value = name1;
} }
GraphicLib.arrowWithLine(g, 1, 0, 10, x1, y1, x2, y2, true); GraphicLib.arrowWithLine(g, 1, 0, 10, x1, y1, x2, y2, true);
editable = true;
g.drawString(value, (x1 + x2 - w) / 2, (y1 + y2) / 2); g.drawString(value, (x1 + x2 - w) / 2, (y1 + y2) / 2);
} else if (pt1.getFather() instanceof ELNModulePortTDF && pt2.getFather() instanceof ELNClusterPortTDF) { } else if (pt1.getFather() instanceof ELNModulePortTDF && pt2.getFather() instanceof ELNClusterPortTDF) {
((ELNClusterPortTDF) pt2.getFather()).setPortType(((ELNModulePortTDF) pt1.getFather()).getPortType()); ((ELNClusterPortTDF) pt2.getFather()).setPortType(((ELNModulePortTDF) pt1.getFather()).getPortType());
...@@ -203,7 +200,6 @@ public class ELNConnector extends TGConnector implements ScalableTGComponent { ...@@ -203,7 +200,6 @@ public class ELNConnector extends TGConnector implements ScalableTGComponent {
value = name1; value = name1;
} }
GraphicLib.arrowWithLine(g, 1, 0, 10, x1, y1, x2, y2, true); GraphicLib.arrowWithLine(g, 1, 0, 10, x1, y1, x2, y2, true);
editable = true;
g.drawString(value, (x1 + x2 - w) / 2, (y1 + y2) / 2); g.drawString(value, (x1 + x2 - w) / 2, (y1 + y2) / 2);
} else if (pt2.getFather() instanceof ELNModulePortTDF && pt1.getFather() instanceof ELNClusterPortTDF) { } else if (pt2.getFather() instanceof ELNModulePortTDF && pt1.getFather() instanceof ELNClusterPortTDF) {
((ELNClusterPortTDF) pt1.getFather()).setPortType(((ELNModulePortTDF) pt2.getFather()).getPortType()); ((ELNClusterPortTDF) pt1.getFather()).setPortType(((ELNModulePortTDF) pt2.getFather()).getPortType());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment