-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaceDesign.fxml
111 lines (109 loc) · 5.82 KB
/
interfaceDesign.fxml
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
105
106
107
108
109
110
111
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.Cursor?>
<?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.shape.Circle?>
<?import javafx.scene.text.Font?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="731.0" prefWidth="561.0" style="-fx-background-color: #540d6e;" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="momentOfInertia.Controller">
<children>
<Pane prefHeight="125.0" prefWidth="561.0" style="-fx-background-color: #ffd23f;">
<children>
<Label alignment="CENTER" layoutX="37.0" layoutY="27.0" prefHeight="46.0" prefWidth="487.0" text="MOMENT OF INERTIA" textFill="#540d6e">
<font>
<Font name="Century Gothic Bold" size="31.0" />
</font>
</Label>
<Label alignment="CENTER" layoutX="28.0" layoutY="63.0" prefHeight="46.0" prefWidth="487.0" text="CALCULATOR" textFill="#540d6e">
<font>
<Font name="Century Gothic Bold" size="25.0" />
</font>
</Label>
</children>
</Pane>
<Label layoutX="74.0" layoutY="146.0" text="Enter mass" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<Label layoutX="74.0" layoutY="197.0" text="Enter height of load" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<Label layoutX="74.0" layoutY="252.0" text="Enter radius of axle" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<Label layoutX="74.0" layoutY="308.0" text="Enter value of n1" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<Label layoutX="74.0" layoutY="361.0" text="Enter value of n2" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<Label layoutX="74.0" layoutY="415.0" text="Enter time in sec" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<TextField fx:id="txtMass" layoutX="335.0" layoutY="148.0" prefHeight="25.0" prefWidth="180.0" promptText="Enter mass" />
<TextField fx:id="txtLoad" layoutX="335.0" layoutY="202.0" prefHeight="25.0" prefWidth="180.0" promptText="Enter load" />
<TextField fx:id="txtAxle" layoutX="335.0" layoutY="254.0" prefHeight="25.0" prefWidth="180.0" promptText="Enter axle" />
<TextField fx:id="txtNOne" layoutX="335.0" layoutY="310.0" prefHeight="25.0" prefWidth="180.0" promptText="Enter n1" />
<TextField fx:id="txtNTwo" layoutX="335.0" layoutY="363.0" prefHeight="25.0" prefWidth="180.0" promptText="Enter n2" />
<TextField fx:id="txtSec" layoutX="334.0" layoutY="417.0" prefHeight="25.0" prefWidth="183.0" promptText="Enter time" />
<Button fx:id="btnCalcMoment" layoutX="334.0" layoutY="473.0" mnemonicParsing="false" onAction="#calculateResult" prefHeight="37.0" prefWidth="183.0" style="-fx-background-color: #ffd23f;" text="Calculate" textFill="#540d6e">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Button>
<Circle fill="#ffd23f" layoutX="49.0" layoutY="158.0" radius="9.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<Circle fill="#ffd23f" layoutX="49.0" layoutY="213.0" radius="9.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<Circle fill="#ffd23f" layoutX="49.0" layoutY="267.0" radius="9.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<Circle fill="#ffd23f" layoutX="50.0" layoutY="320.0" radius="9.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<Circle fill="#ffd23f" layoutX="51.0" layoutY="373.0" radius="9.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<Circle fill="#ffd23f" layoutX="51.0" layoutY="426.0" radius="9.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<TextField fx:id="txtResultMoment" editable="false" layoutX="30.0" layoutY="547.0" prefHeight="37.0" prefWidth="210.0" promptText="Press Calculate">
<cursor>
<Cursor fx:constant="DEFAULT" />
</cursor>
</TextField>
<Label layoutX="31.0" layoutY="508.0" text="Moment Of Inertia" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<Label layoutX="258.0" layoutY="553.0" text="kgm^2" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<TextField fx:id="txtResultAngular" editable="false" layoutX="29.0" layoutY="655.0" prefHeight="37.0" prefWidth="210.0" promptText="Press Calculate">
<cursor>
<Cursor fx:constant="DEFAULT" />
</cursor>
</TextField>
<Label layoutX="30.0" layoutY="616.0" text="Angular Velocity" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<Label layoutX="257.0" layoutY="661.0" text="rad/s" textFill="#ffd23f">
<font>
<Font name="Century Gothic" size="20.0" />
</font>
</Label>
<Button fx:id="btnRefresh" layoutX="334.0" layoutY="655.0" mnemonicParsing="false" onAction="#refresh" prefHeight="37.0" prefWidth="183.0" style="-fx-background-color: #ffd23f;" text="Refresh" textFill="#540d6e">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Button>
</children>
</AnchorPane>