mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-30 09:26:44 +00:00
removed unused code
This commit is contained in:
-16
@@ -34,21 +34,7 @@ public class TimePanel<T extends TimePanelSettings> extends FormPanel implements
|
||||
TimeRangeChangeListener, PlayStateListener, RequiresResize {
|
||||
protected final Timer timer;
|
||||
protected boolean isTimeZoomed;
|
||||
|
||||
protected final TimeRangeProvider timeRangeProvider;
|
||||
/**
|
||||
* The start time point of the time interval visualized by this time panel. May be <code>null</code> if not yet initialized.
|
||||
*
|
||||
* @see #setMinMax(Date, Date, boolean)
|
||||
*/
|
||||
// private Date min;
|
||||
|
||||
/**
|
||||
* The end time point of the time interval visualized by this time panel. May be <code>null</code> if not yet initialized.
|
||||
*
|
||||
* @see #setMinMax(Date, Date, boolean)
|
||||
*/
|
||||
// private Date max;
|
||||
|
||||
private final IntegerBox playSpeedBox;
|
||||
private final Label timeDelayLabel;
|
||||
@@ -339,12 +325,10 @@ public class TimePanel<T extends TimePanelSettings> extends FormPanel implements
|
||||
boolean changed = false;
|
||||
if (!max.equals(timeRangeProvider.getToTime())) {
|
||||
changed = true;
|
||||
// this.max = max;
|
||||
timeSlider.setMaxValue(new Double(max.getTime()), fireEvent);
|
||||
}
|
||||
if (!min.equals(timeRangeProvider.getFromTime())) {
|
||||
changed = true;
|
||||
// this.min = min;
|
||||
timeSlider.setMinValue(new Double(min.getTime()), fireEvent);
|
||||
if (timeSlider.getCurrentValue() == null) {
|
||||
timeSlider.setCurrentValue(new Double(min.getTime()), fireEvent);
|
||||
|
||||
+1
-41
@@ -35,12 +35,8 @@ public abstract class RaceChart extends SimplePanel implements RaceSelectionChan
|
||||
|
||||
protected final Timer timer;
|
||||
protected final TimeRangeWithZoomProvider timeRangeWithZoomProvider;
|
||||
//
|
||||
// protected Date minTimepoint;
|
||||
// protected Date maxTimepoint;
|
||||
|
||||
|
||||
protected RegattaAndRaceIdentifier selectedRaceIdentifier;
|
||||
// protected RaceTimesInfoDTO lastRaceTimesInfo;
|
||||
|
||||
protected final DateTimeFormat dateFormat = DateTimeFormat.getFormat("HH:mm:ss");
|
||||
protected final DateTimeFormat dateFormatHoursMinutes = DateTimeFormat.getFormat("HH:mm");
|
||||
@@ -71,42 +67,6 @@ public abstract class RaceChart extends SimplePanel implements RaceSelectionChan
|
||||
timeRangeWithZoomProvider.addTimeRangeChangeListener(this);
|
||||
}
|
||||
|
||||
|
||||
// @Override
|
||||
// public void raceTimesInfosReceived(Map<RegattaAndRaceIdentifier, RaceTimesInfoDTO> raceTimesInfos) {
|
||||
// this.lastRaceTimesInfo = raceTimesInfos.get(selectedRaceIdentifier);
|
||||
//
|
||||
// Pair<Date, Date> raceMinMax = RaceTimesCalculationUtil.caluclateRaceMinMax(timer, this.lastRaceTimesInfo);
|
||||
// boolean updateMinMax = false;
|
||||
// Date minTimepoint = timeRangeProvider.getFromTime();
|
||||
// Date maxTimepoint = timeRangeProvider.getToTime();
|
||||
//
|
||||
// if(chart != null) {
|
||||
// if (minTimepoint == null || maxTimepoint == null) {
|
||||
// minTimepoint = raceMinMax.getA();
|
||||
// maxTimepoint = raceMinMax.getB();
|
||||
// updateMinMax = true;
|
||||
// } else if(minTimepoint.getTime() != raceMinMax.getA().getTime() || maxTimepoint.getTime() != raceMinMax.getB().getTime()) {
|
||||
// minTimepoint = raceMinMax.getA();
|
||||
// maxTimepoint = raceMinMax.getB();
|
||||
// updateMinMax = true;
|
||||
// }
|
||||
// }
|
||||
// if (updateMinMax) {
|
||||
// if (minTimepoint != null) {
|
||||
// chart.getXAxis().setMin(minTimepoint.getTime());
|
||||
// }
|
||||
// if (maxTimepoint != null) {
|
||||
// chart.getXAxis().setMax(maxTimepoint.getTime());
|
||||
// }
|
||||
// if (minTimepoint != null && maxTimepoint != null) {
|
||||
// chart.getXAxis().setExtremes(minTimepoint.getTime(), maxTimepoint.getTime(), false, false);
|
||||
// long tickInterval = (maxTimepoint.getTime() - minTimepoint.getTime()) / TICKCOUNT;
|
||||
// chart.getXAxis().setTickInterval(tickInterval);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
protected void showLoading(String message) {
|
||||
if(timer.getPlayMode() != PlayModes.Live) {
|
||||
chart.showLoading(message);
|
||||
|
||||
Reference in New Issue
Block a user