org.apache.jmeter.visualizers

Class DistributionGraph

Implemented Interfaces:
Scrollable, Clearable

public class DistributionGraph
extends JComponent
implements Scrollable, Clearable

New graph for drawing distribution graph of the results. It is intended as a way to view the data after the stress has been performed. Although it can be used at runtime, it is not recommended, since it is rather intensive. The graph will draw a red line at 90% and an orange line at 50%. I like distribution graphs because they allow me to see how the data clumps. In general, the data will tend to clump in predictable ways when the application is well designed and implemented. Data that generates erratic graphs are generally not desirable.

Constructor Summary

DistributionGraph()
Constructor for the Graph object.
DistributionGraph(SamplingStatCalculator model)
Constructor for the Graph object.

Method Summary

void
clearData()
Clears this graph.
Dimension
getPreferredScrollableViewportSize()
Gets the PreferredScrollableViewportSize attribute of the Graph object.
int
getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
Gets the ScrollableBlockIncrement attribute of the Graph object.
boolean
getScrollableTracksViewportHeight()
Gets the ScrollableTracksViewportHeight attribute of the Graph object.
boolean
getScrollableTracksViewportWidth()
Gets the ScrollableTracksViewportWidth attribute of the Graph object.
int
getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
Gets the ScrollableUnitIncrement attribute of the Graph object.
void
paintComponent(Graphics g)
Method is responsible for calling drawSample and updating the graph.

Constructor Details

DistributionGraph

public DistributionGraph()
Constructor for the Graph object.

DistributionGraph

public DistributionGraph(SamplingStatCalculator model)
Constructor for the Graph object.

Method Details

clearData

public void clearData()
Clears this graph.
Specified by:
clearData in interface Clearable

getPreferredScrollableViewportSize

public Dimension getPreferredScrollableViewportSize()
Gets the PreferredScrollableViewportSize attribute of the Graph object.
Returns:
the PreferredScrollableViewportSize value

getScrollableBlockIncrement

public int getScrollableBlockIncrement(Rectangle visibleRect,
                                       int orientation,
                                       int direction)
Gets the ScrollableBlockIncrement attribute of the Graph object.
Returns:
the ScrollableBlockIncrement value

getScrollableTracksViewportHeight

public boolean getScrollableTracksViewportHeight()
Gets the ScrollableTracksViewportHeight attribute of the Graph object.
Returns:
the ScrollableTracksViewportHeight value

getScrollableTracksViewportWidth

public boolean getScrollableTracksViewportWidth()
Gets the ScrollableTracksViewportWidth attribute of the Graph object.
Returns:
the ScrollableTracksViewportWidth value

getScrollableUnitIncrement

public int getScrollableUnitIncrement(Rectangle visibleRect,
                                      int orientation,
                                      int direction)
Gets the ScrollableUnitIncrement attribute of the Graph object.
Returns:
the ScrollableUnitIncrement value

paintComponent

public void paintComponent(Graphics g)
Method is responsible for calling drawSample and updating the graph.

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