-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.fxml
117 lines (115 loc) · 8.57 KB
/
main.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
112
113
114
115
116
117
<?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.Slider?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<VBox prefHeight="600.0" prefWidth="1163.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1">
<children>
<SplitPane dividerPositions="0.36003445305770887" focusTraversable="true" prefHeight="-1.0" prefWidth="-1.0" VBox.vgrow="ALWAYS">
<items>
<AnchorPane>
<children>
<GridPane layoutY="14.0" AnchorPane.bottomAnchor="-14.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="14.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="174.0" minWidth="10.0" prefWidth="168.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="140.0" minWidth="10.0" prefWidth="127.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="105.0" minWidth="10.0" prefWidth="83.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="type" GridPane.rowIndex="1" />
<Label text="number of links" GridPane.rowIndex="2" />
<Label text="Length Link 2 (crank)" GridPane.rowIndex="3" />
<Label text="Length Link 3 (Coupler)" GridPane.rowIndex="4" />
<Label text="Length Link 4" GridPane.rowIndex="5" />
<Label text="Length Link 1 (Base)" GridPane.rowIndex="6" />
<Label text="Angle Link 1" GridPane.rowIndex="7" />
<Label text="Dinstance To Coupler" GridPane.rowIndex="8" />
<Label text="Angle To Coupler" GridPane.rowIndex="9" />
<Label text="Start Angle" GridPane.rowIndex="10" />
<Label text="End Angle" GridPane.rowIndex="11" />
<Label text="Delta Angle" GridPane.rowIndex="12" />
<Label text="Crank Angular Velocity" GridPane.rowIndex="13" />
<Label text="mm" GridPane.columnIndex="2" GridPane.rowIndex="3" />
<Label text="mm" GridPane.columnIndex="2" GridPane.rowIndex="4" />
<Label text="mm" GridPane.columnIndex="2" GridPane.rowIndex="5" />
<Label text="mm" GridPane.columnIndex="2" GridPane.rowIndex="6" />
<Label text="mm" GridPane.columnIndex="2" GridPane.rowIndex="8" />
<Label text="degrees" GridPane.columnIndex="2" GridPane.rowIndex="7" />
<Label text="degrees" GridPane.columnIndex="2" GridPane.rowIndex="9" />
<Label text="degrees" GridPane.columnIndex="2" GridPane.rowIndex="10" />
<Label text="degrees" GridPane.columnIndex="2" GridPane.rowIndex="11" />
<Label text="degrees" GridPane.columnIndex="2" GridPane.rowIndex="12" />
<Label text="deg/sec" GridPane.columnIndex="2" GridPane.rowIndex="13" />
<ComboBox fx:id="typeSelector" editable="true" onAction="#setType" prefHeight="26.0" prefWidth="127.0" promptText="Four Bar" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField fx:id="numOfLinks" editable="false" onAction="#update" text="4" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField fx:id="lenLin2" onAction="#update" text="15" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<TextField fx:id="lenLin3" onAction="#update" text="20" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<TextField fx:id="lenLin4" onAction="#update" text="15" GridPane.columnIndex="1" GridPane.rowIndex="5" />
<TextField fx:id="lenLin1" onAction="#update" text="10" GridPane.columnIndex="1" GridPane.rowIndex="6" />
<TextField fx:id="angleLin1" onAction="#update" text="0" GridPane.columnIndex="1" GridPane.rowIndex="7" />
<TextField fx:id="distToCoupler" onAction="#update" text="5" GridPane.columnIndex="1" GridPane.rowIndex="8" />
<TextField fx:id="angleToCoupler" onAction="#update" text="30" GridPane.columnIndex="1" GridPane.rowIndex="9" />
<TextField fx:id="startAngle" onAction="#update" text="0" GridPane.columnIndex="1" GridPane.rowIndex="10" />
<TextField fx:id="endAngle" onAction="#update" text="360" GridPane.columnIndex="1" GridPane.rowIndex="11" />
<TextField fx:id="deltaAngle" onAction="#update" text="3" GridPane.columnIndex="1" GridPane.rowIndex="12" />
<TextField fx:id="velocityOfCrank" onAction="#update" text="60" GridPane.columnIndex="1" GridPane.rowIndex="13" />
<Label text="Direct Crank Control" GridPane.rowIndex="14" />
<Label GridPane.columnIndex="2" GridPane.rowIndex="14" />
<Slider fx:id="positionSlider" onDragDetected="#liveMove" onDragDone="#liveMove" onMouseDragged="#liveMove" GridPane.columnIndex="1" GridPane.rowIndex="14" />
<Button mnemonicParsing="false" onAction="#update" text="Run Cycle" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS">
<GridPane.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</GridPane.margin>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</Button>
</children>
</GridPane>
</children>
</AnchorPane>
<AnchorPane>
<children>
<TableView layoutX="84.0" layoutY="180.0" prefHeight="598.0" prefWidth="629.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<columns>
<TableColumn fx:id="l1AngleColumn" editable="false" minWidth="50.0" prefWidth="100.0" sortable="false" text="Link 1 angle" />
<TableColumn fx:id="l2AngleColumn" editable="false" minWidth="0.0" prefWidth="115.0" sortable="false" text="Link 2 Angle" />
<TableColumn fx:id="l3AngleColumn" editable="false" prefWidth="118.0" sortable="false" text="Link 3 Angle" />
<TableColumn fx:id="l4AngleColumn" editable="false" minWidth="0.0" prefWidth="104.0" sortable="false" text="Link 4 Angle" />
<TableColumn fx:id="transAngleColumn" editable="false" prefWidth="161.0" sortable="false" text="Transmission Angle" />
</columns>
</TableView>
</children>
</AnchorPane>
</items>
</SplitPane>
</children>
</VBox>