From 3841e6ed4197f1ab32307a768db61a9981cfc432 Mon Sep 17 00:00:00 2001
From: Etudiant Master SESI <irina.lee@etu.upmc.fr>
Date: Tue, 26 Jun 2018 12:34:20 +0200
Subject: [PATCH] changed connecting point in eln

---
 .../java/ui/TGConnectingPointWidthHeight.java |  9 ++++++
 src/main/java/ui/eln/ELNConnectingPoint.java  | 30 ++++++++++++-------
 2 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/src/main/java/ui/TGConnectingPointWidthHeight.java b/src/main/java/ui/TGConnectingPointWidthHeight.java
index 2aa5eab134..ce23f4c502 100755
--- a/src/main/java/ui/TGConnectingPointWidthHeight.java
+++ b/src/main/java/ui/TGConnectingPointWidthHeight.java
@@ -75,4 +75,13 @@ public class TGConnectingPointWidthHeight extends TGConnectingPoint{
     public void setH(double _h) {
         h = _h;
     }
+    
+    public double getW() {
+    	return w;
+    }
+    
+    public double getH() {
+    	return h;
+    }
 } // Class
+
diff --git a/src/main/java/ui/eln/ELNConnectingPoint.java b/src/main/java/ui/eln/ELNConnectingPoint.java
index 790b77b5ff..b58a5aa1f4 100644
--- a/src/main/java/ui/eln/ELNConnectingPoint.java
+++ b/src/main/java/ui/eln/ELNConnectingPoint.java
@@ -50,14 +50,24 @@ import ui.TGConnectingPointWidthHeight;
  * @author Irina Kit Yan LEE
  */
 
-public class ELNConnectingPoint extends TGConnectingPointWidthHeight{
+public class ELNConnectingPoint extends TGConnectingPointWidthHeight {
 	public boolean positionned;
-	
-    public ELNConnectingPoint(CDElement _container, int _x, int _y, boolean _in, boolean _out, double _w, double _h) {
-        super(_container, _x, _y, _in, _out, _w, _h);
-    }
-    
-    public boolean isCompatibleWith(int type) {
-        return type == TGComponentManager.ELN_CONNECTOR;
-    }
-}
\ No newline at end of file
+	private String name;
+
+	public ELNConnectingPoint(CDElement _container, int _x, int _y, boolean _in, boolean _out, double _w, double _h, String _name) {
+		super(_container, _x, _y, _in, _out, _w, _h);
+		name = _name;
+	}
+
+	public boolean isCompatibleWith(int type) {
+		return type == TGComponentManager.ELN_CONNECTOR;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+}
-- 
GitLab