Class HotspotsController

java.lang.Object
com.example.cab302project.HotspotsController

public class HotspotsController extends Object
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 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.