Package kg.apc.charting

Examples of kg.apc.charting.AbstractGraphRow


     * Test of addRow method, of class GraphPanel.
     */
    @Test
    public void testAddRow() {
        System.out.println("addRow");
        AbstractGraphRow row = new GraphRowOverallAverages();
        instance.addRow(row);
    }
View Full Code Here


     */
    @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

    */
   @Test
   public void testAddRow2()
   {
      System.out.println("addRow");
      AbstractGraphRow row = new GraphRowOverallAverages();
      ChartRowsTable instance = new ChartRowsTable(null);
      instance.addRow(row);
   }
View Full Code Here

       graphPanel.getGraphObject().getChartSettings().enableDrawCurrentX();
    }
  
    private void addCount(String tgName, int nbThread, long time)
    {
        AbstractGraphRow row = state.get(tgName);
        if (row == null)
        {
            row = getNewRow(state, AbstractGraphRow.ROW_AVERAGES, tgName, AbstractGraphRow.MARKER_SIZE_NONE, false, false, false, false, Color.BLACK, false);
            state.put(tgName, row);
        }
        row.add(time - time%PRECISION_MS, nbThread);
    }
View Full Code Here

    }

    private void addThreadGroupRecord(String threadGroupName, long time,
            long numThreads) {
        String labelAgg = "Overall Response Times";
        AbstractGraphRow row = model.get(threadGroupName);
        AbstractGraphRow rowAgg = modelAggregate.get(labelAgg);
        if (row == null) {
            row = getNewRow(model, AbstractGraphRow.ROW_AVERAGES, threadGroupName, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, true);
        }
        if (rowAgg == null) {
            rowAgg = getNewRow(modelAggregate, AbstractGraphRow.ROW_AVERAGES, labelAgg, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, Color.RED, true);
        }

        row.add(time, numThreads);
        rowAgg.add(time, numThreads);
    }
View Full Code Here

        setGranulation(1000);
        graphPanel.getGraphObject().setYAxisLabel("Bytes /sec");
    }

    private void addBytes(String threadGroupName, long time, int value) {
        AbstractGraphRow row = model.get(threadGroupName);

        if (row == null) {
            row = getNewRow(model, AbstractGraphRow.ROW_SUM_VALUES, threadGroupName, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, true);
        }

        //fix to have values/sec in all cases
        if (getGranulation() > 0) {
            row.add(time, value * 1000.0d / getGranulation());
        }
    }
View Full Code Here

    public void updateGui() {
        Iterator<String[]> iter = compositeRowsSelectorPanel.getItems();
        HashSet<String> validRows = new HashSet<String>();
        while (iter.hasNext()) {
            String[] item = iter.next();
            AbstractGraphRow row = compositeModel.getRow(item[0], item[1]);
            if (row != null) {
                String rowName = item[0] + " > " + item[1];
                validRows.add(rowName);
                if (!model.containsKey(rowName)) {
                    model.put(rowName, row);

                    // handle relative start times for JTL reload
                    if (relativeStartTime == 0 || relativeStartTime > row.getFirstTime()) {
                        relativeStartTime = row.getFirstTime();
                        handleRelativeStartTime();
                    }
                }
            }
        }
View Full Code Here

            addErrorMessage(res.getResponseMessage(), res.getStartTime());
        }
    }

    private void addJmxMonRecord(String rowName, long time, double value) {
        AbstractGraphRow row = model.get(rowName);
        if (row == null) {
            row = getNewRow(model, AbstractGraphRow.ROW_AVERAGES, rowName,
                    AbstractGraphRow.MARKER_SIZE_NONE, false, false, false, true, true);
        }
        row.add(time, value);
    }
View Full Code Here

        setGranulation(1000);
        graphPanel.getGraphObject().setYAxisLabel("Number of hits /sec");
    }

    private void addHit(String threadGroupName, long time, int count) {
        AbstractGraphRow row = model.get(threadGroupName);

        if (row == null) {
            row = getNewRow(model, AbstractGraphRow.ROW_SUM_VALUES, threadGroupName, AbstractGraphRow.MARKER_SIZE_SMALL, false, false, false, true, true);
        }

        //fix to have trans/sec values in all cases
        if (getGranulation() > 0) {
            row.add(time, count * 1000.0d / getGranulation());
        }
    }
View Full Code Here

                chartsUpdated = true;
                DefaultMutableTreeNode node1 = new DefaultMutableTreeNode(chartName, true);
                root1.add(node1);
                Iterator<AbstractGraphRow> rowsIter = compositeModel.getRowsIterator(chartName);
                while (rowsIter.hasNext()) {
                    AbstractGraphRow row = rowsIter.next();
                    node1.add(new DefaultMutableTreeNode(row.getLabel(), false));
                }
            } else {
                Iterator<AbstractGraphRow> rowsIter = compositeModel.getRowsIterator(chartName);
                DefaultMutableTreeNode chartNode1 = getNode(chartName, root1);
View Full Code Here

TOP

Related Classes of kg.apc.charting.AbstractGraphRow

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.