Package com.salas.bb.utils.uif.charts

Examples of com.salas.bb.utils.uif.charts.LineChartConfig


        builder.append(UifUtilities.boldFont(new JLabel(Strings.message("report.activity"))), 1,
            CellConstraints.CENTER, CellConstraints.DEFAULT);
        builder.append(UifUtilities.boldFont(new JLabel(Strings.message("report.stats"))), 1,
            CellConstraints.CENTER, CellConstraints.DEFAULT);

        LineChartConfig config = new SparklineConfig();
        config.setValueXStep(2);

        // Output data
        if (stats != null)
        {
            int i = 0;
View Full Code Here


        String[] hours = new String[Constants.HOURS_IN_DAY];
        System.arraycopy(Constants.HOUR_NAMES, 0, hours, 0, hours.length);
        hours[0] = Strings.message("report.midnight");
        hours[12] = Strings.message("report.noon");

        LineChartConfig config = new LineChartConfig();
        config.setIndexLabelStep(4);
        LineChartData dataByHour = new LineChartData(readByHourTotal, hours);
        LineChart chartByHour = new LineChart(dataByHour, config);

        LineChartData dataByHourReset = new LineChartData(readByHourReset, hours);
        LineChart chartByHourReset = new LineChart(dataByHourReset, config);

        // Initialize the panel itself
        setBackground(config.getBackgroundColor());

        // Build the layout
        BBFormBuilder builder = new BBFormBuilder("p:grow", this);
        builder.setDefaultDialogBorder();
View Full Code Here

        // Initialize data by day
        String[] days = new String[7];
        DateFormatSymbols dfs = new DateFormatSymbols();
        for (int i = 0; i < 7; i++) days[i] = dfs.getWeekdays()[Calendar.SUNDAY + i];

        LineChartConfig config = new LineChartConfig();
        LineChartData dataByDay = new LineChartData(readByDayTotal, days);
        LineChart chartByDay = new LineChart(dataByDay, config);

        LineChartData dataByDayReset = new LineChartData(readByDayReset, days);
        LineChart chartByDayReset = new LineChart(dataByDayReset, config);

        // Initialize the panel itself
        setBackground(config.getBackgroundColor());

        // Build the layout
        BBFormBuilder builder = new BBFormBuilder("p:grow", this);
        builder.setDefaultDialogBorder();
View Full Code Here

TOP

Related Classes of com.salas.bb.utils.uif.charts.LineChartConfig

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.