Class RouteFinderController

java.lang.Object
id.klacak.bus_navigator.RouteFinderController

public class RouteFinderController extends Object
Coordinates the route-finder view with transit data and itinerary results.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    javafx.scene.layout.VBox
    Container populated with the visual rows of the selected itinerary.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a controller for the FXML route-finder view.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Replaces the displayed itinerary with rows for the supplied ride legs.
    void
    Loads the transit network and populates both stop selectors.
    void
    Gives this controller access to the application's view navigation.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • itineraryContainer

      public javafx.scene.layout.VBox itineraryContainer
      Container populated with the visual rows of the selected itinerary.
  • Constructor Details

    • RouteFinderController

      public RouteFinderController()
      Creates a controller for the FXML route-finder view.
  • Method Details

    • setMainApp

      public void setMainApp(MainApp mainApp)
      Gives this controller access to the application's view navigation.
    • initialize

      public void initialize()
      Loads the transit network and populates both stop selectors.
    • displayRoute

      public void displayRoute(List<Leg> steps)
      Replaces the displayed itinerary with rows for the supplied ride legs.
      Parameters:
      steps - ordered ride legs to display