kauron/estraba
Archived
1
0
Fork 0

dashboard redesign

This commit is contained in:
Jesús Vélez Palacios 2016-05-18 21:45:29 +02:00
parent 5de13b6c5b
commit 3c6b212101
2 changed files with 592 additions and 508 deletions

View file

@ -1,7 +1,6 @@
package es.kauron.estraba.controller;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXListView;
import com.jfoenix.controls.JFXSnackbar;
import com.lynden.gmapsfx.GoogleMapView;
import com.lynden.gmapsfx.javascript.object.GoogleMap;
@ -36,6 +35,9 @@ import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import java.io.File;
import java.net.URL;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.util.ResourceBundle;
/**
@ -52,16 +54,76 @@ public class DashboardController implements Initializable {
private Tab tabDashboard;
@FXML
private JFXListView<?> listLeft;
private Label labelMotivationUpper;
@FXML
private ImageView imgHR;
@FXML
private Label valueHRAvg;
@FXML
private Label valueHRMin;
@FXML
private Label valueHRMax;
@FXML
private ImageView imgSpeed;
@FXML
private Label valueSpeedAvg;
@FXML
private Label valueSpeedMax;
@FXML
private ImageView imgCadence;
@FXML
private Label valueCadenceAvg;
@FXML
private Label valueCadenceMax;
@FXML
private PieChart zoneChart;
@FXML
private JFXListView<?> listRight;
private Label valueDate;
@FXML
private Label motivationLabel;
private Label valueTime;
@FXML
private Label valueActiveTime;
@FXML
private Label valueTotalTime;
@FXML
private ImageView imgDate;
@FXML
private Label valueDistance;
@FXML
private ImageView imgDistance;
@FXML
private Label valueElevation;
@FXML
private Label valueAscent;
@FXML
private Label valueDescent;
@FXML
private ImageView imgElevation;
@FXML
private Label labelMotivationLower;
@FXML
private Tab tabMap;
@ -69,9 +131,6 @@ public class DashboardController implements Initializable {
@FXML
private GoogleMapView mapView;
@FXML
private JFXListView<?> mapSummary;
@FXML
private JFXButton elevationButton;
@ -102,7 +161,6 @@ public class DashboardController implements Initializable {
@FXML
private Tab tabSettings;
private TrackData trackData;
private JFXSnackbar snackbar;
private final double DISTANCE_EPSILON = 1;
@ -114,6 +172,13 @@ public class DashboardController implements Initializable {
((ImageView)hrButton.getGraphic()).setImage(new Image(App.class.getResourceAsStream("img/hr.png")));
((ImageView)cadenceButton.getGraphic()).setImage(new Image(App.class.getResourceAsStream("img/cadence.png")));
// set icons of dashboard
imgHR.setImage(new Image(App.class.getResourceAsStream("img/hr.png")));
imgSpeed.setImage(new Image(App.class.getResourceAsStream("img/speed.png")));
imgCadence.setImage(new Image(App.class.getResourceAsStream("img/cadence.png")));
imgDate.setImage(new Image(App.class.getResourceAsStream("img/date.png")));
imgDistance.setImage(new Image(App.class.getResourceAsStream("img/distance.png")));
imgElevation.setImage(new Image(App.class.getResourceAsStream("img/elevation.png")));
}
@ -129,20 +194,40 @@ public class DashboardController implements Initializable {
}
private void loadTrack(TrackData track) {
// populate dashboard
trackData.getStartTime();
trackData.getTotalDuration();
trackData.getMovingTime();
trackData.getTotalDistance();
trackData.getTotalAscent();
trackData.getTotalDescend();
trackData.getMaxSpeed();
trackData.getAverageSpeed();
trackData.getMaxHeartrate();
trackData.getMinHeartRate();
trackData.getAverageHeartrate();
trackData.getMaxCadence();
trackData.getAverageCadence();
valueHRAvg.setText(track.getAverageHeartrate()
+ App.GENERAL_BUNDLE.getString("unit.bpm"));
valueHRMax.setText(track.getMaxHeartrate()
+ App.GENERAL_BUNDLE.getString("unit.bpm"));
valueHRMin.setText(track.getMinHeartRate()
+ App.GENERAL_BUNDLE.getString("unit.bpm"));
valueSpeedAvg.setText(String.format("%.2f", track.getAverageSpeed())
+ App.GENERAL_BUNDLE.getString("unit.kmph"));
valueSpeedMax.setText(String.format("%.2f", track.getMaxSpeed())
+ App.GENERAL_BUNDLE.getString("unit.kmph"));
valueCadenceAvg.setText(track.getAverageCadence()
+ App.GENERAL_BUNDLE.getString("unit.hz"));
valueCadenceMax.setText(track.getMaxCadence()
+ App.GENERAL_BUNDLE.getString("unit.hz"));
valueDate.setText(track.getStartTime().format(DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL)));
valueTime.setText(track.getStartTime().format(DateTimeFormatter.ofLocalizedTime(FormatStyle.MEDIUM)));
valueActiveTime.setText(LocalTime.MIDNIGHT.plus(track.getMovingTime())
.format(DateTimeFormatter.ofLocalizedTime(FormatStyle.MEDIUM)));
valueTotalTime.setText(App.GENERAL_BUNDLE.getString("time.of")
+ LocalTime.MIDNIGHT.plus(track.getTotalDuration())
.format(DateTimeFormatter.ofLocalizedTime(FormatStyle.MEDIUM)));
valueDistance.setText(track.getTotalDistance()
+ App.GENERAL_BUNDLE.getString("unit.m"));
valueElevation.setText((int)(track.getTotalAscent() - track.getTotalDescend())
+ App.GENERAL_BUNDLE.getString("unit.m"));
valueAscent.setText((int)track.getTotalAscent()
+ App.GENERAL_BUNDLE.getString("unit.m"));
valueDescent.setText((int)track.getTotalDescend()
+ App.GENERAL_BUNDLE.getString("unit.m"));
// create charts data
XYChart.Series<Number, Number> elevationChartData = new XYChart.Series<>();
@ -151,7 +236,8 @@ public class DashboardController implements Initializable {
XYChart.Series<Number, Number> cadenceChartData = new XYChart.Series<>();
MVCArray pathArray = new MVCArray();
ObservableList<Chunk> chunks = trackData.getChunks();
// traverse the chunks
ObservableList<Chunk> chunks = track.getChunks();
double currentDistance = 0.0;
for (Chunk chunk : chunks) {
currentDistance += chunk.getDistance();
@ -190,6 +276,7 @@ public class DashboardController implements Initializable {
String name = file.getName();
JAXBContext jaxbContext = JAXBContext.newInstance(GpxType.class, TrackPointExtensionT.class);
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
@SuppressWarnings("unchecked")
JAXBElement<Object> jaxbElement = (JAXBElement<Object>) unmarshaller.unmarshal(file);
GpxType gpx = (GpxType) jaxbElement.getValue();

View file

@ -19,15 +19,18 @@
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<AnchorPane fx:id="root" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="es.kauron.estraba.controller.DashboardController">
<children>
<JFXTabPane minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="1000.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<tabs>
<AnchorPane fx:id="root" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="es.kauron.estraba.controller.DashboardController">
<JFXTabPane minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="1000.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
AnchorPane.topAnchor="0.0">
<Tab fx:id="tabDashboard" styleClass=".estraba.dashboard" text="%tab.dashboard">
<content>
<VBox prefHeight="200.0" prefWidth="100.0">
<children>
<Label fx:id="labelMotivationUpper" alignment="CENTER" focusTraversable="false" maxWidth="1.7976931348623157E308" text="%label.motivation">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
<Label fx:id="labelMotivationUpper" alignment="CENTER" focusTraversable="false"
maxWidth="1.7976931348623157E308" text="%label.motivation">
<font>
<Font name="Roboto" size="56.0"/>
</font>
@ -40,19 +43,23 @@
</styleClass>
</Label>
<HBox prefHeight="360.0" prefWidth="800.0" VBox.vgrow="ALWAYS">
<children>
<VBox.margin>
<Insets/>
</VBox.margin>
<VBox minHeight="360.0" minWidth="300.0" prefHeight="300.0">
<children>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity" prefHeight="90.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
<children>
<ImageView fx:id="imgHR" fitHeight="100.0" fitWidth="100.0" pickOnBounds="true" preserveRatio="true" styleClass=".estraba.dashboard.icon">
<image>
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</HBox.margin>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity"
prefHeight="90.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
<ImageView fx:id="imgHR" fitHeight="100.0" fitWidth="100.0"
pickOnBounds="true" preserveRatio="true"
styleClass=".estraba.dashboard.icon">
<Image url="@../img/hr.png"/>
</image>
</ImageView>
<VBox alignment="CENTER" HBox.hgrow="ALWAYS">
<children>
<Label alignment="CENTER_RIGHT" maxWidth="1.7976931348623157E308" text="%label.hr">
<Label alignment="CENTER_RIGHT" maxWidth="1.7976931348623157E308"
text="%label.hr">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -64,7 +71,9 @@
<String fx:value=".estraba.dashboard.label.HR"/>
</styleClass>
</Label>
<Label fx:id="valueHRAvg" alignment="CENTER" maxWidth="1.7976931348623157E308" text="92 bpm" textAlignment="CENTER">
<Label fx:id="valueHRAvg" alignment="CENTER"
maxWidth="1.7976931348623157E308" text="92 bpm"
textAlignment="CENTER">
<font>
<Font size="30.0"/>
</font>
@ -75,8 +84,9 @@
</styleClass>
</Label>
<HBox>
<children>
<Label fx:id="valueHRMin" alignment="CENTER_RIGHT" maxWidth="1.7976931348623157E308" text="60bpm" HBox.hgrow="ALWAYS">
<Label fx:id="valueHRMin" alignment="CENTER_RIGHT"
maxWidth="1.7976931348623157E308" text="60bpm"
HBox.hgrow="ALWAYS">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -89,7 +99,9 @@
<String fx:value=".estraba.dashboard.value.minhr"/>
</styleClass>
</Label>
<Label fx:id="valueHRMax" layoutX="10.0" layoutY="10.0" maxWidth="1.7976931348623157E308" text="100bpm" HBox.hgrow="ALWAYS">
<Label fx:id="valueHRMax" layoutX="10.0" layoutY="10.0"
maxWidth="1.7976931348623157E308" text="100bpm"
HBox.hgrow="ALWAYS">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -102,22 +114,19 @@
<String fx:value=".estraba.dashboard.value.maxhr"/>
</styleClass>
</Label>
</children>
</HBox>
</children>
</VBox>
</children>
</HBox>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity" prefHeight="90.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
<children>
<ImageView fx:id="imgSpeed" fitHeight="100.0" fitWidth="100.0" pickOnBounds="true" preserveRatio="true" styleClass=".estraba.dashboard.icon">
<image>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity"
prefHeight="90.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
<ImageView fx:id="imgSpeed" fitHeight="100.0" fitWidth="100.0"
pickOnBounds="true" preserveRatio="true"
styleClass=".estraba.dashboard.icon">
<Image url="@../img/speed.png"/>
</image>
</ImageView>
<VBox alignment="CENTER" HBox.hgrow="ALWAYS">
<children>
<Label alignment="CENTER_RIGHT" maxWidth="1.7976931348623157E308" text="%label.speed">
<Label alignment="CENTER_RIGHT" maxWidth="1.7976931348623157E308"
text="%label.speed">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -129,7 +138,9 @@
<String fx:value=".estraba.dashboard.label.HR"/>
</styleClass>
</Label>
<Label fx:id="valueSpeedAvg" alignment="CENTER" maxWidth="1.7976931348623157E308" text="35 Km/h" textAlignment="CENTER">
<Label fx:id="valueSpeedAvg" alignment="CENTER"
maxWidth="1.7976931348623157E308" text="35 Km/h"
textAlignment="CENTER">
<font>
<Font size="30.0"/>
</font>
@ -139,7 +150,8 @@
<String fx:value=".estraba.dashboard.value.avgspeed"/>
</styleClass>
</Label>
<Label fx:id="valueSpeedMax" alignment="CENTER" maxWidth="1.7976931348623157E308" text="56 Km/h">
<Label fx:id="valueSpeedMax" alignment="CENTER"
maxWidth="1.7976931348623157E308" text="56 Km/h">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -152,20 +164,18 @@
<String fx:value=".estraba.dashboard.value.maxspeed"/>
</styleClass>
</Label>
</children>
</VBox>
</children>
</HBox>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity" prefHeight="90.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
<children>
<ImageView fx:id="imgCadence" fitHeight="100.0" fitWidth="100.0" pickOnBounds="true" preserveRatio="true" styleClass=".estraba.dashboard.icon">
<image>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity"
prefHeight="90.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
<ImageView fx:id="imgCadence" fitHeight="100.0" fitWidth="100.0"
pickOnBounds="true" preserveRatio="true"
styleClass=".estraba.dashboard.icon">
<Image url="@../img/cadence.png"/>
</image>
</ImageView>
<VBox alignment="CENTER" HBox.hgrow="ALWAYS">
<children>
<Label alignment="CENTER_RIGHT" maxWidth="1.7976931348623157E308" text="%label.cadence">
<Label alignment="CENTER_RIGHT" maxWidth="1.7976931348623157E308"
text="%label.cadence">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -177,7 +187,9 @@
<String fx:value=".estraba.dashboard.label.HR"/>
</styleClass>
</Label>
<Label fx:id="valueCadenceAvg" alignment="CENTER" maxWidth="1.7976931348623157E308" text="90 Hz" textAlignment="CENTER">
<Label fx:id="valueCadenceAvg" alignment="CENTER"
maxWidth="1.7976931348623157E308" text="90 Hz"
textAlignment="CENTER">
<font>
<Font size="30.0"/>
</font>
@ -187,7 +199,8 @@
<String fx:value=".estraba.dashboard.value.avgcadence"/>
</styleClass>
</Label>
<Label fx:id="valueCadenceMax" alignment="CENTER" maxWidth="1.7976931348623157E308" text="152 Hz">
<Label fx:id="valueCadenceMax" alignment="CENTER"
maxWidth="1.7976931348623157E308" text="152 Hz">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -200,26 +213,22 @@
<String fx:value=".estraba.dashboard.value.maxcadence"/>
</styleClass>
</Label>
</children>
</VBox>
</children>
</HBox>
</children>
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</VBox>
<PieChart fx:id="zoneChart" labelsVisible="false" legendVisible="false" minHeight="-Infinity" minWidth="-Infinity" prefHeight="300.0" prefWidth="360.0" HBox.hgrow="ALWAYS">
<PieChart fx:id="zoneChart" labelsVisible="false" legendVisible="false" minHeight="-Infinity"
minWidth="-Infinity" prefHeight="300.0" prefWidth="360.0" HBox.hgrow="ALWAYS">
<HBox.margin>
<Insets/>
</HBox.margin></PieChart>
</HBox.margin>
</PieChart>
<VBox layoutX="15.0" layoutY="15.0" minHeight="360.0" minWidth="300.0" prefHeight="300.0">
<children>
<HBox alignment="CENTER" layoutX="10.0" layoutY="10.0" minHeight="-Infinity" minWidth="-Infinity" prefHeight="90.0" prefWidth="200.0" HBox.hgrow="ALWAYS" VBox.vgrow="ALWAYS">
<children>
<HBox alignment="CENTER" layoutX="10.0" layoutY="10.0" minHeight="-Infinity"
minWidth="-Infinity" prefHeight="90.0" prefWidth="200.0" HBox.hgrow="ALWAYS"
VBox.vgrow="ALWAYS">
<VBox alignment="CENTER" HBox.hgrow="ALWAYS">
<children>
<Label fx:id="valueCadenceMax11" alignment="CENTER" layoutX="10.0" layoutY="97.0" maxWidth="1.7976931348623157E308" text="Wednesday, 18 May 2016">
<Label fx:id="valueDate" alignment="CENTER" layoutX="10.0" layoutY="97.0"
maxWidth="1.7976931348623157E308" text="Wednesday, 18 May 2016">
<padding>
<Insets left="5.0" right="5.0" top="5.0"/>
</padding>
@ -234,7 +243,8 @@
<Insets/>
</VBox.margin>
</Label>
<Label fx:id="valueCadenceMax111" alignment="CENTER" layoutX="10.0" layoutY="30.0" maxWidth="1.7976931348623157E308" text="17:00:14">
<Label fx:id="valueTime" alignment="CENTER" layoutX="10.0" layoutY="30.0"
maxWidth="1.7976931348623157E308" text="17:00:14">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0"/>
</padding>
@ -246,7 +256,9 @@
<String fx:value=".estraba.dashboard.value.sub"/>
</styleClass>
</Label>
<Label fx:id="valueCadenceAvg1" alignment="CENTER" maxWidth="1.7976931348623157E308" text="4:37:42" textAlignment="CENTER">
<Label fx:id="valueActiveTime" alignment="CENTER"
maxWidth="1.7976931348623157E308" text="4:37:42"
textAlignment="CENTER">
<font>
<Font size="30.0"/>
</font>
@ -256,7 +268,8 @@
<String fx:value=".estraba.dashboard.value.activetime"/>
</styleClass>
</Label>
<Label fx:id="valueCadenceMax1" alignment="CENTER" maxWidth="1.7976931348623157E308" text="of 5:00:00">
<Label fx:id="valueTotalTime" alignment="CENTER"
maxWidth="1.7976931348623157E308" text="of 5:00:00">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -269,19 +282,16 @@
<String fx:value=".estraba.dashboard.value.totaltime"/>
</styleClass>
</Label>
</children>
</VBox>
<ImageView fx:id="imgDistance1" fitHeight="100.0" fitWidth="100.0" pickOnBounds="true" preserveRatio="true" styleClass=".estraba.dashboard.icon">
<image>
<Image url="@../img/timespan.png" />
</image>
<ImageView fx:id="imgDate" fitHeight="100.0" fitWidth="100.0"
pickOnBounds="true" preserveRatio="true"
styleClass=".estraba.dashboard.icon">
<Image url="@../img/date.png"/>
</ImageView>
</children>
</HBox>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity" prefHeight="90.0" prefWidth="200.0" HBox.hgrow="ALWAYS" VBox.vgrow="ALWAYS">
<children>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity"
prefHeight="90.0" prefWidth="200.0" HBox.hgrow="ALWAYS" VBox.vgrow="ALWAYS">
<VBox alignment="CENTER" HBox.hgrow="ALWAYS">
<children>
<Label maxWidth="1.7976931348623157E308" text="%label.distance">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
@ -294,7 +304,9 @@
<String fx:value=".estraba.dashboard.label.HR"/>
</styleClass>
</Label>
<Label fx:id="valueCadenceAvg111" alignment="CENTER" maxWidth="1.7976931348623157E308" text="46714 m" textAlignment="CENTER">
<Label fx:id="valueDistance" alignment="CENTER"
maxWidth="1.7976931348623157E308" text="46714 m"
textAlignment="CENTER">
<font>
<Font size="30.0"/>
</font>
@ -304,19 +316,16 @@
<String fx:value=".estraba.dashboard.value.distance"/>
</styleClass>
</Label>
</children>
</VBox>
<ImageView fx:id="imgDistance" fitHeight="100.0" fitWidth="100.0" pickOnBounds="true" preserveRatio="true" styleClass=".estraba.dashboard.icon">
<image>
<ImageView fx:id="imgDistance" fitHeight="100.0" fitWidth="100.0"
pickOnBounds="true" preserveRatio="true"
styleClass=".estraba.dashboard.icon">
<Image url="@../img/distance.png"/>
</image>
</ImageView>
</children>
</HBox>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity" prefHeight="90.0" prefWidth="200.0" HBox.hgrow="ALWAYS" VBox.vgrow="ALWAYS">
<children>
<HBox alignment="CENTER" minHeight="-Infinity" minWidth="-Infinity"
prefHeight="90.0" prefWidth="200.0" HBox.hgrow="ALWAYS" VBox.vgrow="ALWAYS">
<VBox alignment="CENTER" HBox.hgrow="ALWAYS">
<children>
<Label maxWidth="1.7976931348623157E308" text="%label.elevation">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
@ -329,7 +338,9 @@
<String fx:value=".estraba.dashboard.label.HR"/>
</styleClass>
</Label>
<Label fx:id="valueCadenceAvg11" alignment="CENTER" maxWidth="1.7976931348623157E308" text="3166 m" textAlignment="CENTER">
<Label fx:id="valueElevation" alignment="CENTER"
maxWidth="1.7976931348623157E308" text="3166 m"
textAlignment="CENTER">
<font>
<Font size="30.0"/>
</font>
@ -340,8 +351,9 @@
</styleClass>
</Label>
<HBox>
<children>
<Label fx:id="valueHRMin1" alignment="CENTER_RIGHT" maxWidth="1.7976931348623157E308" text="+ 2053m" HBox.hgrow="ALWAYS">
<Label fx:id="valueAscent" alignment="CENTER_RIGHT"
maxWidth="1.7976931348623157E308" text="+ 2053m"
HBox.hgrow="ALWAYS">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -354,7 +366,9 @@
<String fx:value=".estraba.dashboard.value.ascent"/>
</styleClass>
</Label>
<Label fx:id="valueHRMax1" layoutX="10.0" layoutY="10.0" maxWidth="1.7976931348623157E308" text="- 1113 m" HBox.hgrow="ALWAYS">
<Label fx:id="valueDescent" layoutX="10.0" layoutY="10.0"
maxWidth="1.7976931348623157E308" text="- 1113 m"
HBox.hgrow="ALWAYS">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
@ -367,25 +381,18 @@
<String fx:value=".estraba.dashboard.value.descent"/>
</styleClass>
</Label>
</children>
</HBox>
</children>
</VBox>
<ImageView fx:id="imgAscent" fitHeight="100.0" fitWidth="100.0" pickOnBounds="true" preserveRatio="true" styleClass=".estraba.dashboard.icon">
<image>
<ImageView fx:id="imgElevation" fitHeight="100.0" fitWidth="100.0"
pickOnBounds="true" preserveRatio="true"
styleClass=".estraba.dashboard.icon">
<Image url="@../img/climb.png"/>
</image>
</ImageView>
</children>
</HBox>
</children>
</VBox>
</children>
<VBox.margin>
<Insets />
</VBox.margin>
</HBox>
<Label fx:id="motivationLabel" alignment="CENTER" focusTraversable="false" maxWidth="1.7976931348623157E308" text="%label.motivation">
<Label fx:id="labelMotivationLower" alignment="CENTER" focusTraversable="false"
maxWidth="1.7976931348623157E308" text="%label.motivation">
<font>
<Font name="Roboto" size="56.0"/>
</font>
@ -397,55 +404,59 @@
<String fx:value=".estraba.dashboard.motivation.lower"/>
</styleClass>
</Label>
</children>
</VBox>
</Tab>
<Tab fx:id="tabMap" text="%tab.map">
<VBox>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
</VBox>
</content>
</Tab>
<Tab fx:id="tabMap" text="%tab.map">
<content>
<VBox>
<children>
<GoogleMapView fx:id="mapView"/>
<HBox maxHeight="-Infinity" minHeight="-Infinity" prefHeight="128.0">
<children>
<VBox>
<children>
<JFXButton fx:id="elevationButton" minHeight="-Infinity" minWidth="-Infinity" onAction="#onMapButton" prefHeight="32.0" prefWidth="32.0">
<JFXButton fx:id="elevationButton" minHeight="-Infinity" minWidth="-Infinity"
onAction="#onMapButton" prefHeight="32.0" prefWidth="32.0">
<graphic>
<ImageView fitHeight="32.0" fitWidth="32.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fitHeight="32.0" fitWidth="32.0" pickOnBounds="true"
preserveRatio="true"/>
</graphic>
<VBox.margin>
<Insets/>
</VBox.margin>
</JFXButton>
<JFXButton fx:id="speedButton" layoutX="10.0" layoutY="10.0" minHeight="-Infinity" minWidth="-Infinity" onAction="#onMapButton" prefHeight="32.0" prefWidth="32.0">
<JFXButton fx:id="speedButton" layoutX="10.0" layoutY="10.0" minHeight="-Infinity"
minWidth="-Infinity" onAction="#onMapButton" prefHeight="32.0"
prefWidth="32.0">
<graphic>
<ImageView fitHeight="32.0" fitWidth="32.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fitHeight="32.0" fitWidth="32.0" pickOnBounds="true"
preserveRatio="true"/>
</graphic>
<VBox.margin>
<Insets/>
</VBox.margin>
</JFXButton>
<JFXButton fx:id="hrButton" layoutX="10.0" layoutY="10.0" minHeight="-Infinity" minWidth="-Infinity" onAction="#onMapButton" prefHeight="32.0" prefWidth="32.0">
<JFXButton fx:id="hrButton" layoutX="10.0" layoutY="10.0" minHeight="-Infinity"
minWidth="-Infinity" onAction="#onMapButton" prefHeight="32.0"
prefWidth="32.0">
<graphic>
<ImageView fitHeight="32.0" fitWidth="32.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fitHeight="32.0" fitWidth="32.0" pickOnBounds="true"
preserveRatio="true"/>
</graphic>
<VBox.margin>
<Insets/>
</VBox.margin>
</JFXButton>
<JFXButton fx:id="cadenceButton" layoutX="10.0" layoutY="42.0" minHeight="-Infinity" minWidth="-Infinity" onAction="#onMapButton" prefHeight="32.0" prefWidth="32.0">
<JFXButton fx:id="cadenceButton" layoutX="10.0" layoutY="42.0" minHeight="-Infinity"
minWidth="-Infinity" onAction="#onMapButton" prefHeight="32.0"
prefWidth="32.0">
<graphic>
<ImageView fitHeight="32.0" fitWidth="32.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fitHeight="32.0" fitWidth="32.0" pickOnBounds="true"
preserveRatio="true"/>
</graphic>
<VBox.margin>
<Insets/>
</VBox.margin>
</JFXButton>
</children>
</VBox>
<LineChart HBox.hgrow="ALWAYS">
<xAxis>
@ -455,19 +466,14 @@
<NumberAxis side="LEFT"/>
</yAxis>
</LineChart>
</children>
</HBox>
</children>
</VBox>
</Tab>
<Tab fx:id="tabGraph" text="%tab.graph">
<VBox>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
</padding>
</VBox>
</content>
</Tab>
<Tab fx:id="tabGraph" text="%tab.graph">
<content>
<VBox>
<children>
<AreaChart fx:id="elevationChart" minHeight="100.0">
<xAxis>
<CategoryAxis side="BOTTOM"/>
@ -500,19 +506,10 @@
<NumberAxis side="LEFT"/>
</yAxis>
</LineChart>
</children>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</VBox>
</content>
</Tab>
<Tab fx:id="tabSettings" text="%tab.settings">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"/>
</content>
</Tab>
</tabs>
</JFXTabPane>
</children>
</AnchorPane>