Segment segment = (this.getRawSignal().isInverted() ? this.getRawSignal().getSegment().invert() : this.getRawSignal().getSegment());
XYChart ploter = new XYChart("Tren de pulsos", "Muestras", "Amplitud");
ploter.addSeries("pulsos", segment.toDoubleArray(), 1);
ploter.setShowLegend(false);
ploter.setShowTitle(false);
this.chart = ploter.plot();
this.preview.getjPnlCenter().add(this.chart, BorderLayout.CENTER);
} else {
this.preview.getjPnlCenter().removeAll();
}
this.preview.getjPnlCenter().revalidate();