Package kg.apc.charting.rows

Examples of kg.apc.charting.rows.GraphRowAverages


     */
    @Test
    public void testAddRow()
    {
        System.out.println("addRow");
        AbstractGraphRow row = new GraphRowAverages();
        ChartRowsTable instance = new ChartRowsTable(new JRowsSelectorPanel(new GraphPanel()));
        instance.addRow(row);
    }
View Full Code Here


        now.set(Calendar.HOUR_OF_DAY, 10);
        now.set(Calendar.MINUTE, 30);
        now.set(Calendar.SECOND, 0);
        now.set(Calendar.MILLISECOND, 500);

        GraphRowAverages row1 = new GraphRowAverages();
        GraphRowAverages row2 = new GraphRowAverages();
        GraphRowAverages row3 = new GraphRowAverages();

        testModel.put("row1", row1);
        testModel.put("row2", row2);
        testModel.put("row3", row3);

        row1.add(now.getTimeInMillis(), 10);
        row2.add(now.getTimeInMillis(), 20);

        now.set(Calendar.SECOND, 10);

        row1.add(now.getTimeInMillis(), 20);
        row2.add(now.getTimeInMillis(), 30);

        now.set(Calendar.SECOND, 25);

        row3.add(now.getTimeInMillis(), 50);

        return testModel;
    }
View Full Code Here

        instance.getChartSettings().setDrawCurrentX(true);
        instance.getChartSettings().setExpendRows(true);

        final ConcurrentSkipListMap<String, AbstractGraphRow> rows = new ConcurrentSkipListMap<String, AbstractGraphRow>();
        instance.setRows(rows);
        final GraphRowAverages row1 = new GraphRowAverages();
        row1.setDrawThickLines(true);
        row1.setDrawLine(true);
        row1.setDrawBar(true);
        row1.setDrawValueLabel(true);
        row1.setMarkerSize(AbstractGraphRow.MARKER_SIZE_BIG);
        rows.put("test 1", row1);
        row1.add(System.currentTimeMillis(), 20);

        instance.paintComponent(g);

        row1.add(System.currentTimeMillis(), 540);
        instance.setxAxisLabelRenderer(new DateTimeRenderer("HH:mm:ss"));
        instance.paintComponent(g);

        row1.add(System.currentTimeMillis(), 8530);
        instance.paintComponent(g);
    }
View Full Code Here

    public void testIsModelContainsRow() {
        System.out.println("isModelContainsRow");

        ConcurrentSkipListMap<String, AbstractGraphRow> testModel = new ConcurrentSkipListMap<String, AbstractGraphRow>();

        AbstractGraphRow rowIncluded = new GraphRowAverages();
        rowIncluded.setLabel("rowIncluded");
        AbstractGraphRow rowExcluded = new GraphRowAverages();
        rowExcluded.setLabel("rowExcluded");

        testModel.put("rowIncluded", rowIncluded);

        GraphPanelChart instance = new GraphPanelChart();
        instance.setRows(testModel);
View Full Code Here

TOP

Related Classes of kg.apc.charting.rows.GraphRowAverages

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.