Package systole.view.tabs.controllers

Examples of systole.view.tabs.controllers.ResultsModel


    }

    @Override
    protected Void doInBackground() {
        try {
            ResultsModel modelResult = this.parentControl.getResultsModel();
            if ((modelResult != null) && (modelResult.getCurrentFinalSignal() != null)) {

                XYChart chart = new XYChart("Registro de Variación", "[ms]", "[%]");

                chart.addSeries("", modelResult.getCurrentFinalSignal().getFinalSegment().toDoubleArray(), this.parentControl.getAnalysis().getSignalFrequency().getFrequency().doubleValue());
                chart.setShowLegend(false);
                chart.setShowTitle(false);

                this.image = chart.plotThumbnail(280, 200, true);
                this.chartPanel = chart.blackAndWhitePlot();
View Full Code Here


        jScrollParams.setViewportView(this.jTableParams);
    }

    public void loadSegments() {

        ResultsModel model = this.analysisController.getResultsModel();

        double xScaleFactor = this.analysisController.getAnalysis().getSignalFrequency().getFrequency().doubleValue();
        this.paramsChart = new XYChart("Parámetros Segmento Final", "Tiempo (ms)", "Amplitud (%)");
        this.paramsChart.addSeries("Latido", model.getCurrentFinalSignal().getFinalSegment().toDoubleArray(), xScaleFactor);
        this.paramsChart.addSeries("Derivada 2da", model.getCurrentFinalSignal().getSecondDerivative().toDoubleArray(), xScaleFactor);
        this.paramsChart.addSeries("Derivada 4ta", model.getCurrentFinalSignal().getFourthDerivative().toDoubleArray(), xScaleFactor);
        this.paramsChartPanel = this.paramsChart.plot();
        this.paramsChartPanel.getChart().getXYPlot().setDomainCrosshairVisible(true);
        this.paramsChartPanel.getChart().getXYPlot().setRangeCrosshairVisible(true);
        this.paramsChartPanel.getChart().addProgressListener(this);

        XYItemRenderer rend = this.paramsChartPanel.getChart().getXYPlot().getRenderer();
        rend.setSeriesVisible(1, false, true);
        rend.setSeriesVisible(2, false, true);

        this.chartParameters = new XYParameterList(this.paramsChartPanel.getChart().getXYPlot(), this.analysisController.getResultsModel());

        int minValue = 0;
        int maxValue = model.getCurrentFinalSignal().getFinalSegment().size() - 1;

        this.jXYSlider.setMinimum(minValue);
        this.jXYSlider.setMaximum(maxValue);
        this.jXYSlider.setValue((int) Math.floor(maxValue / 2));
        this.jXYSlider.addChangeListener(this);
View Full Code Here

TOP

Related Classes of systole.view.tabs.controllers.ResultsModel

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.