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

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


  }

  @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

  // 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.MultiEntryComponentDialog

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.