Package systole.domain.signals

Examples of systole.domain.signals.Segment


            Iterator<SelectionItem> items = this.originalSegments.iterator();
            SelectionItem item;
            while (items.hasNext()) {
                item = items.next();
                if (item.isSelected()) {
                    Segment segment = analysis.getAllSegments().getSegments().elementAt(item.getIndexSegement());
                    if (segment != null) {
                        SelectedSegment selectedSegment = new SelectedSegment(item.getIndexSegement(), segment);
                        this.getSelectedSegments().add(selectedSegment);
                    }
                }
View Full Code Here


     */
    private void loadResults(List<CorrelationResult> segments) {
        if (segments != null) {
            Iterator<CorrelationResult> it = segments.iterator();
            CorrelationResult currentSegment;
            Segment segment;
            XYChart chart;
            int currentPos;
            String name;
            ChartPanel pnl;
            if ((x == 0) || (y == 0)) {
                x = this.jPnlResultCenter.getWidth() / 4;
                y = this.jPnlResultCenter.getHeight() - 15;
            }
            Dimension dim = new Dimension(x, y);
            DecimalFormat format = new DecimalFormat("####.00");
            while (it.hasNext()) {
                currentSegment = it.next();
                //currentPos = this.controller.getAnalysis().getAllSegments().getSegments().indexOf(currentSegment);
                segment = this.controller.getAnalysis().getAllSegments().getSegments().elementAt(currentSegment.getSegmentNumber());
                name = "Segmento: " + currentSegment.getSegmentNumber();
                chart = new XYChart(name);
                chart.addSeries(name, segment.toDoubleArray(), 1);
                chart.setShowLegend(false);
                chart.setShowTitle(false);
                pnl = chart.plot();
                pnl.setMouseZoomable(false);
                pnl.setPopupMenu(null);
View Full Code Here

            }
            Dimension dim = new Dimension(x, y);
            XYChart chart;
            String name;
            ChartPanel pnl;
            Segment currentSegment = this.analysisControl.getAnalysis().getAllSegments().getSegments().elementAt(
                    item);
            name = "Segmento: " + (item);
            chart = new XYChart(name);
            chart.addSeries(name, currentSegment.toDoubleArray(), 1);
            chart.setShowLegend(false);
            chart.setShowTitle(false);
            pnl = chart.plot();
            pnl.setMouseZoomable(false);
            pnl.setPopupMenu(null);
View Full Code Here

    /**
     * @param pnlToCorrelation
     */
    public void applyCorrelation(JPnlItemFlow pnlToCorrelation) {
        Segment segment = this.analysisControl.getAnalysis().getAllSegments().getSegments().get(
                pnlToCorrelation.getSegmentIndex());
        if (segment != null) {
            this.parent.applyCorrelation(segment);
        }
    }
View Full Code Here

     */
    @Action
    public void previewFilter(){

        //Llamo a refiltrar - estos debieran ser parametros de esta clase y no de metodo
        Segment refiltered = FilterProcessor.filterPulseWave(this.logic.getAnalysis().getRawSignal().getSegment(), this.setupSettings());

        XYChart previewChart = new XYChart("Señal Filtrada - Vista Previa","Muestras","Amplitud(%)");
        previewChart.setShowLegend(false);
        previewChart.addSeries("", refiltered.toDoubleArray(), 1);

        this.jPnlFilteredSignal.removeAll();
        this.jPnlFilteredSignal.add(previewChart.plot());
        this.jPnlFilteredSignal.revalidate();

View Full Code Here

            this.rawSignal = null;
            this.jEdtFile.setText("");

            FileReaderTXT reader = new FileReaderTXT();
            Segment segment = null;
            try {
                segment = reader.readFile(file);
                if (segment != null) {
                    this.rawSignal = new RawSignal();
                    this.getRawSignal().setSegment(segment);
View Full Code Here

TOP

Related Classes of systole.domain.signals.Segment

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.