Examples of DoubleField


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

    private JPanel createParameterPane() {
      JPanel panel = new JPanel();
      panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));

      raDegField = new DoubleField("RA (degrees)", 0.0, 360.0, raDegs);
      panel.add(raDegField.getUIComponent());
      panel.add(Box.createRigidArea(new Dimension(75, 10)));

      decDegField = new DoubleField("Dec (degrees)", -90.0, 90.0, decDegs);
      panel.add(decDegField.getUIComponent());
      panel.add(Box.createRigidArea(new Dimension(75, 10)));

      String[] radii = new String[] { "0.001 deg = 3.6 arcsec",
          "0.002 deg = 7.2 arcsec", "0.005 deg = 18.0 arcsec" };
View Full Code Here

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

    legalParams = true;

    List<ITextComponent<?>> fields = new ArrayList<ITextComponent<?>>();

    double days = obs.get(obs.size() - 1).getJD() - obs.get(0).getJD();
    DoubleField minPeriodField = new DoubleField("Minimum Period", 0.01,
        days, minPeriod);
    fields.add(minPeriodField);
    fields.add(minPeriodField);

    DoubleField maxPeriodField = new DoubleField("Maximum Period", 0.0,
        days, maxPeriod == 0.0 ? days : maxPeriod);
    fields.add(maxPeriodField);

    DoubleField resolutionField = new DoubleField("Resolution", 0.0, 1.0,
        resolution);
    fields.add(resolutionField);

    // Set<String> binSet = new TreeSet<String>();
    // binSet.add("4");
    // binSet.add("10");
    // 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;
        }
      } catch (Exception e) {
        legalParams = false;
      }

      minPeriod = minPeriodField.getValue();
      maxPeriod = maxPeriodField.getValue();
      resolution = resolutionField.getValue();

      if (minPeriod > maxPeriod) {
        MessageBox
            .showErrorDialog("AoV Parameters",
                "Minimum period must be less than or equal to maximum period");
View Full Code Here

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

            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
View Full Code Here

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

        }
      });
      fields.add(typesField);
      fields.add(absMagEqn);

      DoubleField periodField = new DoubleField("Period", null, null,
          period);
      fields.add(periodField);
      DoubleField magField = new DoubleField("Mean Apparent Mag", null,
          null, magnitude);
      fields.add(magField);
      MultiEntryComponentDialog inputDlg = new MultiEntryComponentDialog(
          "Inputs", fields);

      if (!inputDlg.isCancelled()) {
        period = periodField.getValue();
        magnitude = magField.getValue();
        String varType = typesField.getValue();

        Double absMagnitude = null;
        Double distance = null;
View Full Code Here

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

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

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

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

Examples of org.apache.click.extras.control.DoubleField

    public EditTable() {
        // Setup customers form
        FieldSet fieldSet = new FieldSet("customer");
        fieldSet.add(new TextField("name"));
        fieldSet.add(new EmailField("email"));
        fieldSet.add(new DoubleField("holdings"));
        fieldSet.add(new DateField("dateJoined"));
        form.add(fieldSet);
        form.add(new Submit("save", this, "onSaveClick"));
        form.add(new Submit("cancel", this, "onCancelClick"));
        form.add(new HiddenField(Table.PAGE, String.class));
View Full Code Here

Examples of org.apache.click.extras.control.DoubleField

        ageField.setMinValue(1);
        ageField.setMaxValue(120);
        ageField.setWidth("40px");
        fieldSet.add(ageField);

        DoubleField holdingsField = new DoubleField("holdings");
        holdingsField.setTextAlign("right");
        fieldSet.add(holdingsField);

        fieldSet.add(new InvestmentSelect("investments"));
        fieldSet.add(new DateField("dateJoined"));
        fieldSet.add(new Checkbox("active"));
View Full Code Here

Examples of org.apache.click.extras.control.DoubleField

    public EditCustomerPage() {
        // Setup customers form
        FieldSet fieldSet = new FieldSet("customer");
        fieldSet.add(new TextField("name", true));
        fieldSet.add(new EmailField("email"));
        fieldSet.add(new DoubleField("holdings", true));
        fieldSet.add(new DateField("dateJoined"));
        form.add(fieldSet);
        form.add(new Submit("save", this, "onSaveClick"));
        form.add(new Submit("cancel", this, "onCancelClick"));
    }
View Full Code Here

Examples of org.apache.click.extras.control.DoubleField

        IntegerField ageField = new IntegerField("age");
        ageField.setMinValue(1);
        ageField.setMaxValue(120);
        form.add(ageField);

        DoubleField holdingsField = new DoubleField("holdings", true);
        holdingsField.setTitle("Total investment holdings");
        form.add(holdingsField);

        form.add(new InvestmentSelect("investments"));

        form.add(new Submit("ok", " OK "));
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.