Change "Vertical marker" to "Vertical line"

This commit is contained in:
SiboVG 2023-01-01 05:22:36 +01:00
parent c374f616b9
commit a3252e3d15
2 changed files with 4 additions and 4 deletions

View File

@ -721,7 +721,7 @@ SimulationPlotPanel.error.noPlotSelected = Please add one or more variables to p
SimulationPlotPanel.error.noPlotSelected.title = Nothing to plot
simplotpanel.MarkerStyle.lbl.MarkerStyle = Marker style:
simplotpanel.MarkerStyle.lbl.MarkerStyle.ttip = Style of the flight event marker (how it's drawn in the simulation plot)
simplotpanel.MarkerStyle.btn.VerticalMarker = Vertical marker
simplotpanel.MarkerStyle.btn.VerticalMarker = Vertical line
simplotpanel.MarkerStyle.btn.Icon = Icon
simplotpanel.MarkerStyle.OnlyInTime = Only available for time domain, other domains only support icon markers

View File

@ -421,7 +421,7 @@ public class SimulationPlot {
// Plot the markers
if (config.getDomainAxisType() == FlightDataType.TYPE_TIME && !preferences.getBoolean(Preferences.MARKER_STYLE_ICON, false)) {
fillEventLists(branch, eventTimes, eventLabels, eventColors, eventImages);
plotVerticalMarkers(plot, eventTimes, eventLabels, eventColors);
plotVerticalLineMarkers(plot, eventTimes, eventLabels, eventColors);
} else { // Other domains are plotted as image annotations
if (branch == -1) {
@ -490,10 +490,10 @@ public class SimulationPlot {
}
}
private static void plotVerticalMarkers(XYPlot plot, List<Double> eventTimes, List<String> eventLabels, List<Color> eventColors) {
private static void plotVerticalLineMarkers(XYPlot plot, List<Double> eventTimes, List<String> eventLabels, List<Color> eventColors) {
double markerWidth = 0.01 * plot.getDomainAxis().getUpperBound();
// Domain time is plotted as vertical markers
// Domain time is plotted as vertical lines
for (int i = 0; i < eventTimes.size(); i++) {
double t = eventTimes.get(i);
String event = eventLabels.get(i);