Package kg.apc.charting

Examples of kg.apc.charting.GraphPanelChart


            throw new UnsupportedOperationException("Not supported yet.");
        }

        public GraphPanelChart getGraphPanelChart()
        {
            return new GraphPanelChart();
        }
View Full Code Here


        loopPanel.configure(looper);
        return loopPanel;
    }

    private Component createChart() {
        chart = new GraphPanelChart(false, true);
        model = new ConcurrentHashMap<String, AbstractGraphRow>();
        chart.setRows(model);
        chart.getChartSettings().setDrawFinalZeroingLines(true);
        chart.setxAxisLabel("Elapsed time");
        chart.setYAxisLabel("Number of active threads");
View Full Code Here

     */
    @Test
    public void testGetGraphPanelChart() {
        System.out.println("getGraphPanelChart");
        SynthesisReportGui instance = new SynthesisReportGui();
        GraphPanelChart result = instance.getGraphPanelChart();
        assertNotNull(result);
    }
View Full Code Here

     */
    @Test
    public void testGetGraphPanelChart() {
        System.out.println("getGraphPanelChart");
        AggregateReportGui instance = new AggregateReportGui();
        GraphPanelChart result = instance.getGraphPanelChart();
        assertNotNull(result);
    }
View Full Code Here

   @Test
   public void testGetGraphPanelChart()
   {
      System.out.println("getGraphPanelChart");
      SettingsInterface instance = new SettingsInterfaceImpl();
      GraphPanelChart result = instance.getGraphPanelChart();
      assertNotNull(result);
   }
View Full Code Here

      {
      }

      public GraphPanelChart getGraphPanelChart()
      {
         return new GraphPanelChart();
      }
View Full Code Here

     * Test of getGraphObject method, of class GraphPanel.
     */
    @Test
    public void testGetGraphObject() {
        System.out.println("getGraphObject");
        GraphPanelChart result = instance.getGraphObject();
        assertEquals(GraphPanelChart.class.getName(), result.getClass().getName());
    }
View Full Code Here

    }

    private void addGraphTab()
    {
        ImageIcon graphIcon = createImageIcon("/kg/apc/jmeter/img/graph.png");
        graphPanelObject = new GraphPanelChart(GuiPackage.getInstance() != null);
        graphPanelObject.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
        graphTab = new JGraphPanel();
        graphTab.add(graphPanelObject, BorderLayout.CENTER);
        addTab("Chart", graphIcon, graphTab, "View chart");
    }
View Full Code Here

            throw new RuntimeException(ex);
        }
    }

    private void setOptions(AbstractGraphPanelVisualizer gui) {
        GraphPanelChart graph = gui.getGraphPanelChart();

        if (aggregate >= 0) {
            gui.switchModel(aggregate > 0);
        }
        if (granulation >= 0) {
            gui.setGranulation(granulation);
        }
        if (relativeTimes >= 0) {
            graph.setUseRelativeTime(relativeTimes > 0);
        }
        if (lineWeight >= 0) {
            graph.getChartSettings().setLineWidth(lineWeight);
        }


        if (gradient >= 0) {
            graph.getChartSettings().setDrawGradient(gradient > 0);
        }
        if (zeroing >= 0) {
            graph.getChartSettings().setDrawFinalZeroingLines(zeroing > 0);
        }
        if (rowsLimit >= 0) {
            graph.getChartSettings().setMaxPointPerRow(rowsLimit);
        }
        if (preventOutliers >= 0) {
            graph.getChartSettings().setPreventXAxisOverScaling(preventOutliers > 0);
        }
        if (lowCounts >= 0) {
            graph.getChartSettings().setHideNonRepValLimit(lowCounts);
        }
        if (forceY >= 0) {
            graph.getChartSettings().setForcedMaxY(forceY);
        }
        if (autoScaleRows >= 0) {
            graph.getChartSettings().setExpendRows(autoScaleRows > 0);
        }
        if (markers >= 0) {
            graph.getChartSettings().setChartMarkers(markers > 0 ? ChartSettings.CHART_MARKERS_YES : ChartSettings.CHART_MARKERS_NO);
        }

    }
View Full Code Here

        JMeterPluginsUtils.addHelpLinkToPanel(this, WIKIPAGE);
        JPanel containerPanel = new JPanel(new BorderLayout());

        containerPanel.add(createParamsPanel(), BorderLayout.NORTH);

        chart = new GraphPanelChart(false, true);
        model = new ConcurrentHashMap<String, AbstractGraphRow>();
        chart.setRows(model);
        chart.getChartSettings().setDrawFinalZeroingLines(true);

        chart.setxAxisLabel("Elapsed time");
View Full Code Here

TOP

Related Classes of kg.apc.charting.GraphPanelChart

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.