org.apache.jmeter.visualizers

Class GraphAccum

Implemented Interfaces:
Scrollable, GraphAccumListener

public class GraphAccum
extends JComponent
implements Scrollable, GraphAccumListener

Draws the graph. Created 2001/08/11

Field Summary

protected static int
width

Constructor Summary

GraphAccum()
Constructor.
GraphAccum(GraphAccumModel model)
Constructor with model set.

Method Summary

void
clearData()
Clears this graph.
boolean
getNoLegendYet()
The legend is only printed once during sampling.
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
setNoLegendYet(boolean value)
The legend is only printed once during sampling.
void
setVisualizer(Object visualizer)
Set the visualizer.
void
updateGui()
Redraws the gui.
void
updateGui(SampleResult oneSample)
Redraws the gui if no rescaling of the graph is needed.

Field Details

width

protected static final int width
Field Value:
2000

Constructor Details

GraphAccum

public GraphAccum()
Constructor.

GraphAccum

public GraphAccum(GraphAccumModel model)
Constructor with model set.
Parameters:
model - model which this object represents

Method Details

clearData

public void clearData()
Clears this graph.

getNoLegendYet

public boolean getNoLegendYet()
The legend is only printed once during sampling. This returns the variable that indicates whether the legend has been printed yet or not.
Returns:
value variable that indicates whether the legend has been printed yet

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)

setNoLegendYet

public void setNoLegendYet(boolean value)
The legend is only printed once during sampling. This sets the variable that indicates whether the legend has been printed yet or not.
Parameters:
value - variable that indicates whether the legend has been printed yet

setVisualizer

public void setVisualizer(Object visualizer)
Set the visualizer.
Parameters:
visualizer - visualizer of this object

updateGui

public void updateGui()
Redraws the gui.
Specified by:
updateGui in interface GraphAccumListener

updateGui

public void updateGui(SampleResult oneSample)
Redraws the gui if no rescaling of the graph is needed.
Specified by:
updateGui in interface GraphAccumListener
Parameters:
oneSample - sample to be added

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