Class GraphVisualizer

All Implemented Interfaces:
ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, ClearGui, JMeterGUIComponent, UnsharedComponent, Clearable, ImageVisualizer, Printable, Visualizer

public class GraphVisualizer extends AbstractVisualizer implements ImageVisualizer, ItemListener, Clearable
This class implements a statistical analyser that calculates both the average and the standard deviation of the sampling process and outputs them as autoscaling plots.
See Also:
  • Constructor Details

    • GraphVisualizer

      public GraphVisualizer()
      Constructor for the GraphVisualizer object.
  • Method Details

    • getImage

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

      @Deprecated public void updateGui(Sample s)
      Deprecated.
      use add(SampleResult) instead
      Parameters:
      s - Sample
    • add

      public void add(SampleResult res)
      Description copied from interface: Visualizer
      This method is called by sampling thread to inform the visualizer about the arrival of a new sample.
      Specified by:
      add in interface Visualizer
      Parameters:
      res - the newly arrived sample
    • getLabelResource

      public String getLabelResource()
      Description copied from interface: JMeterGUIComponent
      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 overridden 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
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Specified by:
      itemStateChanged in interface ItemListener
    • clearData

      public void clearData()
      Description copied from interface: Clearable
      Clears the current data of the object.
      Specified by:
      clearData in interface Clearable
    • toString

      public String toString()
      Overrides:
      toString in class Component