-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTranslationalTry.fxml
38 lines (36 loc) · 3.17 KB
/
TranslationalTry.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
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.shape.*?>
<AnchorPane fx:id="AnchorPaneMotionPage" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.TranslationalTry">
<children>
<Button fx:id="TranlateButton" layoutX="520.0" layoutY="400.0" mnemonicParsing="false" onMouseClicked="#TranslateBars" text="Translate" AnchorPane.bottomAnchor="0.0" AnchorPane.rightAnchor="0.0" />
<Group fx:id="HorBars" layoutX="10.0" layoutY="10.0">
<children>
<Rectangle fx:id="Bar1" arcHeight="5.0" arcWidth="5.0" fill="DODGERBLUE" height="100.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
<Rectangle fx:id="Bar2" arcHeight="5.0" arcWidth="5.0" fill="#ff1f32" height="100.0" layoutX="30.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
<Rectangle fx:id="Bar4" arcHeight="5.0" arcWidth="5.0" fill="#ff9621" height="100.0" layoutX="90.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
<Rectangle fx:id="Bar3" arcHeight="5.0" arcWidth="5.0" fill="#1fff4b" height="100.0" layoutX="60.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
</children>
</Group>
<Group fx:id="CrossObstacle" layoutY="140.0">
<children>
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="DODGERBLUE" height="50.0" layoutX="70.0" layoutY="10.0" stroke="BLACK" strokeType="INSIDE" width="10.0" x="1.0" />
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#ff821f" height="50.0" layoutX="70.0" layoutY="50.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#1fff71" height="50.0" layoutX="90.0" layoutY="30.0" rotate="90.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#ff401f" height="50.0" layoutX="50.0" layoutY="30.0" rotate="90.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
</children>
</Group>
<Button fx:id="MotionButton" layoutX="350.0" layoutY="400.0" mnemonicParsing="false" onMouseClicked="#StartMotion" text="InitializeMotion" AnchorPane.bottomAnchor="0.0" />
<Group fx:id="SquareObstacle" layoutX="180.0" layoutY="110.0">
<children>
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="DODGERBLUE" height="90.0" layoutY="40.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#1fff41" height="90.0" layoutX="40.0" rotate="90.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#ff8c1f" height="90.0" layoutX="40.0" layoutY="80.0" rotate="90.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#ff321f" height="90.0" layoutX="80.0" layoutY="40.0" stroke="BLACK" strokeType="INSIDE" width="10.0" />
</children>
</Group>
<Button layoutX="208.0" layoutY="373.0" mnemonicParsing="false" onMouseClicked="#BackToMainMenu" text="MainMenu" />
</children>
</AnchorPane>