Changed the raw data GUI for flights and testing new branch

main
Liam Beckett 9 years ago
parent 4418bc6824
commit 399d1eb069

@ -1,7 +1,9 @@
package seng202.group9.GUI; package seng202.group9.GUI;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.control.TableColumn;
import seng202.group9.Controller.App; import seng202.group9.Controller.App;
import seng202.group9.Controller.Dataset;
import java.net.URL; import java.net.URL;
import java.util.ResourceBundle; import java.util.ResourceBundle;
@ -11,12 +13,22 @@ import java.util.ResourceBundle;
*/ */
public class FlightRawDataController implements Initializable { public class FlightRawDataController implements Initializable {
//TableColumn<>
private Dataset theDataSet = null;
App parent; App parent;
public void setApp(App parent){ public void setApp(App parent){
this.parent = parent; this.parent = parent;
} }
//public void loadTables() {
//}
public void initialize(URL arg0, ResourceBundle arg1) { public void initialize(URL arg0, ResourceBundle arg1) {
// TODO Auto-generated method stub // TODO Auto-generated method stub

@ -10,62 +10,92 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seng202.group9.GUI.FlightRawDataController"> <VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seng202.group9.GUI.FlightRawDataController">
<children> <children>
<ScrollPane hbarPolicy="NEVER" prefHeight="603.0" prefWidth="751.0" vbarPolicy="ALWAYS">
<content>
<AnchorPane prefHeight="371.0" prefWidth="600.0"> <AnchorPane prefHeight="371.0" prefWidth="600.0">
<children> <children>
<HBox prefHeight="300.0" prefWidth="583.0"> <GridPane prefHeight="600.0" prefWidth="800.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints maxHeight="193.0" minHeight="10.0" prefHeight="33.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="193.0" minHeight="10.0" prefHeight="73.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="504.0" minHeight="10.0" prefHeight="434.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="62.0" minHeight="10.0" prefHeight="62.0" vgrow="SOMETIMES" />
</rowConstraints>
<children> <children>
<AnchorPane prefHeight="300.0" prefWidth="330.0"> <GridPane GridPane.rowIndex="2">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="393.0" minWidth="10.0" prefWidth="150.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="651.0" minWidth="10.0" prefWidth="650.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children> <children>
<Pane layoutY="-6.0" prefHeight="60.0" prefWidth="274.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="309.0" AnchorPane.topAnchor="0.0"> <Pane prefHeight="434.0" prefWidth="304.0">
<children> <children>
<Text layoutX="15.0" layoutY="40.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Flight Raw Data"> <ListView layoutX="25.0" prefHeight="411.0" prefWidth="100.0">
<font> <padding>
<Font size="29.0" /> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</font> </padding>
</Text> </ListView>
</children> </children>
</Pane> </Pane>
<Pane layoutY="52.0" prefHeight="240.0" prefWidth="583.0" AnchorPane.bottomAnchor="0.0"> <GridPane prefHeight="473.0" prefWidth="650.0" GridPane.columnIndex="1">
<children> <columnConstraints>
<Pane layoutX="15.0" prefHeight="220.0" prefWidth="120.0"> <ColumnConstraints hgrow="SOMETIMES" maxWidth="617.0" minWidth="10.0" prefWidth="607.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="318.0" minWidth="10.0" prefWidth="43.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints maxHeight="414.0" minHeight="10.0" prefHeight="374.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="137.0" minHeight="1.0" prefHeight="60.0" vgrow="SOMETIMES" />
</rowConstraints>
<children> <children>
<ScrollBar layoutX="100.0" orientation="VERTICAL" prefHeight="240.0" prefWidth="17.0" /> <ScrollPane prefHeight="292.0" prefWidth="650.0">
<ListView prefHeight="240.0" prefWidth="100.0" />
<Group layoutX="60.0" layoutY="31.0" />
</children>
</Pane>
<ScrollPane layoutX="141.0" prefHeight="240.0" prefWidth="430.0">
<content> <content>
<TableView prefHeight="238.0" prefWidth="750.0"> <TableView>
<columns> <columns>
<TableColumn prefWidth="75.0" text="ID" /> <TableColumn prefWidth="75.0" text="ID" />
<TableColumn prefWidth="100.0" text="Name" />
<TableColumn prefWidth="75.0" text="Type" /> <TableColumn prefWidth="75.0" text="Type" />
<TableColumn prefWidth="75.0" text="Via" /> <TableColumn prefWidth="100.0" text="Via" />
<TableColumn prefWidth="75.0" text="Altitude" /> <TableColumn prefWidth="75.0" text="Altitude" />
<TableColumn prefWidth="75.0" text="Latitude" /> <TableColumn prefWidth="100.0" text="Latitude" />
<TableColumn prefWidth="75.0" text="Longitude" /> <TableColumn prefWidth="100.0" text="Longitude" />
<TableColumn prefWidth="100.0" text="Heading" />
<TableColumn prefWidth="75.0" text="Leg Dist" /> <TableColumn prefWidth="75.0" text="Leg Dist" />
<TableColumn prefWidth="75.0" text="Tot Dist" /> <TableColumn prefWidth="75.0" text="Tot Dist" />
<TableColumn prefWidth="75.0" text="Heading (True)" />
<TableColumn prefWidth="75.0" text="Name" />
</columns> </columns>
</TableView> </TableView>
</content> </content>
</ScrollPane> </ScrollPane>
<Pane GridPane.rowIndex="1">
<children>
<Button layoutX="540.0" layoutY="10.0" mnemonicParsing="false" text="Analyse" GridPane.rowIndex="1" />
</children> </children>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</Pane> </Pane>
</children> </children>
</AnchorPane> </GridPane>
</children>
</GridPane>
<Pane prefHeight="135.0" prefWidth="400.0" GridPane.rowIndex="1">
<children>
<Text layoutX="24.0" layoutY="45.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Flight Raw Data">
<font>
<Font size="48.0" />
</font>
</Text>
</children>
</Pane>
</children> </children>
</HBox> </GridPane>
<ScrollBar layoutX="583.0" orientation="VERTICAL" prefHeight="371.0" prefWidth="17.0" />
<Button layoutX="501.0" layoutY="315.0" mnemonicParsing="false" text="Analyse" />
</children> </children>
</AnchorPane> </AnchorPane>
</content>
</ScrollPane>
</children> </children>
</VBox> </VBox>

Loading…
Cancel
Save