Package eu.lsem.bakalarka.model

Examples of eu.lsem.bakalarka.model.PieChart


        for (int i = 0; i < categories.size(); i++) {
            data[i] = thesesDao.countThesesWithThesisCategory(categories.get(i).getId());
            labels[i] = categories.get(i).getName();
        }
        File chart = File.createTempFile("chart", ".png");
        new PieChart("Graf typ� prac�", PIE_CHART_WIDTH, PIE_CHART_HEIGHT + data.length * 20, labels, data, true).saveChart(chart);
        return chart;
    }
View Full Code Here


        for (int i = 0; i < categories.size(); i++) {
            data[i] = thesesDao.countThesesWithFieldOfStudy(categories.get(i).getId());
            labels[i] = categories.get(i).getName();
        }
        File chart = File.createTempFile("chart", ".png");
        new PieChart("Graf prac� s oborem studia", PIE_CHART_WIDTH, PIE_CHART_HEIGHT + data.length * 20, labels, data, true).saveChart(chart);
        return chart;
    }
View Full Code Here

        for (int i = 0; i < categories.size(); i++) {
            data[i] = thesesDao.countThesesWithFormOfStudy(categories.get(i).getId());
            labels[i] = categories.get(i).getName();
        }
        File chart = File.createTempFile("chart", ".png");
        new PieChart("Graf prac� s formou studia", PIE_CHART_WIDTH, PIE_CHART_HEIGHT + data.length * 20, labels, data, true).saveChart(chart);
        return chart;
    }
View Full Code Here

                labels[counter] = temp + fieldOfStudy.getName();
                counter++;
            }
        }
        File f = File.createTempFile("chart", ".png");
        new PieChart("Graf typ� prac� v jednotliv�ch oborech studia", PIE_CHART_WIDTH*3/2, PIE_CHART_HEIGHT + data.length * 20, labels, data, true).saveChart(f);
        return f;
    }
View Full Code Here

    private File uncompleteMetadataChart() throws IOException, PropertyException, ChartDataException {
        double nekompletniPrace = thesesDao.countThesesWithUncompleteMetadata();
        double kompletniPrace = thesesDao.countTheses() - nekompletniPrace;
        File f = File.createTempFile("chart", ".png");
        new PieChart("Graf kompletnosti metadat", PIE_CHART_WIDTH, PIE_CHART_HEIGHT + 2 * 20,
                new String[]{"Pr�ce s kompletn�mi metadaty", "Pr�ce s nekompletn�mi metadaty"},
                new double[]{kompletniPrace, nekompletniPrace}, true).saveChart(f);
        return f;
    }
View Full Code Here

    private File missingDataFile() throws IOException, PropertyException, ChartDataException {
        double missingDataCount = thesesDao.countThesesWithMissingData();
        double restCount = thesesDao.countTheses() - missingDataCount;
        File f = File.createTempFile("chart", ".png");
        new PieChart("Graf pom�ru prac� s daty", PIE_CHART_WIDTH, PIE_CHART_HEIGHT + 40,
                new String[]{"Pr�ce s nechyb�j�c�mi daty", "Pr�ce s chyb�j�c�mi daty"},
                new double[]{restCount, missingDataCount}, true).saveChart(f);
        return f;
    }
View Full Code Here

    private File notSelectedDocumentationChart() throws IOException, PropertyException, ChartDataException {
        double notSelectedDocumentationCount = thesesDao.countThesesWithoutSelectedDocumentation();
        double restCount = thesesDao.countTheses() - notSelectedDocumentationCount;
        File f = File.createTempFile("chart", ".png");
        new PieChart("Graf pom�ru prac� s vybranou dokumentac�", PIE_CHART_WIDTH, PIE_CHART_HEIGHT + 40,
                new String[]{"Pr�ce s vybranou dokumentac�", "Pr�ce bez vybran� dokumentace"},
                new double[]{restCount, notSelectedDocumentationCount}, true).saveChart(f);
        return f;
    }
View Full Code Here

TOP

Related Classes of eu.lsem.bakalarka.model.PieChart

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.