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

Examples of org.aavso.tools.vstar.ui.dialog.PhaseParameterDialog


  // Return a listener for the "new phase plot" button.
  private ActionListener createNewPhasePlotButtonListener() {
    return new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        try {
          PhaseParameterDialog phaseDialog = Mediator.getInstance()
              .getPhaseParameterDialog();
          phaseDialog.showDialog();
          if (!phaseDialog.isCancelled()) {
            double period = phaseDialog.getPeriod();
            double epoch = phaseDialog.getEpoch();
            Mediator.getUI().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
           
            Mediator.getInstance().createPhasePlotArtefacts(period,
                epoch, plotPane.getObsModel().getSeriesVisibilityMap());
           
View Full Code Here


    this.filteredObservationNotifier
        .addListener(createFilteredObservationListener());

    this.seriesCreationNotifier.addListener(createSeriesCreationListener());

    this.phaseParameterDialog = new PhaseParameterDialog();
    this.newStarNotifier.addListener(this.phaseParameterDialog);

    this.obsFilterDialog = new ObservationFilterDialog();
    this.newStarNotifier.addListener(this.obsFilterDialog
        .createNewStarListener());
View Full Code Here

  // new period and epoch (need to include the epoch in the message), and b.
  // update the plot and table models.
  private Listener<PeriodChangeMessage> createPeriodChangeListener() {
    return new Listener<PeriodChangeMessage>() {
      public void update(PeriodChangeMessage info) {
        PhaseParameterDialog phaseDialog = getPhaseParameterDialog();
        phaseDialog.setPeriodField(info.getPeriod());
        phaseDialog.showDialog();

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

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

          Map<SeriesType, Boolean> seriesVisibilityMap = null;
View Full Code Here

   *
   * The series visibility map for the phase plot is taken from the currently
   * visible plot (raw data or phase plot).
   */
  public void createPhasePlot() {
    PhaseParameterDialog phaseDialog = getPhaseParameterDialog();
    phaseDialog.showDialog();
    if (!phaseDialog.isCancelled()) {
      double period = phaseDialog.getPeriod();
      double epoch = phaseDialog.getEpoch();

      Map<SeriesType, Boolean> seriesVisibilityMap = analysisTypeMap.get(
          analysisType).getObsAndMeanChartPane().getObsModel()
          .getSeriesVisibilityMap();

View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.ui.dialog.PhaseParameterDialog

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.