modelFuncSeriesNum = obsAndMeanPlotModel
.getModelFunctionSeriesNum();
}
PhasedObservationAndMeanPlotModel obsAndMeanPlotModel1 = new PhasedObservationAndMeanPlotModel(
phasedValidObservationCategoryMap,
PreviousCyclePhaseCoordSource.instance,
PreviousCyclePhaseComparator.instance,
PhaseTimeElementEntity.instance, seriesVisibilityMap,
prevCyclePhaseModelFuncModel, modelFuncSeriesNum);
if (prevCyclePhaseModelFuncModel != null) {
prevCyclePhaseModelFuncModel.setPpModel(obsAndMeanPlotModel1);
}
PhasedObservationAndMeanPlotModel obsAndMeanPlotModel2 = new PhasedObservationAndMeanPlotModel(
phasedValidObservationCategoryMap,
StandardPhaseCoordSource.instance,
StandardPhaseComparator.instance,
PhaseTimeElementEntity.instance, seriesVisibilityMap,
stdPhaseModelFuncModel, modelFuncSeriesNum);
if (stdPhaseModelFuncModel != null) {
stdPhaseModelFuncModel.setPpModel(obsAndMeanPlotModel2);
}
// Select an arbitrary model for mean.
obsAndMeanPlotModel = obsAndMeanPlotModel1;
// The mean observation table model must listen to the plot
// model to know when the means data has changed. We also pass
// the initial means data obtained from the plot model to
// the mean observation table model.
PhasePlotMeanObservationTableModel meanObsTableModel = new PhasePlotMeanObservationTableModel(
obsAndMeanPlotModel1.getMeanObsList());
obsAndMeanPlotModel1.getMeansChangeNotifier().addListener(
meanObsTableModel);
obsAndMeanPlotModel2.getMeansChangeNotifier().addListener(
meanObsTableModel);
PhaseAndMeanPlotPane obsAndMeanChartPane = createPhaseAndMeanPlotPane(
LocaleProps.get("PHASE_PLOT") + " " + LocaleProps.get("FOR")
+ " " + objName, subTitle, obsAndMeanPlotModel1,