|
|
|
@ -23,6 +23,8 @@ public class BarChooserController extends Controller{
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
ChoiceBox datatypechooser;
|
|
|
|
ChoiceBox datatypechooser;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
|
|
|
|
ListView graph_against;
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
ListView graph_options;
|
|
|
|
ListView graph_options;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
CheckBox usefilter;
|
|
|
|
CheckBox usefilter;
|
|
|
|
@ -30,17 +32,18 @@ public class BarChooserController extends Controller{
|
|
|
|
ObservableList airportOptions = FXCollections.observableArrayList("Name", "ICAO", "IATA FFA", "Altitude",
|
|
|
|
ObservableList airportOptions = FXCollections.observableArrayList("Name", "ICAO", "IATA FFA", "Altitude",
|
|
|
|
"City", "Country");
|
|
|
|
"City", "Country");
|
|
|
|
|
|
|
|
|
|
|
|
ObservableList airlineOptions = FXCollections.observableArrayList("Name", "ICAO", "IATA", "Alias",
|
|
|
|
ObservableList airlineOptions = FXCollections.observableArrayList("ID", "Name", "ICAO", "IATA", "Alias",
|
|
|
|
"Call Sign", "Active", "Country");
|
|
|
|
"Call Sign", "Active", "Country");
|
|
|
|
|
|
|
|
|
|
|
|
ObservableList routeOptions = FXCollections.observableArrayList("Stops", "Codeshare", "Equipment", "Airline",
|
|
|
|
ObservableList routeOptions = FXCollections.observableArrayList("ID", "Stops", "Codeshare", "Equipment", "Airline",
|
|
|
|
"Departure Airport", "Arival airport");
|
|
|
|
"Departure Airport", "Arival airport");
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList<ObservableList> allOptions = new ArrayList<ObservableList>();
|
|
|
|
ArrayList<ObservableList> allOptions = new ArrayList<ObservableList>();
|
|
|
|
|
|
|
|
|
|
|
|
public void buildGraph() {
|
|
|
|
public void buildGraph() {
|
|
|
|
Session currentsession = this.getParent().getSession();
|
|
|
|
Session currentsession = this.getParent().getSession();
|
|
|
|
currentsession.setSelectedgraphoptions(graph_options.getSelectionModel().getSelectedItem().toString());
|
|
|
|
currentsession.setSelectedgraphoptions(graph_against.getSelectionModel().getSelectedItem().toString());
|
|
|
|
|
|
|
|
currentsession.setSelectedgraphagainst(graph_options.getSelectionModel().getSelectedItem().toString());
|
|
|
|
currentsession.setUsefilter(usefilter.isSelected());
|
|
|
|
currentsession.setUsefilter(usefilter.isSelected());
|
|
|
|
currentsession.setForceGraph(Boolean.FALSE);
|
|
|
|
currentsession.setForceGraph(Boolean.FALSE);
|
|
|
|
replaceSceneContent(SceneCode.ROUTE_ANALYSER);
|
|
|
|
replaceSceneContent(SceneCode.ROUTE_ANALYSER);
|
|
|
|
@ -50,6 +53,7 @@ public class BarChooserController extends Controller{
|
|
|
|
|
|
|
|
|
|
|
|
public void changeTables(){
|
|
|
|
public void changeTables(){
|
|
|
|
int temp = datatypechooser.getSelectionModel().getSelectedIndex();
|
|
|
|
int temp = datatypechooser.getSelectionModel().getSelectedIndex();
|
|
|
|
|
|
|
|
graph_against.setItems(allOptions.get(temp));
|
|
|
|
graph_options.setItems(allOptions.get(temp));
|
|
|
|
graph_options.setItems(allOptions.get(temp));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -64,6 +68,8 @@ public class BarChooserController extends Controller{
|
|
|
|
changeTables();
|
|
|
|
changeTables();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
graph_against.setItems(airportOptions);
|
|
|
|
|
|
|
|
graph_against.getSelectionModel().selectFirst();
|
|
|
|
graph_options.setItems(airportOptions);
|
|
|
|
graph_options.setItems(airportOptions);
|
|
|
|
graph_options.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
|
|
|
|
graph_options.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
|
|
|
|
graph_options.getSelectionModel().selectFirst();
|
|
|
|
graph_options.getSelectionModel().selectFirst();
|
|
|
|
|