Package kg.apc.charting.rows

Examples of kg.apc.charting.rows.GraphRowAverages


        String label = res.getSampleLabel();
        String averageLabel = "Average " + res.getSampleLabel();
        String aggLabel = "Overall Response Times";
        String avgAggLabel = "Average " + aggLabel;
        GraphRowAverages row = (GraphRowAverages) model.get(label);
        GraphRowOverallAverages avgRow = (GraphRowOverallAverages) model.get(averageLabel);
        GraphRowAverages rowAgg = (GraphRowAverages) modelAggregate.get(aggLabel);
        GraphRowOverallAverages avgRowAgg = (GraphRowOverallAverages) modelAggregate.get(avgAggLabel);

        if (row == null || avgRow == null) {
            row = (GraphRowAverages) getNewRow(model, AbstractGraphRow.ROW_AVERAGES, label, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, false);
            avgRow = (GraphRowOverallAverages) getNewRow(model, AbstractGraphRow.ROW_OVERALL_AVERAGES, averageLabel, AbstractGraphRow.MARKER_SIZE_BIG, false, true, false, false, row.getColor(), false);
        }

        if (rowAgg == null || avgRowAgg == null) {
            rowAgg = (GraphRowAverages) getNewRow(modelAggregate, AbstractGraphRow.ROW_AVERAGES, aggLabel, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, Color.RED, false);
            avgRowAgg = (GraphRowOverallAverages) getNewRow(modelAggregate, AbstractGraphRow.ROW_OVERALL_AVERAGES, avgAggLabel, AbstractGraphRow.MARKER_SIZE_BIG, false, true, false, false, Color.RED, false);
        }

        int threadsCount = getCurrentThreadCount(res);

        row.add(threadsCount, res.getTime());
        avgRow.add(threadsCount, res.getTime());
        rowAgg.add(threadsCount, res.getTime());
        avgRowAgg.add(threadsCount, res.getTime());

        graphPanel.getGraphObject().setCurrentX(res.getAllThreads());
        updateGui(null);
    }
View Full Code Here


        super.add(res);

        String label = res.getSampleLabel();
        String averageLabel = "Average " + res.getSampleLabel();
        GraphRowAverages row = (GraphRowAverages) model.get(label);
        GraphRowOverallAverages avgRow = (GraphRowOverallAverages) model.get(averageLabel);

        if(row == null || avgRow == null)
        {
            row = (GraphRowAverages) getNewRow(model, AbstractGraphRow.ROW_AVERAGES, label, AbstractGraphRow.MARKER_SIZE_SMALL , false, false, false, true, false);
            avgRow = (GraphRowOverallAverages) getNewRow(model, AbstractGraphRow.ROW_OVERALL_AVERAGES, averageLabel, AbstractGraphRow.MARKER_SIZE_BIG , false, true, false, false, row.getColor(), false);
        }

        int allThreads = getCurrentThreadCount(res);
        double throughput = (double) allThreads * 1000.0d / time;
        row.add(allThreads, throughput);
        avgRow.add(allThreads, throughput);
        graphPanel.getGraphObject().setCurrentX(allThreads);
        updateGui(null);
    }
View Full Code Here

     */
    @Test
    public void testAddRow() {
        System.out.println("addRow");
        String vizualizerName = "Test";
        AbstractGraphRow row = new GraphRowAverages();
        CompositeModel instance = new CompositeModel();
        instance.setNotifier(notifier);
        instance.addRow(vizualizerName, row);
    }
View Full Code Here

        CompositeModel instance = new CompositeModel();
        instance.setNotifier(notifier);
        AbstractGraphRow result = instance.getRow(testName, rowName);
        assertNull(result);

        instance.addRow(rowName, new GraphRowAverages());
        result = instance.getRow(testName, rowName);
        assertNotNull(result);
    }
View Full Code Here

    *
    */
   @Before
   public void setUp()
   {
      instance = new GraphRowAverages();
      instance.setDrawLine(true);
      instance.setMarkerSize(AbstractGraphRow.MARKER_SIZE_BIG);
   }
View Full Code Here

   public static void tearDownClass() throws Exception {
   }

    @Before
    public void setUp() {
       testRow =  new GraphRowAverages();
       long now = System.currentTimeMillis();
       testRow.add(now, 1);
       testRow.add(now+5000, 20);
       testRow.add(now+10000, 50);
View Full Code Here

   public static void tearDownClass() throws Exception {
   }

   @Before
   public void setUp() {
      testRow = new GraphRowAverages();
      testRow.add(1000, 100);
      testRow.add(1300, 70);
      testRow.add(1500, 90);

      testRow.setMarkerSize(3);
View Full Code Here

   public static void tearDownClass() throws Exception {
   }

    @Before
    public void setUp() {
       testRow =  new GraphRowAverages();
       long now = System.currentTimeMillis();
       testRow.add(now, 1);
       testRow.add(now+5000, 20);
       testRow.add(now+10000, 50);
View Full Code Here

    public abstract int size();

    public static AbstractGraphRow instantiateNewRow(int rowType) {
        switch (rowType) {
            case AbstractGraphRow.ROW_AVERAGES:
                return new GraphRowAverages();
            case AbstractGraphRow.ROW_EXACT_VALUES:
                return new GraphRowExactValues();
            case AbstractGraphRow.ROW_OVERALL_AVERAGES:
                return new GraphRowOverallAverages();
            case AbstractGraphRow.ROW_PERCENTILES:
View Full Code Here

   public static void tearDownClass() throws Exception {
   }

    @Before
    public void setUp() {
       testRow =  new GraphRowAverages();
       long now = System.currentTimeMillis();
       testRow.add(now, 1);
       testRow.add(now+5000, 20);
       testRow.add(now+10000, 50);
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.