Examples of WWZStatistic


Examples of org.aavso.tools.vstar.util.period.wwz.WWZStatistic

      public void actionPerformed(ActionEvent e) {
        List<Double> periods = new ArrayList<Double>();
        int[] selectedTableRowIndices = table.getSelectedRows();
        for (int row : selectedTableRowIndices) {
          int modelRow = table.convertRowIndexToModel(row);
          WWZStatistic dataPoint = model
              .getDataPointFromRow(modelRow);
          periods.add(dataPoint.getPeriod());
        }

        if (!periods.isEmpty()) {
          try {
            IModel periodModel = new WWZMultiperiodicModel(model
View Full Code Here

Examples of org.aavso.tools.vstar.util.period.wwz.WWZStatistic

      public void update(PeriodAnalysisSelectionMessage info) {
        if (info.getSource() != parent) {
          // Find the datapoint in the model (could be minimal or full
          // stats).
          IPeriodAnalysisDatum datum = info.getDataPoint();
          WWZStatistic foundStat = null;
          for (WWZStatistic stat : model.getStats()) {
            if (stat.equals(datum)) {
              foundStat = stat;
              break;
            }
          }

          if (foundStat != null) {
            double x = foundStat.getValue(model.getDomainType());
            double y = foundStat.getValue(model.getRangeType());

            chart.getXYPlot().setDomainCrosshairValue(x);
            chart.getXYPlot().setRangeCrosshairValue(y);
          }
        }
View Full Code Here

Examples of org.aavso.tools.vstar.util.period.wwz.WWZStatistic

    int size = stats.size();
    double[][] xyz = new double[3][size];

    for (int i = 0; i < size; i++) {
      WWZStatistic stat = stats.get(i);
      xyz[0][i] = stat.getValue(xType);
      xyz[1][i] = stat.getValue(yType);
      xyz[2][i] = stat.getValue(zType);
    }

    plot.addBarPlot(LocaleProps.get("WWZ_STATISTICS_3D_PLOT"), Color.GREEN,
        xyz);
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.