Package org.aavso.tools.vstar.ui.model.plot

Examples of org.aavso.tools.vstar.ui.model.plot.PhasedObservationAndMeanPlotModel


      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,
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.ui.model.plot.PhasedObservationAndMeanPlotModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.