for (int subPlotIndex = 0; subPlotIndex < lineSettings.size() && subPlotIndex < subPlots.size(); subPlotIndex++) {
AbstractPlottingPackage plot = subPlots.get(subPlotIndex);
for (Entry<String, LineSettings> entry : lineSettings.get(subPlotIndex).entrySet()) {
AbstractPlotDataSeries series = plot.getPlotDataManager().getNamedDataSeries(entry.getKey());
if (series != null) {
AbstractLegendEntry legendEntry = series.getLegendEntry();
if (legendEntry instanceof LegendEntry) {
((LegendEntry) legendEntry).setLineSettings(entry.getValue());
}
}
}