public interface GUIController
| Modifier and Type | Method and Description |
|---|---|
MapArea |
addMapPane(int x,
int y)
Create a tab with an empty matrix.
|
MapArea |
addMapPane(List<String> file)
Create a new tab containing the results of file executing.
|
void |
closeApp()
Close the application.
|
void |
executeCommands(MowerCommands command)
Make the current mower to execute the command.
|
void |
executeProgramState(int abscissa,
int ordinate)
Execute the action corresponding to the program state on the selected area.
|
Mower |
getCurrentlySelectedMower()
Get the current selected mower.
|
MapArea |
getCurrentMap()
Get the currently selected map.
|
ProgramState |
getProgramState()
Return the program state, the state corresponds to the action that will be executed by executeProgramState.
|
void |
reloadApp()
Reload the interfaces and restore the saved data.
|
void |
resetApp()
Reset the app with empty data.
|
void |
setCurrentMap(MapArea mapArea)
Set the currently selected map.
|
void |
setGlobalText(String message)
Set the message text readable from anywhere.
|
void |
setProgramState(ProgramState state)
Set the program state.
|
void setGlobalText(String message)
message - the message to setMapArea addMapPane(List<String> file)
file - the file to execute.MapArea addMapPane(int x, int y)
x - the width of the matrixy - the height of the matrixvoid executeCommands(MowerCommands command)
command - the command to execute.Mower getCurrentlySelectedMower()
ProgramState getProgramState()
void setProgramState(ProgramState state)
state - the program statevoid executeProgramState(int abscissa,
int ordinate)
abscissa - the abscissa of the selected areaordinate - the ordinate of the selected areavoid closeApp()
void reloadApp()
MapArea getCurrentMap()
void setCurrentMap(MapArea mapArea)
mapArea - the currently selected mapvoid resetApp()
Copyright © 2016. All Rights Reserved.