-
Notifications
You must be signed in to change notification settings - Fork 0
/
weatherapp.fxml
135 lines (133 loc) · 7.4 KB
/
weatherapp.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.chart.BarChart?>
<?import javafx.scene.chart.CategoryAxis?>
<?import javafx.scene.chart.LineChart?>
<?import javafx.scene.chart.NumberAxis?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.layout.AnchorPane?>
<TabPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="504.0" prefWidth="665.0" tabClosingPolicy="UNAVAILABLE" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/19">
<tabs>
<Tab text="Weather">
<content>
<AnchorPane prefHeight="200.0" prefWidth="200.0">
<children>
<RadioButton layoutX="14.0" layoutY="185.0" mnemonicParsing="false" text="temperature">
<toggleGroup>
<ToggleGroup fx:id="graph" />
</toggleGroup>
</RadioButton>
<RadioButton layoutX="14.0" layoutY="215.0" mnemonicParsing="false" text="wind" toggleGroup="$graph" />
<RadioButton layoutX="14.0" layoutY="245.0" mnemonicParsing="false" text="cloudiness" toggleGroup="$graph" />
<RadioButton layoutX="14.0" layoutY="275.0" mnemonicParsing="false" text="rain" toggleGroup="$graph" />
<RadioButton layoutX="14.0" layoutY="305.0" mnemonicParsing="false" text="daily min and max" toggleGroup="$graph" />
<RadioButton layoutX="14.0" layoutY="335.0" mnemonicParsing="false" text="daily average" toggleGroup="$graph" />
<LineChart layoutX="226.0" layoutY="188.0" prefHeight="276.0" prefWidth="396.0">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</LineChart>
<DatePicker layoutX="14.0" layoutY="93.0" />
<TextField layoutX="14.0" layoutY="40.0" />
<TableView layoutX="247.0" layoutY="51.0" prefHeight="137.0" prefWidth="376.0">
<columns>
<TableColumn prefWidth="47.0" text="mon" />
<TableColumn prefWidth="48.0" text="tue" />
<TableColumn prefWidth="47.0" text="wed" />
<TableColumn prefWidth="57.0" text="thu" />
<TableColumn minWidth="9.0" prefWidth="59.0" text="fri" />
<TableColumn prefWidth="53.0" text="sat" />
<TableColumn prefWidth="64.0" text="sun" />
</columns>
</TableView>
<Button layoutX="424.0" layoutY="8.0" mnemonicParsing="false" text="Get preferences" />
<Button layoutX="539.0" layoutY="8.0" mnemonicParsing="false" text="Save preferneces" />
<Label layoutX="14.0" layoutY="21.0" text="Location:" />
<Label layoutX="14.0" layoutY="76.0" text="Select date:" />
</children>
</AnchorPane>
</content></Tab>
<Tab text="Road info">
<content>
<AnchorPane prefHeight="200.0" prefWidth="200.0">
<children>
<DatePicker layoutX="14.0" layoutY="93.0" />
<TextField layoutX="14.0" layoutY="40.0" />
<Button layoutX="424.0" layoutY="8.0" mnemonicParsing="false" text="Get preferences" />
<Button layoutX="539.0" layoutY="8.0" mnemonicParsing="false" text="Save preferneces" />
<RadioButton layoutX="14.0" layoutY="185.0" mnemonicParsing="false" text="maintenance">
<toggleGroup>
<ToggleGroup fx:id="road" />
</toggleGroup>
</RadioButton>
<RadioButton layoutX="14.0" layoutY="215.0" mnemonicParsing="false" text="road condition forecast" toggleGroup="$road" />
<CheckBox layoutX="14.0" layoutY="265.0" mnemonicParsing="false" text="traffic messages" />
<ComboBox layoutX="13.0" layoutY="324.0" prefWidth="150.0" />
<Label layoutX="14.0" layoutY="21.0" text="Location:" />
<Label layoutX="14.0" layoutY="76.0" text="Select date:" />
<Label layoutX="14.0" layoutY="307.0" text="Time interval:" />
<AnchorPane layoutX="277.0" layoutY="66.0" prefHeight="227.0" prefWidth="322.0" />
</children>
</AnchorPane>
</content></Tab>
<Tab text="Combined">
<content>
<AnchorPane prefHeight="200.0" prefWidth="200.0">
<children>
<RadioButton layoutX="14.0" layoutY="324.0" mnemonicParsing="false" text="weather & road condition" />
<Button layoutX="424.0" layoutY="8.0" mnemonicParsing="false" text="Get preferences" />
<Button layoutX="539.0" layoutY="8.0" mnemonicParsing="false" text="Save preferneces" />
<TextField layoutX="14.0" layoutY="40.0" />
<TextField layoutX="14.0" layoutY="72.0" />
<ComboBox layoutX="14.0" layoutY="190.0" prefWidth="150.0" />
<ComboBox layoutX="14.0" layoutY="130.0" prefWidth="150.0" promptText="Cities" />
<RadioButton layoutX="14.0" layoutY="354.0" mnemonicParsing="false" text="weather & road maintenance" />
<Label layoutX="14.0" layoutY="21.0" text="Coordinates" />
<Label layoutX="14.0" layoutY="113.0" text="Or select location from list:" />
<Label layoutX="14.0" layoutY="173.0" text="Time interval:" />
<LineChart layoutX="239.0" layoutY="44.0" prefHeight="191.0" prefWidth="396.0">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</LineChart>
<BarChart layoutX="239.0" layoutY="236.0" prefHeight="191.0" prefWidth="396.0">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</BarChart>
</children>
</AnchorPane>
</content>
</Tab>
<Tab text="Settings">
<content>
<AnchorPane prefHeight="200.0" prefWidth="200.0">
<children>
<TextField layoutX="45.0" layoutY="66.0" prefHeight="26.0" prefWidth="181.0" />
<Button layoutX="45.0" layoutY="104.0" mnemonicParsing="false" text="Get dataset" />
<Button layoutX="138.0" layoutY="104.0" mnemonicParsing="false" text="Save dataset" />
</children>
</AnchorPane>
</content>
</Tab>
</tabs>
</TabPane>