org.apache.jmeter.visualizers

Class DistributionGraphVisualizer

Implemented Interfaces:
ChangeListener, Clearable, GraphListener, ImageVisualizer, JMeterGUIComponent, Printable, UnsharedComponent, Visualizer

public class DistributionGraphVisualizer
extends AbstractVisualizer
implements ImageVisualizer, GraphListener, Clearable

This class implements the visualizer for displaying the distribution graph. Distribution graphs are useful for standard benchmarks and viewing the distribution of data points. Results tend to clump together. Created May 25, 2004

Field Summary

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

collector, isStats

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

namePanel

Constructor Summary

DistributionGraphVisualizer()
Constructor for the GraphVisualizer object.

Method Summary

void
add(SampleResult res)
void
clearData()
Image
getImage()
Gets the Image attribute of the GraphVisualizer object.
String
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language.
JComponent
getPrintableComponent()
Method implements Printable, which is suppose to return the correct internal component.
String
toString()
void
updateGui()
void
updateGui(Sample s)

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

Constructor Details

DistributionGraphVisualizer

public DistributionGraphVisualizer()
Constructor for the GraphVisualizer object.

Method Details

add

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

clearData

public void clearData()
Specified by:
clearData in interface Clearable

getImage

public Image getImage()
Gets the Image attribute of the GraphVisualizer object.
Specified by:
getImage in interface ImageVisualizer
Returns:
the Image value

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()
Method implements Printable, which is suppose to return the correct internal component. The Action class can then print or save the graphics to a file.
Specified by:
getPrintableComponent in interface Printable
Overrides:
getPrintableComponent in interface AbstractJMeterGuiComponent

toString

public String toString()

updateGui

public void updateGui()
Specified by:
updateGui in interface GraphListener

updateGui

public void updateGui(Sample s)
Specified by:
updateGui in interface GraphListener

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