From 5f12ddbf57d37a4290811fdac3961ed7ef83657e Mon Sep 17 00:00:00 2001 From: Miguel Carvalho Date: Mon, 16 Dec 2024 16:11:19 +0000 Subject: [PATCH] plots/MRATimeSeriesPlot: Chart title construction now supports Timeline plots. --- src/java/pt/lsts/neptus/mra/plots/MRATimeSeriesPlot.java | 2 +- src/java/pt/lsts/neptus/mra/plots/ReplayPlot.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/pt/lsts/neptus/mra/plots/MRATimeSeriesPlot.java b/src/java/pt/lsts/neptus/mra/plots/MRATimeSeriesPlot.java index 1e22375614..e2707496ab 100644 --- a/src/java/pt/lsts/neptus/mra/plots/MRATimeSeriesPlot.java +++ b/src/java/pt/lsts/neptus/mra/plots/MRATimeSeriesPlot.java @@ -143,7 +143,7 @@ public String parseChartTitle(StringBuilder sb) { String chartType = chartTitle.substring(chartTitle.indexOf("] ") + 1); - if (chartType.contains("Messages") || chartType.contains("Compare")){ + if (chartType.contains("Messages") || chartType.contains("Compare") || chartType.contains("Timeline")){ Map> seriesMap = new HashMap>(); String seriesStr = chartTitle; diff --git a/src/java/pt/lsts/neptus/mra/plots/ReplayPlot.java b/src/java/pt/lsts/neptus/mra/plots/ReplayPlot.java index 4f3f30b825..e82236eb3b 100644 --- a/src/java/pt/lsts/neptus/mra/plots/ReplayPlot.java +++ b/src/java/pt/lsts/neptus/mra/plots/ReplayPlot.java @@ -109,7 +109,7 @@ public Component getComponent(IMraLogGroup source, double timestep) { public String getName() { StringBuilder sb = new StringBuilder(Arrays.toString(fieldsToPlot)); sb.append(" Timeline"); - return sb.toString(); + return parseChartTitle(sb); } @Override