+ _timeLabel.setToolTipText("");
+ }
+ // Maybe the point has a description?
+ String pointDesc = currentPoint.getFieldValue(Field.DESCRIPTION);
+ if (pointDesc == null || pointDesc.equals("") || currentPoint.hasMedia()) {
+ _descLabel.setText("");
+ _descLabel.setToolTipText("");
+ }
+ else
+ {
+ if (pointDesc.length() < 5) {
+ _descLabel.setText(LABEL_POINT_DESCRIPTION + pointDesc);
+ }
+ else {
+ _descLabel.setText(shortenString(pointDesc));
+ }
+ _descLabel.setToolTipText(pointDesc);
+ }
+
+ // Speed can come from either timestamps and distances, or speed values in data
+ SpeedValue speedValue = new SpeedValue();
+ SpeedCalculator.calculateSpeed(_track, currentPointIndex, speedValue);
+ if (speedValue.isValid())
+ {
+ String speed = DisplayUtils.roundedNumber(speedValue.getValue()) + " " + speedUnitsStr;
+ _speedLabel.setText(LABEL_POINT_SPEED + speed);