public class TabMapController extends Object
Constructor and Description |
---|
TabMapController(GUIController guiController,
MowerController controller,
LanguageManagerInterface languageManager)
Basic constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createTab(MapArea map)
Create a new tab with a visualization matrix which correspond to the provided map.
|
void |
redrawMatrix(MapArea map)
Redraw the matrix which is related to the given map.
|
void |
redrawMatrix(MatrixVisualizerPane mvp)
Redraw the matrix's canvas.
|
void |
redrawMatrixes()
Redraw all matrix.
|
void |
reloadMatrixes()
Fetch all the map and mowers from the main controller and recreate all the tab and matrix.
|
void |
setCurrentTab(MapArea map)
Set the focus on the corresponding tab.
|
@Inject public TabMapController(GUIController guiController, MowerController controller, LanguageManagerInterface languageManager)
guiController
- the main GUI controller which orchestrate the GUI's componentcontroller
- the mowers controller to executes the different commandslanguageManager
- the language manager for internationalizationpublic void createTab(MapArea map)
map
- the map on which the matrix visualizer will be based onpublic void redrawMatrix(MatrixVisualizerPane mvp)
mvp
- the visualizer to redrawpublic void redrawMatrix(MapArea map)
map
- the map related to an existing visualizer to redraw.public void redrawMatrixes()
public void reloadMatrixes()
public void setCurrentTab(MapArea map)
map
- the selected map presents in a mapCopyright © 2016. All Rights Reserved.