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);