Skip to content

Commit

Permalink
Soluzione Esercizio 1
Browse files Browse the repository at this point in the history
  • Loading branch information
JIMMY committed May 16, 2017
1 parent cdf74e1 commit 18314f0
Show file tree
Hide file tree
Showing 56 changed files with 744 additions and 2,341 deletions.
Binary file removed DB/database.png
Binary file not shown.
Binary file removed DB/metro-Paris.pdf
Binary file not shown.
2,231 changes: 0 additions & 2,231 deletions DB/metroparis.sql

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 0 additions & 8 deletions Lab09_MetroDeParis/build.fxbuild

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions Lab09_MetroDeParis/src/it/polito/tdp/metrodeparis/dao/TestDAO.java

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Lab09_MetroDeParis</name>
<name>Lab09_MetroDeParis_Sol1</name>
<comment></comment>
<projects>
</projects>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>

<BorderPane id="BorderPane" maxHeight="-1.0" maxWidth="-1.0" minHeight="-1.0" minWidth="-1.0" prefHeight="-1.0" prefWidth="-1.0" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1" fx:controller="it.polito.tdp.metrodeparis.MetroDeParisController">
<center>
<VBox prefHeight="-1.0" prefWidth="-1.0">
<children>
<HBox alignment="CENTER" prefHeight="44.0" prefWidth="498.0">
<children>
<ImageView fitHeight="87.0" fitWidth="108.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../../../../../rsc/RATP.png" />
</image>
</ImageView>
<VBox prefHeight="87.0" prefWidth="314.0">
<children>
<Label prefHeight="17.0" prefWidth="225.0" text="Seleziona una Stazione di Partenza:">
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</Label>
<ComboBox fx:id="comboBoxPartenza" prefHeight="28.0" prefWidth="254.0" />
<Label prefHeight="17.0" prefWidth="225.0" text="Seleziona una Stazione di Arrivo:">
<VBox.margin>
<Insets top="15.0" />
</VBox.margin>
</Label>
<ComboBox fx:id="comboBoxArrivo" prefHeight="28.0" prefWidth="254.0">
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</ComboBox>
</children>
<HBox.margin>
<Insets left="20.0" right="20.0" />
</HBox.margin>
<padding>
<Insets top="10.0" />
</padding>
</VBox>
<Button id="doCalcola" fx:id="btnCalcola" mnemonicParsing="false" onAction="#calcolaPercorso" prefHeight="27.0" prefWidth="207.0" text="Calcola percorso">
<HBox.margin>
<Insets left="20.0" />
</HBox.margin>
</Button>
</children>
<VBox.margin>
<Insets bottom="10.0" left="20.0" right="20.0" top="20.0" />
</VBox.margin>
</HBox>
<TextArea id="elencoStazioni" fx:id="txtRisultato" disable="false" editable="false" prefHeight="186.0" prefWidth="455.0" wrapText="true">
<VBox.margin>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
</VBox.margin>
</TextArea>
</children>
</VBox>
</center>
<top>
<Label alignment="CENTER_LEFT" contentDisplay="CENTER" disable="false" text="Lab8_MetroParis" textAlignment="CENTER" BorderPane.alignment="CENTER">
<BorderPane.margin>
<Insets bottom="10.0" top="10.0" />
</BorderPane.margin>
<font>
<Font size="12.0" />
</font>
</Label>
</top>
</BorderPane>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions Lab09_MetroDeParis_Sol1/build.fxbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml .Villettaersion="1.0" encoding="ASCII"?>
<anttasks:AntTask xmi:.Villettaersion="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:anttasks="http://org.eclipse.fx.ide.jdt/1.0" buildDirectory="${project}/build">
<deploy>
<application name="Lab8_MetroDeParis"/>
<info/>
</deploy>
<signjar/>
</anttasks:AntTask>
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package it.polito.tdp.metrodeparis;

import it.polito.tdp.metrodeparis.model.Model;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
Expand All @@ -10,17 +11,20 @@ public class Main extends Application {
@Override
public void start(Stage primaryStage) {
try {

FXMLLoader loader = new FXMLLoader(getClass().getResource("MetroDeParis.fxml"));
BorderPane root = (BorderPane) loader.load();
MetroDeParisController controller = loader.getController();

// TODO: Set the model
// Set the model
Model model = new Model();
controller.setModel(model);

Scene scene = new Scene(root);
scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.show();

} catch (Exception e) {
e.printStackTrace();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>

<BorderPane id="BorderPane" maxHeight="-1.0" maxWidth="-1.0" minHeight="-1.0" minWidth="-1.0" prefHeight="-1.0" prefWidth="-1.0" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1" fx:controller="it.polito.tdp.metrodeparis.MetroDeParisController">
<center>
<VBox prefHeight="-1.0" prefWidth="-1.0">
<children>
<HBox alignment="CENTER" prefHeight="44.0" prefWidth="498.0">
<children>
<ImageView fitHeight="87.0" fitWidth="108.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../../../../../rsc/RATP.png" />
</image>
</ImageView>
<VBox prefHeight="87.0" prefWidth="314.0">
<children>
<Label prefHeight="17.0" prefWidth="225.0" text="Seleziona una Stazione di Partenza:">
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</Label>
<ComboBox fx:id="comboBoxPartenza" prefHeight="28.0" prefWidth="254.0" />
<Label prefHeight="17.0" prefWidth="225.0" text="Seleziona una Stazione di Arrivo:">
<VBox.margin>
<Insets top="15.0" />
</VBox.margin>
</Label>
<ComboBox fx:id="comboBoxArrivo" prefHeight="28.0" prefWidth="254.0">
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</ComboBox>
</children>
<HBox.margin>
<Insets left="20.0" right="20.0" />
</HBox.margin>
<padding>
<Insets top="10.0" />
</padding>
</VBox>
<Button id="doCalcola" fx:id="btnCalcola" mnemonicParsing="false" onAction="#calcolaPercorso" prefHeight="27.0" prefWidth="207.0" text="Calcola percorso">
<HBox.margin>
<Insets left="20.0" />
</HBox.margin>
</Button>
</children>
<VBox.margin>
<Insets bottom="10.0" left="20.0" right="20.0" top="20.0" />
</VBox.margin>
</HBox>
<TextArea id="elencoStazioni" fx:id="txtRisultato" disable="false" editable="false" prefHeight="186.0" prefWidth="455.0" wrapText="true">
<VBox.margin>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
</VBox.margin>
</TextArea>
</children>
</VBox>
</center>
<top>
<Label alignment="CENTER_LEFT" contentDisplay="CENTER" disable="false" text="Lab8_MetroParis" textAlignment="CENTER" BorderPane.alignment="CENTER">
<BorderPane.margin>
<Insets bottom="10.0" top="10.0" />
</BorderPane.margin>
<font>
<Font size="12.0" />
</font>
</Label>
</top>
</BorderPane>
Loading

0 comments on commit 18314f0

Please sign in to comment.