public class Controller
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private OceanInterface |
myOcean
The ocean is a part of the model.
|
private OceanGUIInterface |
myOceanGUI
The oceanGUI is a part of the GUI
|
Constructor and Description |
---|
Controller(OceanInterface model,
OceanGUIInterface view) |
Modifier and Type | Method and Description |
---|---|
private void |
addButtonListeners()
Adds the button listeners to OceanGUI.
|
private void |
addMouseControllers()
Adds the mouse controller to OceanGUI.
|
private OceanInterface |
getMyOcean()
Gets the my ocean attribute.
|
private OceanGUIInterface |
getMyOceanGUI()
Gets the my oceanGUI attribute.
|
private void |
setMyOcean(OceanInterface myOcean)
Sets the myOcean attribute.
|
private void |
setMyOceanGUI(OceanGUIInterface view)
Sets the myOceanGUI attribute.
|
private OceanInterface myOcean
private OceanGUIInterface myOceanGUI
public Controller(OceanInterface model, OceanGUIInterface view)
private OceanInterface getMyOcean()
private OceanGUIInterface getMyOceanGUI()
private void setMyOcean(OceanInterface myOcean)
myOcean
- the ocean we work withprivate void setMyOceanGUI(OceanGUIInterface view)
view
- the GUI we work withprivate void addButtonListeners()
private void addMouseControllers()