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

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


    // binSet.add("20");
    // binSet.add("50");
    // SelectableTextField binsField = new SelectableTextField("Bins",
    // binSet);

    IntegerField binsField = new IntegerField("Bins", 0, 50, bins);
    fields.add(binsField);

    MultiEntryComponentDialog dlg = new MultiEntryComponentDialog(
        "AoV Parameters", fields);

    cancelled = dlg.isCancelled();

    if (!cancelled) {

      try {
        bins = binsField.getValue();
        if (bins <= 0) {
          MessageBox.showErrorDialog("AoV Parameters",
              "Number of bins must be greater than zero");
          legalParams = false;
        }
View Full Code Here


    return "Fourier Model";
  }

  @Override
  public IModel getModel(List<ValidObservation> obs) {
    IntegerField numPeriodField = new IntegerField("Number of Periods", 0, null, 1);
    MultiEntryComponentDialog numPeriodsDialog = new MultiEntryComponentDialog(
        "Period Count", numPeriodField);
   
    PeriodAnalysisDerivedMultiPeriodicModel model = null;
     
    if (!numPeriodsDialog.isCancelled()) {
      int numPeriods = numPeriodField.getValue();

      List<Double> userSelectedFreqs = new ArrayList<Double>();
      for (int i = 0; i < numPeriods; i++) {
        userSelectedFreqs.add(1.0);
      }
View Full Code Here

    }
  }

  // Request the B1950.0 RA in HH:MM:SS.n
  public RAInfo requestRA() {
    IntegerField raHours = new IntegerField("Hours", 0, 60, null);
    IntegerField raMinutes = new IntegerField("Minutes", 0, 60, null);
    DoubleField raSeconds = new DoubleField("Seconds", 0.0, 60.0, null);
    MultiEntryComponentDialog dialog = new MultiEntryComponentDialog(
        "RA (B1950.0)", raHours, raMinutes, raSeconds);

    RAInfo raInfo = null;
    if (!dialog.isCancelled()) {
      raInfo = new RAInfo(1950, raHours.getValue(), raMinutes.getValue(),
          raSeconds.getValue());
    }

    return raInfo;
  }
View Full Code Here

    return raInfo;
  }

  // Request the B1950.0 Dec in DD:MM:SS.n
  public DecInfo requestDec() {
    IntegerField raHours = new IntegerField("Degrees", -90, 90, null);
    IntegerField raMinutes = new IntegerField("Minutes", 0, 60, null);
    DoubleField raSeconds = new DoubleField("Seconds", 0.0, 60.0, null);
    MultiEntryComponentDialog dialog = new MultiEntryComponentDialog(
        "Dec (B1950.0)", raHours, raMinutes, raSeconds);

    DecInfo decInfo = null;
    if (!dialog.isCancelled()) {
      decInfo = new DecInfo(1950, raHours.getValue(), raMinutes
          .getValue(), raSeconds.getValue());
    }

    return decInfo;
  }
View Full Code Here

TOP

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

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.