Package kanakata.analytics

Examples of kanakata.analytics.Histogram


            }

            @Override
            public void onAnswerIncorrect(Kana answer) {
                activateTabFor(kana);
                Histogram histogram = selectHistogramFor(kana);
                histogram.registerIncorrectResponse(kana);
                Response response = histogram.response(kana);
                Bin incorrect = incorrectBins.get(kana);
                incorrect.setLevel(response.getIncorrect());
            }

            @Override
            public void onAnswerCorrect() {
                activateTabFor(kana);
                Histogram histogram = selectHistogramFor(kana);
                histogram.registerCorrectResponse(kana);
                Response response = histogram.response(kana);
                Bin correct = correctBins.get(kana);
                correct.setLevel(response.getCorrect());
            }

            @Override
            public void onSkipped() {
                // TODO: paint skipped in yellow
                Histogram histogram = selectHistogramFor(kana);
                histogram.registerSkippedResponse(kana);
            }

            @Override
            public void onEnd() {
                completeHistogram();
View Full Code Here


        return histogramPanel;
    }

    private Histogram addHistogramTab(List<Kana> kana, Syllabary syllabary) {
        Histogram histogram = new Histogram(kana);
        JPanel histogramPanel = buildHistogramPanel(histogram);
        JPanel container = new JPanel(new FlowLayout());
        container.setBackground(Color.BLACK);
        container.add(histogramPanel);
        tabbedPane.addTab(Localizer.localize(syllabary, "i18n.ui"), container);
View Full Code Here

TOP

Related Classes of kanakata.analytics.Histogram

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.