use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class StatGraphVisualizer method init.
/**
* Main visualizer setup.
*/
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
this.setLayout(new BorderLayout());
// MAIN PANEL
JPanel mainPanel = new JPanel();
Border margin = new EmptyBorder(10, 10, 5, 10);
Border margin2 = new EmptyBorder(10, 10, 5, 10);
mainPanel.setBorder(margin);
mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
mainPanel.add(makeTitlePanel());
myJTable = new JTable(model);
myJTable.setRowSorter(new ObjectTableSorter(model).fixLastRow());
JMeterUtils.applyHiDPI(myJTable);
// Fix centering of titles
HeaderAsPropertyRendererWrapper.setupDefaultRenderer(myJTable, getColumnsMsgParameters());
myJTable.setPreferredScrollableViewportSize(new Dimension(500, 70));
RendererUtils.applyRenderers(myJTable, getRenderers());
myScrollPane = new JScrollPane(myJTable);
settingsPane = new VerticalPanel();
settingsPane.setBorder(margin2);
graphPanel = new AxisGraph();
graphPanel.setPreferredSize(new Dimension(defaultWidth, defaultHeight));
settingsPane.add(createGraphActionsPane());
settingsPane.add(createGraphColumnPane());
settingsPane.add(createGraphTitlePane());
settingsPane.add(createGraphDimensionPane());
JPanel axisPane = new JPanel(new BorderLayout());
axisPane.add(createGraphXAxisPane(), BorderLayout.WEST);
axisPane.add(createGraphYAxisPane(), BorderLayout.CENTER);
settingsPane.add(axisPane);
settingsPane.add(createLegendPane());
//$NON-NLS-1$
tabbedGraph.addTab(JMeterUtils.getResString("aggregate_graph_tab_settings"), settingsPane);
//$NON-NLS-1$
tabbedGraph.addTab(JMeterUtils.getResString("aggregate_graph_tab_graph"), graphPanel);
// If clic on the Graph tab, make the graph (without apply interval or filter)
tabbedGraph.addChangeListener(changeEvent -> {
JTabbedPane srcTab = (JTabbedPane) changeEvent.getSource();
int index = srcTab.getSelectedIndex();
if (srcTab.getTitleAt(index).equals(JMeterUtils.getResString("aggregate_graph_tab_graph"))) {
actionMakeGraph();
}
});
spane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
spane.setOneTouchExpandable(true);
spane.setLeftComponent(myScrollPane);
spane.setRightComponent(tabbedGraph);
spane.setResizeWeight(.2);
// see bug jdk 4131528
spane.setBorder(null);
spane.setContinuousLayout(true);
this.add(mainPanel, BorderLayout.NORTH);
this.add(spane, BorderLayout.CENTER);
new Timer(REFRESH_PERIOD, e -> {
synchronized (lock) {
while (!newRows.isEmpty()) {
model.insertRow(newRows.pop(), model.getRowCount() - 1);
}
}
model.fireTableDataChanged();
}).start();
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class FtpTestSamplerGui method init.
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new BorderLayout(0, 5));
setBorder(makeBorder());
add(makeTitlePanel(), BorderLayout.NORTH);
VerticalPanel mainPanel = new VerticalPanel();
ftpDefaultPanel = new FtpConfigGui(false);
mainPanel.add(ftpDefaultPanel);
loginPanel = new LoginConfigGui(false);
// $NON-NLS-1$
loginPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("login_config")));
mainPanel.add(loginPanel);
add(mainPanel, BorderLayout.CENTER);
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class HttpDefaultsGui method init.
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new BorderLayout(0, 5));
setBorder(makeBorder());
// URL CONFIG
urlConfigGui = new UrlConfigGui(false, true, false);
// HTTP request options
JPanel httpOptions = new HorizontalPanel();
httpOptions.add(getImplementationPanel());
httpOptions.add(getTimeOutPanel());
// AdvancedPanel (embedded resources, source address and optional tasks)
JPanel advancedPanel = new VerticalPanel();
advancedPanel.add(httpOptions);
advancedPanel.add(createEmbeddedRsrcPanel());
advancedPanel.add(createSourceAddrPanel());
advancedPanel.add(getProxyServerPanel());
advancedPanel.add(createOptionalTasksPanel());
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.add(JMeterUtils.getResString("web_testing_basic"), urlConfigGui);
tabbedPane.add(JMeterUtils.getResString("web_testing_advanced"), advancedPanel);
JPanel emptyPanel = new JPanel();
emptyPanel.setMaximumSize(new Dimension());
add(makeTitlePanel(), BorderLayout.NORTH);
add(tabbedPane, BorderLayout.CENTER);
add(emptyPanel, BorderLayout.SOUTH);
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class LdapExtConfigGui method createSCPanel.
/***************************************************************************
* This will create the Search controls panel in the LdapConfigGui
**************************************************************************/
private JPanel createSCPanel() {
VerticalPanel scPanel = new VerticalPanel();
scPanel.add(scope);
scPanel.add(createLabelPanel("countlim", countlim));
scPanel.add(createLabelPanel("timelim", timelim));
scPanel.add(createLabelPanel("attrs", attribs));
scPanel.add(retobj);
scPanel.add(deref);
scPanel.add(parseflag);
return scPanel;
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class LdapExtConfigGui method createModdnPanel.
/***************************************************************************
* This will create the Moddn panel in the LdapConfigGui
**************************************************************************/
private JPanel createModdnPanel() {
VerticalPanel modPanel = new VerticalPanel();
modPanel.add(createLabelPanel("modddn", modddn));
modPanel.add(createLabelPanel("newdn", newdn));
return modPanel;
}
Aggregations