1 package era.mi.wires.gui;
3 import org.eclipse.swt.graphics.Color;
5 import era.mi.components.gui.BasicGUIComponent;
6 import era.mi.logic.wires.WireArray;
7 import net.haspamelodica.swt.helper.gcs.GeneralGC;
8 import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
9 import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;
11 public class WireConnectionPoint implements BasicGUIComponent
13 private final WireArray wa;
14 private final int wiresCrossing;
16 public WireConnectionPoint(WireArray wa, int wiresCrossing)
19 this.wiresCrossing = wiresCrossing;
23 public void render(GeneralGC gc)
25 Color oldBG = gc.getBackground();
26 Color fg = gc.getForeground();
28 gc.fillOval(-2, -2, 4, 4);
29 gc.setBackground(oldBG);
32 public Rectangle getBounds()
34 return new Rectangle(0, 0, 0, 0);
37 public int getConnectedWireArraysCount()
42 public WireArray getConnectedWireArray(int connectionIndex)
47 public Point getWireArrayConnectionPoint(int connectionIndex)
49 return new Point(0, 0);