-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.fxml
More file actions
75 lines (73 loc) · 5.13 KB
/
Main.fxml
File metadata and controls
75 lines (73 loc) · 5.13 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
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Font?>
<AnchorPane fx:id="myAnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="790.0" prefWidth="1526.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.Controller">
<children>
<TextField fx:id="rootVal" layoutX="29.0" layoutY="200.0" prefHeight="34.0" prefWidth="156.0" promptText="Enter an Integer number" style="-fx-border-color: #27374D; -fx-border-radius: 10; -fx-background-radius: 10;">
<font>
<Font name="Alice Regular" size="12.0" />
</font></TextField>
<Button fx:id="insertBtn" layoutX="28.0" layoutY="247.0" mnemonicParsing="false" onAction="#insertInAVL" prefHeight="44.0" prefWidth="110.0" style="-fx-background-color: #27374D; -fx-background-radius: 10;" text="Insert" textFill="WHITE">
<font>
<Font name="System Bold Italic" size="17.0" />
</font></Button>
<Button fx:id="deleteBtn" layoutX="29.0" layoutY="364.0" mnemonicParsing="false" onAction="#deleteInAVL" prefHeight="44.0" prefWidth="110.0" style="-fx-background-color: #27374D; -fx-background-radius: 10;" text="Delete" textFill="WHITE">
<font>
<Font name="System Bold Italic" size="17.0" />
</font></Button>
<Button fx:id="searchBtn" layoutX="28.0" layoutY="305.0" mnemonicParsing="false" onAction="#searchInAVL" prefHeight="44.0" prefWidth="110.0" style="-fx-background-color: #27374D; -fx-background-radius: 10;" text="Search" textFill="WHITE">
<font>
<Font name="System Bold Italic" size="17.0" />
</font></Button>
<Pane fx:id="pane" layoutX="210.0" layoutY="76.0" prefHeight="710.0" prefWidth="1161.0" style="-fx-background-color: #DDE6ED; -fx-background-radius: 15; -fx-border-color: #03001C; -fx-border-radius: 15;" />
<Button fx:id="inorderBtn" alignment="CENTER" layoutX="1402.0" layoutY="162.0" mnemonicParsing="false" onAction="#inorder" prefHeight="44.0" prefWidth="110.0" style="-fx-background-color: #27374D; -fx-background-radius: 10;" text="In-order " textAlignment="CENTER" textFill="WHITE">
<font>
<Font name="System Bold Italic" size="17.0" />
</font>
</Button>
<Button fx:id="clearBtn" alignment="CENTER" layoutX="1402.0" layoutY="709.0" mnemonicParsing="false" onAction="#clearAVL" prefHeight="44.0" prefWidth="110.0" style="-fx-background-color: #27374D; -fx-background-radius: 10;" text="clear Tree" textFill="WHITE">
<font>
<Font name="System Bold Italic" size="17.0" />
</font></Button>
<Button fx:id="preorderBtn" alignment="CENTER" layoutX="1402.0" layoutY="218.0" mnemonicParsing="false" onAction="#preorder" prefHeight="44.0" prefWidth="110.0" style="-fx-background-color: #27374D; -fx-background-radius: 10;" text="Pre-order " textAlignment="CENTER" textFill="WHITE">
<font>
<Font name="System Bold Italic" size="17.0" />
</font></Button>
<Button fx:id="postorderBtn" alignment="CENTER" layoutX="1400.0" layoutY="276.0" mnemonicParsing="false" onAction="#postorder" prefHeight="44.0" prefWidth="110.0" style="-fx-background-color: #27374D; -fx-background-radius: 10;" text="Post-order " textFill="WHITE">
<font>
<Font name="System Bold Italic" size="16.0" />
</font></Button>
<Button fx:id="levelorderBtn" alignment="CENTER" layoutX="1400.0" layoutY="334.0" mnemonicParsing="false" onAction="#levelorder" prefHeight="44.0" prefWidth="110.0" style="-fx-background-color: #27374D; -fx-background-radius: 10;" text="Level-order " textAlignment="CENTER" textFill="WHITE">
<font>
<Font name="System Bold Italic" size="16.0" />
</font></Button>
<Button fx:id="dfsBtn" alignment="CENTER" layoutX="1400.0" layoutY="391.0" mnemonicParsing="false" onAction="#dfs" prefHeight="40.0" prefWidth="110.0" style="-fx-background-color: #27374D; -fx-background-radius: 10;" text="DFS" textAlignment="CENTER" textFill="WHITE">
<font>
<Font name="System Bold Italic" size="17.0" />
</font></Button>
<Label layoutX="592.0" layoutY="16.0" text="AVL Tree Visualiser" textFill="#03001c">
<font>
<Font name="Alice Regular" size="45.0" />
</font>
</Label>
<Label layoutX="29.0" layoutY="160.0" prefHeight="20.0" prefWidth="158.0" text="Enter value">
<font>
<Font name="Alice Regular" size="22.0" />
</font>
</Label>
<Label layoutX="36.0" layoutY="103.0" text="Operations" textAlignment="CENTER" textFill="#03001c">
<font>
<Font name="Alice Regular" size="26.0" />
</font>
</Label>
<Label layoutX="1396.0" layoutY="103.0" text="Traversals" textFill="#03001c">
<font>
<Font name="Alice Regular" size="26.0" />
</font>
</Label>
</children>
</AnchorPane>