Examples of PeriodAnalysis2DPlotModel


Examples of org.aavso.tools.vstar.ui.model.plot.PeriodAnalysis2DPlotModel

      Map<PeriodAnalysisCoordinateType, List<Double>> analysisValues,
      PeriodAnalysisCoordinateType domainType,
      PeriodAnalysisCoordinateType rangeType, boolean permitLogarithmic,
      boolean isLogarithmic) {

    PeriodAnalysis2DPlotModel model = new PeriodAnalysis2DPlotModel(
        analysisValues, domainType, rangeType, isLogarithmic);

    // Create a line chart with legend, tool-tips, and URLs showing
    // and add it to the panel.
    PeriodAnalysis2DChartPane chartPanel = new PeriodAnalysis2DChartPane(
        ChartFactory.createXYLineChart(title, model.getDomainType()
            .getDescription(), model.getRangeType()
            .getDescription(), model, PlotOrientation.VERTICAL,
            true, true, true), model, permitLogarithmic);

    chartPanel.getChart().addSubtitle(new TextTitle(subtitle));
View Full Code Here

Examples of org.aavso.tools.vstar.ui.model.plot.PeriodAnalysis2DPlotModel

        public void actionPerformed(ActionEvent event) {
          for (int modelNum = 0; modelNum < chart.getXYPlot()
              .getDatasetCount(); modelNum++) {
            XYDataset dataset = chart.getXYPlot().getDataset(
                modelNum);
            PeriodAnalysis2DPlotModel plotModel = (PeriodAnalysis2DPlotModel) dataset;
            plotModel.setLogarithmic(logarithmicCheckBox
                .isSelected());
            plotModel.refresh();
          }
        }
      });
      panel.add(logarithmicCheckBox, BorderLayout.CENTER);
    }
View Full Code Here

Examples of org.aavso.tools.vstar.ui.model.plot.PeriodAnalysis2DPlotModel

      for (int modelNum = 0; modelNum < chart.getXYPlot()
          .getDatasetCount(); modelNum++) {
        if (dataPoint == null) {
          XYDataset dataset = chart.getXYPlot().getDataset(modelNum);
          PeriodAnalysis2DPlotModel plotModel = (PeriodAnalysis2DPlotModel) dataset;
          dataPoint = plotModel.getDataPointFromItem(item);
        }
      }

      PeriodAnalysisSelectionMessage message = new PeriodAnalysisSelectionMessage(
          this, dataPoint, item);
View Full Code Here

Examples of org.aavso.tools.vstar.ui.model.plot.PeriodAnalysis2DPlotModel

        algorithm.getTopHits());

    plotModels = new ArrayList<PeriodAnalysis2DPlotModel>();

    // Frequency vs Power
    plotModels.add(new PeriodAnalysis2DPlotModel(resultDataMap,
        PeriodAnalysisCoordinateType.FREQUENCY,
        PeriodAnalysisCoordinateType.POWER, false));

    // Frequency vs Amplitude
    plotModels.add(new PeriodAnalysis2DPlotModel(resultDataMap,
        PeriodAnalysisCoordinateType.FREQUENCY,
        PeriodAnalysisCoordinateType.AMPLITUDE, false));

    // Period vs Power
    // plotModels.add(new PeriodAnalysis2DPlotModel(resultDataMap,
View Full Code Here

Examples of org.aavso.tools.vstar.ui.model.plot.PeriodAnalysis2DPlotModel

          .createLinePlot(chartTitle, seriesTitle, model,
              permitlogarithmic);

      PeriodAnalysis2DChartPane topHitsPlot = PeriodAnalysisComponentFactory
          .createScatterPlot(chartTitle, seriesTitle,
              new PeriodAnalysis2DPlotModel(algorithm
                  .getTopHits(), model.getDomainType(), model
                  .getRangeType(), model.isLogarithmic()),
              permitlogarithmic);

      // Add the above line plot's model to the scatter plot.
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.