X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fcomponents%2Fgui%2FBasicGUIComponent.java;h=f7e7d370763557be1a875604314b8d09bf6615e7;hb=9a2d3f18de74d15dc9507d124d5d3b62a2a4d53e;hp=92ec7775638befbf0f62efeb29fddd0c3eded684;hpb=e61b78a7110a18d72ac834a4b1bce470636efd90;p=Mograsim.git diff --git a/LogicUI/src/era/mi/components/gui/BasicGUIComponent.java b/LogicUI/src/era/mi/components/gui/BasicGUIComponent.java index 92ec7775..f7e7d370 100644 --- a/LogicUI/src/era/mi/components/gui/BasicGUIComponent.java +++ b/LogicUI/src/era/mi/components/gui/BasicGUIComponent.java @@ -6,9 +6,23 @@ import net.haspamelodica.swt.helper.swtobjectwrappers.Point; public interface BasicGUIComponent { + /** + * Render this component to the given gc, at coordinates (0, 0). + */ public void render(GeneralGC gc); + //TODO this code will be replaced by code in BasicComponent. + /** + * Returns how many wire arrays are connected to this component. + * (Connections are static - they can't be removed and no new ones can be added) + */ public int getConnectedWireArraysCount(); + /** + * Returns the n-th wire array connected to this component. + */ public WireArray getConnectedWireArray(int connectionIndex); + /** + * Returns relative coordinates where the n-th wire array is connected to this component. + */ public Point getWireArrayConnectionPoint(int connectionIndex); } \ No newline at end of file