projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made formatting uniform - commit for logicui
[Mograsim.git]
/
LogicUI
/
src
/
era
/
mi
/
gui
/
components
/
BasicGUIComponent.java
diff --git
a/LogicUI/src/era/mi/gui/components/BasicGUIComponent.java
b/LogicUI/src/era/mi/gui/components/BasicGUIComponent.java
index
45f4a64
..
daebd43
100644
(file)
--- 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).
\r
*/
\r
public void render(GeneralGC gc);
\r
* Render this component to the given gc, at coordinates (0, 0).
\r
*/
\r
public void render(GeneralGC gc);
\r
+
\r
/**
\r
/**
\r
- * Returns the bounds of this component.
\r
- * Used for calculating which component is clicked.
\r
+ * Returns the bounds of this component. Used for calculating which component is clicked.
\r
*/
\r
public Rectangle getBounds();
\r
*/
\r
public Rectangle getBounds();
\r
+
\r
/**
\r
/**
\r
- * Called when this component is clicked. Relative coordinates of the click are given.
\r
- * Returns true if this component has to be redrawn.
\r
+ * Called when this component is clicked. Relative coordinates of the click are given. Returns true if this component has to be redrawn.
\r
*/
\r
public default boolean clicked(double x, double y)
\r
{
\r
return false;
\r
}
\r
\r
*/
\r
public default boolean clicked(double x, double y)
\r
{
\r
return false;
\r
}
\r
\r
- //TODO this code will be replaced by code in BasicComponent.
\r
+ //
TODO this code will be replaced by code in BasicComponent.
\r
/**
\r
/**
\r
- * Returns how many wire arrays are connected to this component.
\r
- *
(Connections are static - they can't be removed and no new ones can be
added)
\r
+ * Returns how many wire arrays are connected to this component.
(Connections are static - they can't be removed and no new ones can be
\r
+ * added)
\r
*/
\r
public int getConnectedWireArraysCount();
\r
*/
\r
public int getConnectedWireArraysCount();
\r
+
\r
/**
\r
* Returns the n-th wire array connected to this component.
\r
*/
\r
public WireArray getConnectedWireArray(int connectionIndex);
\r
/**
\r
* Returns the n-th wire array connected to this component.
\r
*/
\r
public WireArray getConnectedWireArray(int connectionIndex);
\r
+
\r
/**
\r
* Returns relative coordinates where the n-th wire array is connected to this component.
\r
*/
\r
/**
\r
* Returns relative coordinates where the n-th wire array is connected to this component.
\r
*/
\r