org.apache.jmeter.visualizers

Class StatGraphVisualizer

Implemented Interfaces:
ActionListener, ChangeListener, Clearable, JMeterGUIComponent, Printable, UnsharedComponent, Visualizer

public class StatGraphVisualizer
extends AbstractVisualizer
implements Clearable, ActionListener

Aggregrate Table-Based Reporting Visualizer for JMeter. Props to the people who've done the other visualizers ahead of me (Stefano Mazzocchi), who I borrowed code from to start me off (and much code may still exist). Thank you!

Field Summary

protected JLabeledChoice
columns
protected int
defaultHeight
protected int
defaultWidth
protected JButton
displayButton
protected VerticalPanel
graph
protected AxisGraph
graphPanel
protected JScrollPane
graphScroll
protected JTable
myJTable
protected JScrollPane
myScrollPane
protected JButton
saveGraph
protected boolean
saveGraphToFile
protected JButton
saveTable
protected JSplitPane
spane
protected String
yAxisLabel
protected String
yAxisTitle

Fields inherited from class org.apache.jmeter.visualizers.gui.AbstractVisualizer

collector, isStats

Fields inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

namePanel

Constructor Summary

StatGraphVisualizer()

Method Summary

void
actionPerformed(ActionEvent event)
void
add(SampleResult res)
void
clearData()
Clears this visualizer and its model, and forces a repaint of the table.
Vector
getAllTableData()
We use this method to get the data, since we are using ObjectTableModel, so the calling getDataVector doesn't work as expected.
String[]
getAxisLabels()
double[][]
getData()
String
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language.
JComponent
getPrintableComponent()
void
makeGraph()
static boolean
testFunctors()

Methods inherited from class org.apache.jmeter.visualizers.gui.AbstractVisualizer

clearGui, configure, configureTestElement, createTestElement, getErrorLoggingCheckbox, getFile, getFilePanel, getModel, isStats, makeTitlePanel, modifyTestElement, setFile, setModel, stateChanged

Methods inherited from class org.apache.jmeter.visualizers.gui.AbstractListenerGui

createPopupMenu, getMenuCategories

Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

clearGui, configure, configureTestElement, createTitleLabel, getComment, getDocAnchor, getName, getNamePanel, getNode, getPrintableComponent, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setComment, setEnabled, setName, setNode

Field Details

columns

protected JLabeledChoice columns

defaultHeight

protected int defaultHeight

defaultWidth

protected int defaultWidth

displayButton

protected JButton displayButton

graph

protected VerticalPanel graph

graphPanel

protected AxisGraph graphPanel

graphScroll

protected JScrollPane graphScroll

myJTable

protected JTable myJTable

myScrollPane

protected JScrollPane myScrollPane

saveGraph

protected JButton saveGraph

saveGraphToFile

protected boolean saveGraphToFile

saveTable

protected JButton saveTable

spane

protected JSplitPane spane

yAxisLabel

protected String yAxisLabel

yAxisTitle

protected String yAxisTitle

Constructor Details

StatGraphVisualizer

public StatGraphVisualizer()

Method Details

actionPerformed

public void actionPerformed(ActionEvent event)

add

public void add(SampleResult res)
Specified by:
add in interface Visualizer

clearData

public void clearData()
Clears this visualizer and its model, and forces a repaint of the table.
Specified by:
clearData in interface Clearable

getAllTableData

public Vector getAllTableData()
We use this method to get the data, since we are using ObjectTableModel, so the calling getDataVector doesn't work as expected.
Returns:
the data from the model

getAxisLabels

public String[] getAxisLabels()

getData

public double[][] getData()

getLabelResource

public String getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. The resource name is fixed, and does not vary with the selected language. Normally this method should be overriden in preference to overriding getStaticLabel(). However where the resource name is not available or required, getStaticLabel() may be overridden instead.
Specified by:
getLabelResource in interface JMeterGUIComponent
Returns:
the resource name

getPrintableComponent

public JComponent getPrintableComponent()
Specified by:
getPrintableComponent in interface Printable
Overrides:
getPrintableComponent in interface AbstractJMeterGuiComponent

makeGraph

public void makeGraph()

testFunctors

public static boolean testFunctors()

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.