java.lang.Object
com.example.cab302project.HotspotsController
Controller for the dedicated hotspots map screen (hotspots-view.fxml).
Loads and displays the hotspot cluster map, grouping nearby crime records
into hotspots using the Haversine distance formula. Accessible from the
hamburger menu as a standalone full-screen map view.
-
Constructor Summary
ConstructorsConstructorDescriptionInitialises the controller with the shared database instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidLoads the hotspot map and sets the active navigation tab.voidNavigates back to the dashboard view.
-
Constructor Details
-
HotspotsController
public HotspotsController()Initialises the controller with the shared database instance.
-
-
Method Details
-
initialize
public void initialize()Loads the hotspot map and sets the active navigation tab. -
onBackButtonClick
public void onBackButtonClick()Navigates back to the dashboard view.
-