-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainInterface.fxml
More file actions
104 lines (102 loc) · 7.99 KB
/
Copy pathMainInterface.fxml
File metadata and controls
104 lines (102 loc) · 7.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Accordion?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ColorPicker?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.control.ToggleButton?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.Pane?>
<BorderPane fx:id="Window" minHeight="288.0" minWidth="604.0" prefHeight="448.0" prefWidth="634.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.MainInterface_Controller">
<center>
<AnchorPane fx:id="BehindOverlay" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<children>
<Pane fx:id="Overlay" prefHeight="200.0" prefWidth="200.0" AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="5.0" />
</children>
</AnchorPane>
</center>
<top>
<MenuBar fx:id="MenuTopBar" prefHeight="13.0" prefWidth="604.0" BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="Close" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
</top>
<left>
<AnchorPane fx:id="LeftSideMenu" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<children>
<Button fx:id="BackLeftSideMenu" mnemonicParsing="false" onAction="#PressBackLeftSideMenu" text="← Back" AnchorPane.leftAnchor="2.0" AnchorPane.topAnchor="2.0" />
<Accordion AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="30.0">
<panes>
<TitledPane fx:id="AlgorithmLeftMenu" animated="false" text="Algorithm">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<Label text="Shortest path :" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0" />
<Button fx:id="DijkstraButton" layoutX="28.0" layoutY="38.0" mnemonicParsing="false" onAction="#ApplyDijkstra" text="Dijkstra algorithm" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="20.0" />
<Label layoutX="10.0" layoutY="68.0" text="Travelling salesman problem :" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="50.0" />
<Button fx:id="TabuSearchTSPButton" layoutY="77.0" mnemonicParsing="false" onAction="#PressTabuSearchTSPButton" text="Tabu search for TSP" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="100.0" />
<Label layoutX="14.0" layoutY="115.0" text="Minimum spanning tree :" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="130.0" />
<Button fx:id="PrimMSTButton" layoutY="128.0" mnemonicParsing="false" onAction="#PressPrimMSTButton" text="Prim algorithm" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="150.0" />
<Button fx:id="BranchAndBoundButton" layoutX="-1.0" layoutY="196.0" mnemonicParsing="false" onAction="#PressBranchAndBound" text="Branch and Bound" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="70.0" />
<Label layoutX="14.0" layoutY="194.0" text="BFS / DFS :" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="180.0" />
<Button fx:id="BFSButton" layoutX="9.0" layoutY="207.0" mnemonicParsing="false" onAction="#PressBFSButton" text="BFS" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="200.0" />
<Button fx:id="DFSButton" layoutX="10.0" layoutY="243.0" mnemonicParsing="false" onAction="#PressDFS" text="DFS" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="230.0" />
</children></AnchorPane>
</content>
</TitledPane>
<TitledPane fx:id="GraphParameterLeftMenu" animated="false" text="Graph">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<Button fx:id="CompleteGraph" layoutX="14.0" layoutY="14.0" mnemonicParsing="false" onAction="#PressCompleteGraph" text="Generate complete graph" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
<Button fx:id="RandomGraph" layoutX="14.0" layoutY="52.0" mnemonicParsing="false" onAction="#PressRandomGraph" text="Generate random graph" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="30.0" />
</children>
</AnchorPane>
</content>
</TitledPane>
</panes>
</Accordion>
</children>
</AnchorPane>
</left>
<bottom>
<AnchorPane prefHeight="24.0" prefWidth="604.0" BorderPane.alignment="CENTER">
<children>
<ToggleButton fx:id="VertexToggle" layoutX="115.0" layoutY="1.0" mnemonicParsing="false" onAction="#PressVertexToggle" AnchorPane.bottomAnchor="1.0" AnchorPane.leftAnchor="90.0" AnchorPane.topAnchor="1.0">
<toggleGroup>
<ToggleGroup fx:id="UserAction" />
</toggleGroup>
</ToggleButton>
<ToggleButton fx:id="EdgeToggle" layoutX="87.0" layoutY="1.0" mnemonicParsing="false" onAction="#PressEdgeToggle" toggleGroup="$UserAction" AnchorPane.bottomAnchor="1.0" AnchorPane.leftAnchor="130.0" AnchorPane.topAnchor="1.0" />
<ToggleButton fx:id="NoneToggle" layoutX="138.0" layoutY="1.0" mnemonicParsing="false" onAction="#PressNoneToggle" selected="true" toggleGroup="$UserAction" AnchorPane.bottomAnchor="1.0" AnchorPane.leftAnchor="50.0" AnchorPane.topAnchor="1.0" />
<ComboBox fx:id="TypeGraph" layoutX="454.0" onAction="#ActionTypeGraph" prefHeight="25.0" prefWidth="170.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="2.0" AnchorPane.topAnchor="1.0" />
<Button fx:id="MenuButtonLeft" layoutX="6.0" layoutY="2.0" mnemonicParsing="false" onAction="#PressMenuButtonLeft" text="≡" AnchorPane.bottomAnchor="1.0" AnchorPane.leftAnchor="2.0" AnchorPane.topAnchor="1.0" />
<ColorPicker fx:id="ColorPickerObject" layoutX="302.0" layoutY="1.0" prefHeight="25.0" prefWidth="115.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="185.0" AnchorPane.topAnchor="1.0" />
<Button fx:id="SaveButton" layoutX="178.0" layoutY="1.0" mnemonicParsing="false" onAction="#PressSaveButton" AnchorPane.bottomAnchor="1.0" AnchorPane.leftAnchor="200.0" AnchorPane.topAnchor="1.0" />
<Button fx:id="DeleteButton" layoutX="227.0" layoutY="1.0" mnemonicParsing="false" onAction="#PressDeleteButton" AnchorPane.bottomAnchor="1.0" AnchorPane.leftAnchor="240.0" AnchorPane.topAnchor="1.0" />
<Button fx:id="LoadButton" layoutX="267.0" layoutY="1.0" mnemonicParsing="false" onAction="#PressLoad" AnchorPane.bottomAnchor="1.0" AnchorPane.leftAnchor="280.0" AnchorPane.topAnchor="1.0" />
</children>
</AnchorPane>
</bottom>
</BorderPane>