Examples of ObservationListPane


Examples of org.aavso.tools.vstar.ui.pane.list.ObservationListPane

    // 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,
          JDComparator.instance, JDTimeElementEntity.instance, null);

      // Record initial ANOVA information and make the document manager
      // listen to changes to ANOVA via new binning results.
      documentManager.updateAnovaInfo(obsAndMeanPlotModel
          .getBinningResult());

      obsAndMeanPlotModel.getMeansChangeNotifier().addListener(
          documentManager.createBinChangeListener());

      documentManager
          .addStatsInfo("Confidence Interval",
              "Mean error bars denote 95% Confidence Interval (twice Standard Error)");

      obsAndMeanChartPane = createObservationAndMeanPlotPane(LocaleProps
          .get("LIGHT_CURVE")
          + " "
          + LocaleProps.get("FOR")
          + " "
          + starInfo.getDesignation(), null, obsAndMeanPlotModel,
          starInfo.getRetriever());

      obsAndMeanPlotModel.getMeansChangeNotifier().addListener(
          createMeanObsChangeListener(obsAndMeanPlotModel
              .getMeanSourceSeriesNum()));

      // 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.
      meanObsTableModel = new RawDataMeanObservationTableModel(
          obsAndMeanPlotModel.getMeanObsList());

      obsAndMeanPlotModel.getMeansChangeNotifier().addListener(
          meanObsTableModel);

      if (obsArtefactProgressAmount > 0) {
        // Update progress.
        getProgressNotifier().notifyListeners(
            new ProgressInfo(ProgressType.INCREMENT_PROGRESS,
                obsArtefactProgressAmount));
      }
    }

    if (!invalidObsList.isEmpty()) {
      invalidObsTableModel = new InvalidObservationTableModel(
          invalidObsList);
    }

    // The observation table pane contains valid and potentially
    // invalid data components. Tell the valid data table to have
    // a horizontal scrollbar if there will be too many columns.

    boolean enableColumnAutoResize = newStarType == NewStarType.NEW_STAR_FROM_SIMPLE_FILE
        || (newStarType == NewStarType.NEW_STAR_FROM_ARBITRARY_SOURCE && !addObs);

    obsListPane = new ObservationListPane(starInfo.getDesignation(),
        validObsTableModel, invalidObsTableModel,
        enableColumnAutoResize, obsAndMeanPlotModel.getVisibleSeries(),
        AnalysisType.RAW_DATA);

    // We also create the means list pane.
View Full Code Here

Examples of org.aavso.tools.vstar.ui.pane.list.ObservationListPane

    // scrollbar if there will be too many columns.
    boolean enableColumnAutoResize = getLatestNewStarMessage()
        .getNewStarType() == NewStarType.NEW_STAR_FROM_SIMPLE_FILE
        || getLatestNewStarMessage().getNewStarType() == NewStarType.NEW_STAR_FROM_ARBITRARY_SOURCE;

    ObservationListPane obsListPane = new ObservationListPane(objName,
        validObsTableModel, null, enableColumnAutoResize,
        obsAndMeanPlotModel1.getVisibleSeries(),
        AnalysisType.PHASE_PLOT);

    SyntheticObservationListPane<AbstractMeanObservationTableModel> meansListPane = new SyntheticObservationListPane<AbstractMeanObservationTableModel>(
View Full Code Here

Examples of org.aavso.tools.vstar.ui.pane.list.ObservationListPane

          .getChartPanel().createChartPrintJob();
      break;

    case LIST_OBS_MODE:
      try {
        ObservationListPane obsListPane = this.analysisTypeMap.get(
            analysisType).getObsListPane();

        obsListPane.getValidDataTable().print(PrintMode.FIT_WIDTH);

        if (obsListPane.getInvalidDataTable() != null) {
          obsListPane.getInvalidDataTable()
              .print(PrintMode.FIT_WIDTH);
        }
      } catch (PrinterException e) {
        MessageBox.showErrorDialog(parent, "Print Observations", e
            .getMessage());
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.