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");
}
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();
}
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;
}
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;
}
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);
}
Aggregations