Lines 46-51
Link Here
|
46 |
import javax.swing.JComponent; |
46 |
import javax.swing.JComponent; |
47 |
import javax.swing.JFileChooser; |
47 |
import javax.swing.JFileChooser; |
48 |
import javax.swing.JLabel; |
48 |
import javax.swing.JLabel; |
|
|
49 |
import javax.swing.JOptionPane; |
49 |
import javax.swing.JPanel; |
50 |
import javax.swing.JPanel; |
50 |
import javax.swing.JScrollPane; |
51 |
import javax.swing.JScrollPane; |
51 |
import javax.swing.JSplitPane; |
52 |
import javax.swing.JSplitPane; |
Lines 110-115
Link Here
|
110 |
JMeterUtils.getResString("aggregate_report_total_label"); //$NON-NLS-1$ |
111 |
JMeterUtils.getResString("aggregate_report_total_label"); //$NON-NLS-1$ |
111 |
|
112 |
|
112 |
private final Border MARGIN = new EmptyBorder(0, 5, 0, 5); |
113 |
private final Border MARGIN = new EmptyBorder(0, 5, 0, 5); |
|
|
114 |
|
115 |
private Font FONT_SMALL = new Font("SansSerif", Font.PLAIN, 10); |
113 |
|
116 |
|
114 |
private JTable myJTable; |
117 |
private JTable myJTable; |
115 |
|
118 |
|
Lines 144-152
Link Here
|
144 |
private JButton saveTable = |
147 |
private JButton saveTable = |
145 |
new JButton(JMeterUtils.getResString("aggregate_graph_save_table")); //$NON-NLS-1$ |
148 |
new JButton(JMeterUtils.getResString("aggregate_graph_save_table")); //$NON-NLS-1$ |
146 |
|
149 |
|
147 |
private JButton chooseBarColor = |
|
|
148 |
new JButton(JMeterUtils.getResString("aggregate_graph_choose_bar_color")); //$NON-NLS-1$ |
149 |
|
150 |
private JButton chooseForeColor = |
150 |
private JButton chooseForeColor = |
151 |
new JButton(JMeterUtils.getResString("aggregate_graph_choose_foreground_color")); //$NON-NLS-1$ |
151 |
new JButton(JMeterUtils.getResString("aggregate_graph_choose_foreground_color")); //$NON-NLS-1$ |
152 |
|
152 |
|
Lines 185-194
Link Here
|
185 |
|
185 |
|
186 |
private int defaultHeight = 300; |
186 |
private int defaultHeight = 300; |
187 |
|
187 |
|
188 |
private JLabel currentColor = new JLabel(JMeterUtils.getResString("aggregate_graph_current_colors")); //$NON-NLS-1$ |
|
|
189 |
|
190 |
private JComboBox columnsList = new JComboBox(GRAPH_COLUMNS); |
188 |
private JComboBox columnsList = new JComboBox(GRAPH_COLUMNS); |
191 |
|
189 |
|
|
|
190 |
private List<BarGraph> eltList = new ArrayList<BarGraph>(); |
191 |
|
192 |
private JCheckBox columnSelection = new JCheckBox(JMeterUtils.getResString("aggregate_graph_column_selection"), false); //$NON-NLS-1$ |
192 |
private JCheckBox columnSelection = new JCheckBox(JMeterUtils.getResString("aggregate_graph_column_selection"), false); //$NON-NLS-1$ |
193 |
|
193 |
|
194 |
private JTextField columnMatchLabel = new JTextField(); |
194 |
private JTextField columnMatchLabel = new JTextField(); |
Lines 205-210
Link Here
|
205 |
|
205 |
|
206 |
private JComboBox titleFontStyleList = new JComboBox(StatGraphProperties.getFontStyleMap().keySet().toArray()); |
206 |
private JComboBox titleFontStyleList = new JComboBox(StatGraphProperties.getFontStyleMap().keySet().toArray()); |
207 |
|
207 |
|
|
|
208 |
private JComboBox valueFontNameList = new JComboBox(StatGraphProperties.getFontNameMap().keySet().toArray()); |
209 |
|
210 |
private JComboBox valueFontSizeList = new JComboBox(StatGraphProperties.fontSize); |
211 |
|
212 |
private JComboBox valueFontStyleList = new JComboBox(StatGraphProperties.getFontStyleMap().keySet().toArray()); |
213 |
|
208 |
private JComboBox fontNameList = new JComboBox(StatGraphProperties.getFontNameMap().keySet().toArray()); |
214 |
private JComboBox fontNameList = new JComboBox(StatGraphProperties.getFontNameMap().keySet().toArray()); |
209 |
|
215 |
|
210 |
private JComboBox fontSizeList = new JComboBox(StatGraphProperties.fontSize); |
216 |
private JComboBox fontSizeList = new JComboBox(StatGraphProperties.fontSize); |
Lines 216-225
Link Here
|
216 |
private JCheckBox drawOutlinesBar = new JCheckBox(JMeterUtils.getResString("aggregate_graph_draw_outlines"), true); // Default checked // $NON-NLS-1$ |
222 |
private JCheckBox drawOutlinesBar = new JCheckBox(JMeterUtils.getResString("aggregate_graph_draw_outlines"), true); // Default checked // $NON-NLS-1$ |
217 |
|
223 |
|
218 |
private JCheckBox numberShowGrouping = new JCheckBox(JMeterUtils.getResString("aggregate_graph_number_grouping"), true); // Default checked // $NON-NLS-1$ |
224 |
private JCheckBox numberShowGrouping = new JCheckBox(JMeterUtils.getResString("aggregate_graph_number_grouping"), true); // Default checked // $NON-NLS-1$ |
|
|
225 |
|
226 |
private JCheckBox valueLabelsVertical = new JCheckBox(JMeterUtils.getResString("aggregate_graph_value_labels_vertical"), true); // Default checked // $NON-NLS-1$ |
219 |
|
227 |
|
220 |
private Color colorBarGraph = Color.YELLOW; |
228 |
private Color colorBarGraph = Color.YELLOW; |
221 |
|
229 |
|
222 |
private Color colorForeGraph = Color.BLACK; |
230 |
private Color colorForeGraph = Color.BLACK; |
|
|
231 |
|
232 |
private int nbColToGraph = 1; |
223 |
|
233 |
|
224 |
public StatGraphVisualizer() { |
234 |
public StatGraphVisualizer() { |
225 |
super(); |
235 |
super(); |
Lines 240-245
Link Here
|
240 |
new Functor[] { null, null, null, null, null, null, null, null, null, null }, |
250 |
new Functor[] { null, null, null, null, null, null, null, null, null, null }, |
241 |
new Class[] { String.class, Long.class, Long.class, Long.class, Long.class, Long.class, |
251 |
new Class[] { String.class, Long.class, Long.class, Long.class, Long.class, Long.class, |
242 |
Long.class, String.class, String.class, String.class }); |
252 |
Long.class, String.class, String.class, String.class }); |
|
|
253 |
eltList.add(new BarGraph("average", true, new Color(202, 0, 0))); |
254 |
eltList.add(new BarGraph("aggregate_report_median", false, new Color(49, 49, 181))); |
255 |
eltList.add(new BarGraph("aggregate_report_90%_line", false, new Color(42, 121, 42))); |
256 |
eltList.add(new BarGraph("aggregate_report_min", false, Color.LIGHT_GRAY)); |
257 |
eltList.add(new BarGraph("aggregate_report_max", false, Color.DARK_GRAY)); |
243 |
clearData(); |
258 |
clearData(); |
244 |
init(); |
259 |
init(); |
245 |
} |
260 |
} |
Lines 357-374
Link Here
|
357 |
} |
372 |
} |
358 |
|
373 |
|
359 |
public void makeGraph() { |
374 |
public void makeGraph() { |
|
|
375 |
nbColToGraph = getNbColumns(); |
360 |
Dimension size = graphPanel.getSize(); |
376 |
Dimension size = graphPanel.getSize(); |
361 |
String wstr = graphWidth.getText(); |
|
|
362 |
String hstr = graphHeight.getText(); |
363 |
String lstr = maxLengthXAxisLabel.getText(); |
377 |
String lstr = maxLengthXAxisLabel.getText(); |
|
|
378 |
// canvas size |
364 |
int width = (int) size.getWidth(); |
379 |
int width = (int) size.getWidth(); |
365 |
if (wstr.length() != 0) { |
|
|
366 |
width = Integer.parseInt(wstr); |
367 |
} |
368 |
int height = (int) size.getHeight(); |
380 |
int height = (int) size.getHeight(); |
369 |
if (hstr.length() != 0) { |
381 |
if (!dynamicGraphSize.isSelected()) { |
370 |
height = Integer.parseInt(hstr); |
382 |
String wstr = graphWidth.getText(); |
|
|
383 |
String hstr = graphHeight.getText(); |
384 |
if (wstr.length() != 0) { |
385 |
width = Integer.parseInt(wstr); |
386 |
} |
387 |
if (hstr.length() != 0) { |
388 |
height = Integer.parseInt(hstr); |
389 |
} |
371 |
} |
390 |
} |
|
|
391 |
|
372 |
if (lstr.length() == 0) { |
392 |
if (lstr.length() == 0) { |
373 |
lstr = "20";//$NON-NLS-1$ |
393 |
lstr = "20";//$NON-NLS-1$ |
374 |
} |
394 |
} |
Lines 384-393
Link Here
|
384 |
graphPanel.setXAxisTitle((String) columnsList.getSelectedItem()); |
404 |
graphPanel.setXAxisTitle((String) columnsList.getSelectedItem()); |
385 |
graphPanel.setYAxisLabels(this.yAxisLabel); |
405 |
graphPanel.setYAxisLabels(this.yAxisLabel); |
386 |
graphPanel.setYAxisTitle(this.yAxisTitle); |
406 |
graphPanel.setYAxisTitle(this.yAxisTitle); |
387 |
graphPanel.setColor(colorBarGraph); |
407 |
graphPanel.setLegendLabels(getLegendLabels()); |
|
|
408 |
graphPanel.setColor(getBackColors()); |
388 |
graphPanel.setForeColor(colorForeGraph); |
409 |
graphPanel.setForeColor(colorForeGraph); |
389 |
graphPanel.setOutlinesBarFlag(drawOutlinesBar.isSelected()); |
410 |
graphPanel.setOutlinesBarFlag(drawOutlinesBar.isSelected()); |
390 |
graphPanel.setShowGrouping(numberShowGrouping.isSelected()); |
411 |
graphPanel.setShowGrouping(numberShowGrouping.isSelected()); |
|
|
412 |
graphPanel.setValueOrientation(valueLabelsVertical.isSelected()); |
391 |
graphPanel.setLegendPlacement(StatGraphProperties.getPlacementNameMap() |
413 |
graphPanel.setLegendPlacement(StatGraphProperties.getPlacementNameMap() |
392 |
.get(legendPlacementList.getSelectedItem()).intValue()); |
414 |
.get(legendPlacementList.getSelectedItem()).intValue()); |
393 |
|
415 |
|
Lines 397-402
Link Here
|
397 |
graphPanel.setLegendFont(new Font(StatGraphProperties.getFontNameMap().get(fontNameList.getSelectedItem()), |
419 |
graphPanel.setLegendFont(new Font(StatGraphProperties.getFontNameMap().get(fontNameList.getSelectedItem()), |
398 |
StatGraphProperties.getFontStyleMap().get(fontStyleList.getSelectedItem()).intValue(), |
420 |
StatGraphProperties.getFontStyleMap().get(fontStyleList.getSelectedItem()).intValue(), |
399 |
Integer.parseInt((String) fontSizeList.getSelectedItem()))); |
421 |
Integer.parseInt((String) fontSizeList.getSelectedItem()))); |
|
|
422 |
graphPanel.setValueFont(new Font(StatGraphProperties.getFontNameMap().get(valueFontNameList.getSelectedItem()), |
423 |
StatGraphProperties.getFontStyleMap().get(valueFontStyleList.getSelectedItem()).intValue(), |
424 |
Integer.parseInt((String) valueFontSizeList.getSelectedItem()))); |
400 |
|
425 |
|
401 |
graphPanel.setHeight(height); |
426 |
graphPanel.setHeight(height); |
402 |
graphPanel.setWidth(width); |
427 |
graphPanel.setWidth(width); |
Lines 406-419
Link Here
|
406 |
public double[][] getData() { |
431 |
public double[][] getData() { |
407 |
if (model.getRowCount() > 1) { |
432 |
if (model.getRowCount() > 1) { |
408 |
int count = model.getRowCount() -1; |
433 |
int count = model.getRowCount() -1; |
409 |
int col = model.findColumn((String) columnsList.getSelectedItem()); |
434 |
|
410 |
double[][] data = new double[1][count]; |
435 |
int size = nbColToGraph; |
411 |
for (int idx=0; idx < count; idx++) { |
436 |
double[][] data = new double[size][count]; |
412 |
data[0][idx] = ((Number)model.getValueAt(idx,col)).doubleValue(); |
437 |
int s = 0; |
|
|
438 |
int cpt = 0; |
439 |
for (BarGraph bar : eltList) { |
440 |
if (bar.getChkBox().isSelected()) { |
441 |
int col = model.findColumn((String) columnsList.getItemAt(cpt)); |
442 |
for (int idx=0; idx < count; idx++) { |
443 |
data[s][idx] = ((Number)model.getValueAt(idx,col)).doubleValue(); |
444 |
} |
445 |
s++; |
446 |
} |
447 |
cpt++; |
413 |
} |
448 |
} |
414 |
return data; |
449 |
return data; |
415 |
} |
450 |
} |
416 |
return new double[][]{ { 250, 45, 36, 66, 145, 80, 55 } }; |
451 |
return null; |
417 |
} |
452 |
} |
418 |
|
453 |
|
419 |
public String[] getAxisLabels() { |
454 |
public String[] getAxisLabels() { |
Lines 425-433
Link Here
|
425 |
} |
460 |
} |
426 |
return labels; |
461 |
return labels; |
427 |
} |
462 |
} |
428 |
return new String[]{ "/", "/samples", "/jsp-samples", "/manager", "/manager/status", "/hello", "/world" }; |
463 |
return null; |
|
|
464 |
} |
465 |
|
466 |
private String[] getLegendLabels() { |
467 |
String[] legends = new String[nbColToGraph]; |
468 |
int i = 0; |
469 |
for (BarGraph bar : eltList) { |
470 |
if (bar.getChkBox().isSelected()) { |
471 |
legends[i] = bar.getLabel(); |
472 |
i++; |
473 |
} |
474 |
} |
475 |
return legends; |
476 |
} |
477 |
|
478 |
private Color[] getBackColors() { |
479 |
Color[] backColors = new Color[nbColToGraph]; |
480 |
int i = 0; |
481 |
for (BarGraph bar : eltList) { |
482 |
if (bar.getChkBox().isSelected()) { |
483 |
backColors[i] = bar.getBackColor(); |
484 |
i++; |
485 |
} |
486 |
} |
487 |
return backColors; |
429 |
} |
488 |
} |
430 |
|
489 |
|
|
|
490 |
private int getNbColumns() { |
491 |
int i = 0; |
492 |
for (BarGraph bar : eltList) { |
493 |
if (bar.getChkBox().isSelected()) { |
494 |
i++; |
495 |
} |
496 |
} |
497 |
return i; |
498 |
} |
499 |
|
431 |
/** |
500 |
/** |
432 |
* We use this method to get the data, since we are using |
501 |
* We use this method to get the data, since we are using |
433 |
* ObjectTableModel, so the calling getDataVector doesn't |
502 |
* ObjectTableModel, so the calling getDataVector doesn't |
Lines 453-460
Link Here
|
453 |
public void actionPerformed(ActionEvent event) { |
522 |
public void actionPerformed(ActionEvent event) { |
454 |
final Object eventSource = event.getSource(); |
523 |
final Object eventSource = event.getSource(); |
455 |
if (eventSource == displayButton) { |
524 |
if (eventSource == displayButton) { |
456 |
makeGraph(); |
525 |
if (model.getRowCount() > 1) { |
457 |
tabbedGraph.setSelectedIndex(1); |
526 |
makeGraph(); |
|
|
527 |
tabbedGraph.setSelectedIndex(1); |
528 |
} else { |
529 |
JOptionPane.showMessageDialog(null, JMeterUtils |
530 |
.getResString("aggregate_graph_no_values_to_graph"), // $NON-NLS-1$ |
531 |
JMeterUtils.getResString("aggregate_graph_no_values_to_graph"), // $NON-NLS-1$ |
532 |
JOptionPane.WARNING_MESSAGE); |
533 |
} |
458 |
} else if (eventSource == saveGraph) { |
534 |
} else if (eventSource == saveGraph) { |
459 |
saveGraphToFile = true; |
535 |
saveGraphToFile = true; |
460 |
try { |
536 |
try { |
Lines 480-497
Link Here
|
480 |
} finally { |
556 |
} finally { |
481 |
JOrphanUtils.closeQuietly(writer); |
557 |
JOrphanUtils.closeQuietly(writer); |
482 |
} |
558 |
} |
483 |
} else if (eventSource == chooseBarColor) { |
|
|
484 |
colorBarGraph = JColorChooser.showDialog( |
485 |
null, |
486 |
JMeterUtils.getResString("aggregate_graph_choose_color"), //$NON-NLS-1$ |
487 |
colorBarGraph); |
488 |
currentColor.setBackground(colorBarGraph); |
489 |
} else if (eventSource == chooseForeColor) { |
559 |
} else if (eventSource == chooseForeColor) { |
490 |
colorForeGraph = JColorChooser.showDialog( |
560 |
Color color = JColorChooser.showDialog( |
491 |
null, |
561 |
null, |
492 |
JMeterUtils.getResString("aggregate_graph_choose_color"), //$NON-NLS-1$ |
562 |
JMeterUtils.getResString("aggregate_graph_choose_color"), //$NON-NLS-1$ |
493 |
colorBarGraph); |
563 |
colorBarGraph); |
494 |
currentColor.setForeground(colorForeGraph); |
564 |
if (color != null) { |
|
|
565 |
colorForeGraph = color; |
566 |
} |
495 |
} else if (eventSource == syncWithName) { |
567 |
} else if (eventSource == syncWithName) { |
496 |
graphTitle.setText(namePanel.getName()); |
568 |
graphTitle.setText(namePanel.getName()); |
497 |
} else if (eventSource == dynamicGraphSize) { |
569 |
} else if (eventSource == dynamicGraphSize) { |
Lines 521-526
Link Here
|
521 |
FilePanel filePanel = (FilePanel) getFilePanel(); |
593 |
FilePanel filePanel = (FilePanel) getFilePanel(); |
522 |
filePanel.actionPerformed(event); |
594 |
filePanel.actionPerformed(event); |
523 |
} |
595 |
} |
|
|
596 |
} else if (eventSource instanceof JButton) { |
597 |
// Changing color for column |
598 |
JButton btn = ((JButton) eventSource); |
599 |
if (btn.getName() != null) { |
600 |
try { |
601 |
BarGraph bar = eltList.get(Integer.parseInt(btn.getName())); |
602 |
Color color = JColorChooser.showDialog(null, bar.getLabel(), bar.getBackColor()); |
603 |
if (color != null) { |
604 |
bar.setBackColor(color); |
605 |
btn.setBackground(bar.getBackColor()); |
606 |
} |
607 |
} catch (NumberFormatException nfe) { } // nothing to do |
608 |
} |
524 |
} |
609 |
} |
525 |
} |
610 |
} |
526 |
|
611 |
|
Lines 555-598
Link Here
|
555 |
} |
640 |
} |
556 |
|
641 |
|
557 |
private JPanel createGraphColumnPane() { |
642 |
private JPanel createGraphColumnPane() { |
558 |
JPanel barPanel = new JPanel(); |
643 |
JPanel colPanel = new JPanel(); |
559 |
barPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
644 |
colPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0)); |
560 |
|
|
|
561 |
barPanel.add(createLabelCombo(JMeterUtils.getResString("aggregate_graph_column"), //$NON-NLS-1$ |
562 |
columnsList)); |
563 |
|
645 |
|
564 |
currentColor.setBorder(new EmptyBorder(2, 5, 2, 5)); |
646 |
JLabel label = new JLabel(JMeterUtils.getResString("aggregate_graph_columns_to_display")); //$NON-NLS-1$ |
565 |
currentColor.setOpaque(true); |
647 |
colPanel.add(label); |
566 |
currentColor.setBackground(colorBarGraph); |
648 |
for (BarGraph bar : eltList) { |
567 |
|
649 |
colPanel.add(bar.getChkBox()); |
568 |
barPanel.add(Box.createRigidArea(new Dimension(5,0))); |
650 |
colPanel.add(createColorBarButton(bar, eltList.indexOf(bar))); |
569 |
barPanel.add(currentColor); |
651 |
} |
570 |
barPanel.add(Box.createRigidArea(new Dimension(5,0))); |
652 |
colPanel.add(Box.createRigidArea(new Dimension(5,0))); |
571 |
barPanel.add(chooseBarColor); |
653 |
chooseForeColor.setFont(FONT_SMALL); |
572 |
chooseBarColor.addActionListener(this); |
654 |
colPanel.add(chooseForeColor); |
573 |
barPanel.add(Box.createRigidArea(new Dimension(5,0))); |
|
|
574 |
barPanel.add(chooseForeColor); |
575 |
chooseForeColor.addActionListener(this); |
655 |
chooseForeColor.addActionListener(this); |
576 |
|
656 |
|
577 |
barPanel.add(drawOutlinesBar); |
657 |
JPanel optionsPanel = new JPanel(); |
578 |
barPanel.add(numberShowGrouping); |
658 |
optionsPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
659 |
optionsPanel.add(createGraphFontValuePane()); |
660 |
optionsPanel.add(drawOutlinesBar); |
661 |
optionsPanel.add(numberShowGrouping); |
662 |
optionsPanel.add(valueLabelsVertical); |
663 |
|
664 |
JPanel barPane = new JPanel(new BorderLayout()); |
665 |
barPane.add(colPanel, BorderLayout.NORTH); |
666 |
barPane.add(Box.createRigidArea(new Dimension(0,3)), BorderLayout.CENTER); |
667 |
barPane.add(optionsPanel, BorderLayout.SOUTH); |
579 |
|
668 |
|
580 |
JPanel columnPane = new JPanel(new BorderLayout()); |
669 |
JPanel columnPane = new JPanel(new BorderLayout()); |
581 |
columnPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), |
670 |
columnPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), |
582 |
JMeterUtils.getResString("aggregate_graph_column_settings"))); // $NON-NLS-1$ |
671 |
JMeterUtils.getResString("aggregate_graph_column_settings"))); // $NON-NLS-1$ |
583 |
columnPane.add(barPanel, BorderLayout.NORTH); |
672 |
columnPane.add(barPane, BorderLayout.NORTH); |
584 |
columnPane.add(Box.createRigidArea(new Dimension(5,0)), BorderLayout.CENTER); |
673 |
columnPane.add(Box.createRigidArea(new Dimension(0,3)), BorderLayout.CENTER); |
585 |
columnPane.add(createGraphSelectionSubPane(), BorderLayout.SOUTH); |
674 |
columnPane.add(createGraphSelectionSubPane(), BorderLayout.SOUTH); |
586 |
|
675 |
|
587 |
return columnPane; |
676 |
return columnPane; |
588 |
} |
677 |
} |
589 |
|
678 |
|
|
|
679 |
private JButton createColorBarButton(BarGraph barGraph, int index) { |
680 |
// Button |
681 |
JButton colorBtn = new JButton(); |
682 |
colorBtn.setName(String.valueOf(index)); |
683 |
colorBtn.setFont(FONT_SMALL); |
684 |
colorBtn.addActionListener(this); |
685 |
colorBtn.setBackground(barGraph.getBackColor()); |
686 |
return colorBtn; |
687 |
} |
688 |
|
590 |
private JPanel createGraphSelectionSubPane() { |
689 |
private JPanel createGraphSelectionSubPane() { |
591 |
Font font = new Font("SansSerif", Font.PLAIN, 10); |
690 |
Font font = new Font("SansSerif", Font.PLAIN, 10); |
592 |
// Search field |
691 |
// Search field |
593 |
JPanel searchPanel = new JPanel(); |
692 |
JPanel searchPanel = new JPanel(); |
594 |
searchPanel.setLayout(new BoxLayout(searchPanel, BoxLayout.X_AXIS)); |
693 |
searchPanel.setLayout(new BoxLayout(searchPanel, BoxLayout.X_AXIS)); |
595 |
searchPanel.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3)); |
694 |
searchPanel.setBorder(BorderFactory.createEmptyBorder(3, 0, 3, 0)); |
596 |
|
695 |
|
597 |
searchPanel.add(columnSelection); |
696 |
searchPanel.add(columnSelection); |
598 |
columnMatchLabel.setEnabled(false); |
697 |
columnMatchLabel.setEnabled(false); |
Lines 644-649
Link Here
|
644 |
return titlePane; |
743 |
return titlePane; |
645 |
} |
744 |
} |
646 |
|
745 |
|
|
|
746 |
private JPanel createGraphFontValuePane() { |
747 |
JPanel fontValueStylePane = new JPanel(); |
748 |
fontValueStylePane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
749 |
fontValueStylePane.add(createLabelCombo(JMeterUtils.getResString("aggregate_graph_value_font"), //$NON-NLS-1$ |
750 |
valueFontNameList)); |
751 |
valueFontNameList.setSelectedIndex(0); // default: sans serif |
752 |
fontValueStylePane.add(createLabelCombo(JMeterUtils.getResString("aggregate_graph_size"), //$NON-NLS-1$ |
753 |
valueFontSizeList)); |
754 |
valueFontSizeList.setSelectedItem(StatGraphProperties.fontSize[2]); // default: 10 |
755 |
fontValueStylePane.add(createLabelCombo(JMeterUtils.getResString("aggregate_graph_style"), //$NON-NLS-1$ |
756 |
valueFontStyleList)); |
757 |
valueFontStyleList.setSelectedItem(JMeterUtils.getResString("fontstyle.normal")); // default: normal //$NON-NLS-1$ |
758 |
|
759 |
return fontValueStylePane; |
760 |
} |
761 |
|
647 |
private JPanel createGraphDimensionPane() { |
762 |
private JPanel createGraphDimensionPane() { |
648 |
JPanel dimensionPane = new JPanel(); |
763 |
JPanel dimensionPane = new JPanel(); |
649 |
dimensionPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
764 |
dimensionPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
Lines 704-710
Link Here
|
704 |
|
819 |
|
705 |
legendPanel.add(createLabelCombo(JMeterUtils.getResString("aggregate_graph_legend_placement"), //$NON-NLS-1$ |
820 |
legendPanel.add(createLabelCombo(JMeterUtils.getResString("aggregate_graph_legend_placement"), //$NON-NLS-1$ |
706 |
legendPlacementList)); |
821 |
legendPlacementList)); |
707 |
legendPlacementList.setSelectedItem(JMeterUtils.getResString("aggregate_graph_legend.placement.right")); // default: right |
822 |
legendPlacementList.setSelectedItem(JMeterUtils.getResString("aggregate_graph_legend.placement.bottom")); // default: bottom |
708 |
legendPanel.add(createLabelCombo(JMeterUtils.getResString("aggregate_graph_font"), //$NON-NLS-1$ |
823 |
legendPanel.add(createLabelCombo(JMeterUtils.getResString("aggregate_graph_font"), //$NON-NLS-1$ |
709 |
fontNameList)); |
824 |
fontNameList)); |
710 |
fontNameList.setSelectedIndex(0); // default: sans serif |
825 |
fontNameList.setSelectedIndex(0); // default: sans serif |