X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fcomponents%2FBasicGUIComponent.java;h=daebd4339c66e5c897f2c89662cb4716985d33b5;hb=32a3d41c11b96c2530c25b6059b4341a8b34a2e2;hp=45f4a64200a0c98ed30fd179fbc93fdcf93a0195;hpb=9c31e87700d7a4872f9caaa8bd3afe1f023d9926;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/components/BasicGUIComponent.java b/LogicUI/src/era/mi/gui/components/BasicGUIComponent.java index 45f4a642..daebd433 100644 --- a/LogicUI/src/era/mi/gui/components/BasicGUIComponent.java +++ b/LogicUI/src/era/mi/gui/components/BasicGUIComponent.java @@ -11,30 +11,32 @@ public interface BasicGUIComponent * Render this component to the given gc, at coordinates (0, 0). */ public void render(GeneralGC gc); + /** - * Returns the bounds of this component. - * Used for calculating which component is clicked. + * Returns the bounds of this component. Used for calculating which component is clicked. */ public Rectangle getBounds(); + /** - * Called when this component is clicked. Relative coordinates of the click are given. - * Returns true if this component has to be redrawn. + * Called when this component is clicked. Relative coordinates of the click are given. Returns true if this component has to be redrawn. */ public default boolean clicked(double x, double y) { return false; } - //TODO this code will be replaced by code in BasicComponent. + // 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) + * 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. */