Map<SeriesType, List<ValidObservation>> validObservationCategoryMap = starInfo
.getRetriever().getValidObservationCategoryMap();
// Table models.
ValidObservationTableModel validObsTableModel = null;
InvalidObservationTableModel invalidObsTableModel = null;
RawDataMeanObservationTableModel meanObsTableModel = null;
// Plot models.
obsAndMeanPlotModel = null;
// GUI table and chart components.
ObservationListPane obsListPane = null;
SyntheticObservationListPane<AbstractMeanObservationTableModel> meansListPane = null;
ObservationAndMeanPlotPane obsAndMeanChartPane = null;
if (!validObsList.isEmpty()) {
freeListeners();
// Create a message to notify whoever is listening that a new star
// has been loaded.
NewStarMessage newStarMsg = new NewStarMessage(newStarType,
starInfo, validObsList, validObservationCategoryMap,
starInfo.getRetriever().getMinMag(), starInfo
.getRetriever().getMaxMag(), starInfo
.getRetriever().getSourceName());
if (!addObs) {
newStarMessageList.clear();
}
newStarMessageList.add(newStarMsg);
// This is a specific fix for tracker 3007948.
this.discrepantObservationNotifier = new Notifier<DiscrepantObservationMessage>();
// Observation table and plot.
validObsTableModel = new ValidObservationTableModel(validObsList,
newStarType.getRawDataTableColumnInfoSource());
// Observation-and-mean table and plot.
obsAndMeanPlotModel = new ObservationAndMeanPlotModel(
validObservationCategoryMap, JDCoordSource.instance,