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

changed connecting point in eln

parent 7f423066
No related branches found
No related tags found
1 merge request!72Syscams
......@@ -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
......@@ -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;
}
}
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