Examples of AnalysisTypeChangeMessage


Examples of org.aavso.tools.vstar.ui.mediator.message.AnalysisTypeChangeMessage

        if (!phaseDialog.isCancelled()) {
          double period = phaseDialog.getPeriod();
          double epoch = phaseDialog.getEpoch();

          AnalysisTypeChangeMessage lastPhasePlotMsg = analysisTypeMap
              .get(AnalysisType.PHASE_PLOT);

          Map<SeriesType, Boolean> seriesVisibilityMap = null;

          if (lastPhasePlotMsg != null) {
            // Use the last phase plot's series visibility map.
            seriesVisibilityMap = lastPhasePlotMsg
                .getObsAndMeanChartPane().getObsModel()
                .getSeriesVisibilityMap();
          } else {
            // There has been no phase plot yet, so use the
            // light curve's series visibility map.
            AnalysisTypeChangeMessage lightCurveMsg = analysisTypeMap
                .get(AnalysisType.RAW_DATA);
            seriesVisibilityMap = lightCurveMsg
                .getObsAndMeanChartPane().getObsModel()
                .getSeriesVisibilityMap();
          }

          performPhasePlot(period, epoch, seriesVisibilityMap);
View Full Code Here

Examples of org.aavso.tools.vstar.ui.mediator.message.AnalysisTypeChangeMessage

   *            The analysis type to change to.
   */
  public AnalysisType changeAnalysisType(AnalysisType analysisType) {
    if (this.analysisType != analysisType) {
      try {
        AnalysisTypeChangeMessage msg;

        switch (analysisType) {
        case RAW_DATA:
          // Create or retrieve raw plots and data tables.
          // There has to be observations loaded already in order
View Full Code Here

Examples of org.aavso.tools.vstar.ui.mediator.message.AnalysisTypeChangeMessage

    // Create a message to notify whoever is listening that the analysis
    // type has changed (we could have been viewing a phase plot for a
    // different star before now) passing GUI components in the message.
    analysisType = AnalysisType.RAW_DATA;

    AnalysisTypeChangeMessage analysisTypeMsg = new AnalysisTypeChangeMessage(
        analysisType, obsAndMeanChartPane, obsListPane, meansListPane,
        ViewModeType.PLOT_OBS_MODE);

    // Commit to using the new observation lists and category map,
    // first making old values available for garbage collection.
View Full Code Here

Examples of org.aavso.tools.vstar.ui.mediator.message.AnalysisTypeChangeMessage

    PhaseChangeMessage phaseChangeMessage = new PhaseChangeMessage(this,
        period, epoch, seriesVisibilityMap);
    phaseChangeNotifier.notifyListeners(phaseChangeMessage);

    // Observation-and-mean table and plot.
    AnalysisTypeChangeMessage phasePlotMsg = new AnalysisTypeChangeMessage(
        AnalysisType.PHASE_PLOT, obsAndMeanChartPane, obsListPane,
        meansListPane, ViewModeType.PLOT_OBS_MODE);

    analysisTypeMap.put(AnalysisType.PHASE_PLOT, phasePlotMsg);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.