Added comments in BasicGUIComponent
[Mograsim.git] / LogicUI / src / era / mi / components / gui / BasicGUIComponent.java
1 package era.mi.components.gui;
2
3 import era.mi.logic.wires.WireArray;
4 import net.haspamelodica.swt.helper.gcs.GeneralGC;
5 import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
6
7 public interface BasicGUIComponent
8 {
9         /**
10          * Render this component to the given gc, at coordinates (0, 0).
11          */
12         public void render(GeneralGC gc);
13
14         //TODO this code will be replaced by code in BasicComponent.
15         /**
16          * Returns how many wire arrays are connected to this component.
17          * (Connections are static - they can't be removed and no new ones can be added)
18          */
19         public int getConnectedWireArraysCount();
20         /**
21          * Returns the n-th wire array connected to this component.
22          */
23         public WireArray getConnectedWireArray(int connectionIndex);
24         /**
25          * Returns relative coordinates where the n-th wire array is connected to this component.
26          */
27         public Point getWireArrayConnectionPoint(int connectionIndex);
28 }