org.apache.jmeter.visualizers

Class GraphAccumVisualizer

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

public class GraphAccumVisualizer
extends AbstractVisualizer
implements ImageVisualizer, GraphAccumListener, Clearable

This class implements a statistical analyser that plots the accumulated time taken to load each set of pages. The number of plots is equivalent to the number of times the set of pages is configured to load. Created 2001/08/11

Field Summary

protected GraphAccum
graph
protected JPanel
legendPanel
protected GraphAccumModel
model

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

collector, isStats

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

namePanel

Constructor Summary

GraphAccumVisualizer()
Constructor.

Method Summary

void
add(SampleResult res)
void
clearData()
Clear this visualizer data.
Image
getImage()
Gets the Image attribute of the GraphVisualizer object.
String
getLabelResource()
Object
getWhiteCanvas()
Returns the panel where labels can be added.
String
toString()
Returns a description of this instance.
void
updateGui()
Updates the gui to reflect changes.
void
updateGui(SampleResult s)
Updates gui to reflect small changes.

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

graph

protected GraphAccum graph

legendPanel

protected JPanel legendPanel

model

protected GraphAccumModel model

Constructor Details

GraphAccumVisualizer

public GraphAccumVisualizer()
Constructor.

Method Details

add

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

clearData

public void clearData()
Clear this visualizer data.
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()
Specified by:
getLabelResource in interface JMeterGUIComponent

getWhiteCanvas

public Object getWhiteCanvas()
Returns the panel where labels can be added.
Returns:
a panel where labels can be added

toString

public String toString()
Returns a description of this instance.
Returns:
description of this instance

updateGui

public void updateGui()
Updates the gui to reflect changes.
Specified by:
updateGui in interface GraphAccumListener

updateGui

public void updateGui(SampleResult s)
Updates gui to reflect small changes.
Specified by:
updateGui in interface GraphAccumListener
Parameters:
s - sample to be added to plot

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