org.apache.jmeter.visualizers

Class Graph

Implemented Interfaces:
Scrollable, Clearable

public class Graph
extends JComponent
implements Scrollable, Clearable

Implements a simple graph for displaying performance results.

Constructor Summary

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

Method Summary

void
clearData()
Clears this graph.
void
enableAverage(boolean value)
void
enableData(boolean value)
void
enableDeviation(boolean value)
void
enableMedian(boolean value)
void
enableThroughput(boolean value)
long
getGraphMax()
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)
void
updateGui(Sample oneSample)

Constructor Details

Graph

public Graph()
Constructor for the Graph object.

Graph

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

Method Details

clearData

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

enableAverage

public void enableAverage(boolean value)

enableData

public void enableData(boolean value)

enableDeviation

public void enableDeviation(boolean value)

enableMedian

public void enableMedian(boolean value)

enableThroughput

public void enableThroughput(boolean value)

getGraphMax

public long getGraphMax()
Returns:
Returns the graphMax.

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)

updateGui

public void updateGui(Sample oneSample)

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