Rev 15 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 15 | Rev 73 | ||
|---|---|---|---|
| 1 | /* |
1 | /* |
| 2 | * MbModuleGUI.java |
2 | * MbModuleGUI.java |
| 3 | * |
3 | * |
| 4 | * Created on den 30 augusti 2003, 19:00 |
4 | * Created on den 30 augusti 2003, 19:00 |
| 5 | */ |
5 | */ |
| 6 | package Macbeth.System; |
6 | package Macbeth.System; |
| 7 | 7 | ||
| 8 | import java.awt.*; |
8 | import java.awt.*; |
| 9 | 9 | ||
| 10 | /** |
10 | /** |
| 11 | * Implement this interface if your macbeth module has |
11 | * Implement this interface if your macbeth module has |
| 12 | * a custom GUI. The GUI should be rendered onto the |
12 | * a custom GUI. The GUI should be rendered onto the |
| 13 | * Container given by the kernel. Note that there is no |
13 | * Container given by the kernel. Note that there is no |
| 14 | * guarantee that the gui will ever be shown at all. |
14 | * guarantee that the gui will ever be shown at all. |
| 15 | * This is completely up to the kernel to decide. |
15 | * This is completely up to the kernel to decide. |
| 16 | * @author Jimmy |
16 | * @author Jimmy |
| 17 | */ |
17 | */ |
| 18 | public interface MbModuleGUI { |
18 | public interface MbModuleGUI { |
| 19 | 19 | ||
| 20 | /** |
20 | /** |
| 21 | * Will be called when the module needs to render its |
21 | * Will be called when the module needs to render its |
| 22 | * custom GUI. Note that you should only use Swing- |
22 | * custom GUI. Note that you should only use Swing- |
| 23 | * objects when creating the GUI. |
23 | * objects when creating the GUI. |
| 24 | * @param drawArea The Container object on which the GUI objects should be added. |
24 | * @param drawArea The Container object on which the GUI objects should be added. |
| 25 | */ |
25 | */ |
| 26 | public void renderGUI(Container drawArea); |
26 | public void renderGUI(Container drawArea); |
| 27 | 27 | ||
| 28 | } |
28 | } |