for some reason didnt commit this...

This commit is contained in:
Ksan 2025-08-30 00:03:39 +02:00
parent 462028e354
commit 8b0327aa5e
4 changed files with 36 additions and 4 deletions

21
pom.xml
View File

@ -15,6 +15,27 @@
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>22.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>24</version>
</dependency>
<dependency>
<groupId>org.graphstream</groupId>
<artifactId>gs-core</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.graphstream</groupId>
<artifactId>gs-ui-javafx</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>

View File

@ -4,6 +4,8 @@ module dev.ksan.travelpathoptimizer {
requires java.desktop;
requires javafx.graphics;
requires javafx.base;
requires gs.core;
requires gs.ui.javafx;
opens dev.ksan.travelpathoptimizer to
javafx.fxml;
@ -34,8 +36,10 @@ module dev.ksan.travelpathoptimizer {
opens dev.ksan.travelpathoptimizer.service to
javafx.fxml;
exports dev.ksan.travelpathoptimizer.graph;
exports dev.ksan.travelpathoptimizer.graphSimulation;
opens dev.ksan.travelpathoptimizer.graph to
opens dev.ksan.travelpathoptimizer.graphSimulation to
javafx.fxml;
exports dev.ksan.travelpathoptimizer.visualize to javafx.graphics;
}

View File

@ -38,4 +38,9 @@
#sectionText{
-fx-font-size: 18;
-fx-underline: true;
}
}
graphPane{
-fx-background-color: red;
}

View File

@ -43,7 +43,7 @@
<Label style="-fx-font-size: 20px; -fx-text-fill: gray;" text="|" />
<Button fx:id="headerButton2" text="Button" />
<Label style="-fx-font-size: 20px; -fx-text-fill: gray;" text="|" />
<Button fx:id="headerButton3" text="Button" />
<Button fx:id="headerButton3" onAction="#showGraph" text="Button" />
</children>
</HBox>
</children></HBox>
@ -177,6 +177,7 @@
</Button>
</children>
</VBox>
<HBox fx:id="graphPane" managed="true" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" visible="false" />
<GridPane fx:id="map" alignment="CENTER" gridLinesVisible="true" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" HBox.hgrow="ALWAYS">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
@ -191,6 +192,7 @@
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</GridPane>
<VBox fx:id="randomSideBar" managed="false" maxHeight="1.7976931348623157E308" prefHeight="354.0" prefWidth="150.0" visible="false" />
</children>
<VBox.margin>