1 package era.mi.gui.model.wires;
3 import era.mi.gui.model.components.GUIComponent;
4 import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
5 import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;
9 public final GUIComponent component;
10 protected double relX;
11 protected double relY;
13 public Pin(GUIComponent component, double relX, double relY)
15 this.component = component;
20 public double getRelX()
25 public double getRelY()
30 public Point getRelPos()
32 return new Point(relX, relY);
37 Rectangle componentBounds = component.getBounds();
38 return new Point(relX + componentBounds.x, relY + componentBounds.y);
41 protected void setRelPos(double relX, double relY)