Package org.aavso.tools.vstar.ui.dialog.series

Examples of org.aavso.tools.vstar.ui.dialog.series.SingleSeriesSelectionDialog


  private Double magDelta;

  @Override
  public void invoke(ISeriesInfoProvider seriesInfo) {
    SingleSeriesSelectionDialog seriesSelector = new SingleSeriesSelectionDialog(
        Mediator.getInstance().getObservationPlotModel(
            AnalysisType.RAW_DATA));

    if (!seriesSelector.isCancelled()) {
      // Get magnitude shift.
      List<ITextComponent<?>> inputFields = new ArrayList<ITextComponent<?>>();
      DoubleField magDeltaField = new DoubleField("Magnitude Change",
          null, null, magDelta);
      inputFields.add(magDeltaField);
      MultiEntryComponentDialog magDeltaDlg = new MultiEntryComponentDialog(
          "Magnitude Change Input", inputFields);

      // Create a new series with the adjusted magnitude.
      if (!magDeltaDlg.isCancelled()) {
        magDelta = magDeltaField.getValue();

        SeriesType type = seriesSelector.getSeries();
        List<ValidObservation> obs = seriesInfo.getObservations(type);

        String description = String.format("%s shifted by %s", type
            .getDescription(), NumericPrecisionPrefs
            .formatMag(magDelta));
View Full Code Here


    // Request the series to be used.
    ObservationAndMeanPlotModel model = Mediator.getInstance()
        .getObservationPlotModel(AnalysisType.RAW_DATA);

    SingleSeriesSelectionDialog seriesDlg = new SingleSeriesSelectionDialog(
        model);

    if (!seriesDlg.isCancelled()) {
      // Get the mean magnitude.
      SeriesType series = seriesDlg.getSeries();
      List<ValidObservation> obs = seriesInfo.getObservations(series);
      // TODO: how should this be computed? B-V or arithmetic mean as
      // below?
      magnitude = DescStats.calcMagMeanInRange(obs,
          JDTimeElementEntity.instance, 0, obs.size() - 1)[DescStats.MEAN_MAG_INDEX];
View Full Code Here

   * changes can have wildly different amplitudes in U or B versus Rc or Ic.
   */
  public void performPeriodAnalysis(PeriodAnalysisPluginBase plugin) {
    try {
      if (getLatestNewStarMessage() != null && validObsList != null) {
        SingleSeriesSelectionDialog dialog = new SingleSeriesSelectionDialog(
            obsAndMeanPlotModel);

        if (!dialog.isCancelled()) {
          SeriesType type = dialog.getSeries();

          List<ValidObservation> obs = getSeriesInfoProvider()
              .getObservations(type);

          this.getProgressNotifier().notifyListeners(
View Full Code Here

   * Perform a plugin based modeling operation.
   */
  public void performModellingOperation(ModelCreatorPluginBase plugin) {
    try {
      if (getLatestNewStarMessage() != null && validObsList != null) {
        SingleSeriesSelectionDialog seriesDialog = new SingleSeriesSelectionDialog(
            obsAndMeanPlotModel);

        if (!seriesDialog.isCancelled()) {
          SeriesType type = seriesDialog.getSeries();

          List<ValidObservation> obs = getSeriesInfoProvider()
              .getObservations(type);

          IModel model = plugin.getModel(obs);
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.ui.dialog.series.SingleSeriesSelectionDialog

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.