Search in sources :

Example 1 with GraphPanelChart

use of kg.apc.charting.GraphPanelChart in project jmeter-plugins by undera.

the class GraphPanel method addGraphTab.

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");
}
Also used : ImageIcon(javax.swing.ImageIcon) GraphPanelChart(kg.apc.charting.GraphPanelChart)

Example 2 with GraphPanelChart

use of kg.apc.charting.GraphPanelChart in project jmeter-plugins by undera.

the class SteppingThreadGroupGui method init.

protected final void init() {
    JMeterPluginsUtils.addHelpLinkToPanel(this, WIKIPAGE);
    JPanel containerPanel = new JPanel(new BorderLayout());
    containerPanel.add(createParamsPanel(), BorderLayout.NORTH);
    chart = new GraphPanelChart(false, true);
    model = new ConcurrentHashMap<>();
    chart.setRows(model);
    chart.getChartSettings().setDrawFinalZeroingLines(true);
    chart.setxAxisLabel("Elapsed time");
    chart.setYAxisLabel("Number of active threads");
    chart.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
    containerPanel.add(GuiBuilderHelper.getComponentWithMargin(chart, 2, 2, 0, 2), BorderLayout.CENTER);
    add(containerPanel, BorderLayout.CENTER);
    // this magic LoopPanel provides functionality for thread loops
    createControllerPanel();
}
Also used : GraphPanelChart(kg.apc.charting.GraphPanelChart)

Example 3 with GraphPanelChart

use of kg.apc.charting.GraphPanelChart in project jmeter-plugins by undera.

the class UltimateThreadGroupGui method createChart.

private Component createChart() {
    chart = new GraphPanelChart(false, true);
    model = new ConcurrentHashMap<>();
    chart.setRows(model);
    chart.getChartSettings().setDrawFinalZeroingLines(true);
    chart.setxAxisLabel("Elapsed time");
    chart.setYAxisLabel("Number of active threads");
    chart.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
    return chart;
}
Also used : GraphPanelChart(kg.apc.charting.GraphPanelChart)

Example 4 with GraphPanelChart

use of kg.apc.charting.GraphPanelChart in project jmeter-plugins by undera.

the class VariableThroughputTimerGui method createChart.

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 requests /sec");
    chart.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
    return chart;
}
Also used : GraphPanelChart(kg.apc.charting.GraphPanelChart) AbstractGraphRow(kg.apc.charting.AbstractGraphRow)

Example 5 with GraphPanelChart

use of kg.apc.charting.GraphPanelChart in project jmeter-plugins by undera.

the class AbstractGraphPanelVisualizerTest method testGetGraphPanelChart.

@Test
public void testGetGraphPanelChart() {
    System.out.println("getGraphPanelChart");
    AbstractGraphPanelVisualizer instance = new AbstractGraphPanelVisualizerImpl();
    GraphPanelChart result = instance.getGraphPanelChart();
    assertNotNull(result);
}
Also used : GraphPanelChart(kg.apc.charting.GraphPanelChart)

Aggregations

GraphPanelChart (kg.apc.charting.GraphPanelChart)10 Test (org.junit.Test)4 ImageIcon (javax.swing.ImageIcon)1 AbstractGraphRow (kg.apc.charting.AbstractGraphRow)1