Class DistributionGraphVisualizer

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

public class DistributionGraphVisualizer extends AbstractVisualizer implements ImageVisualizer, GraphListener, Clearable
This class implements the visualizer for displaying the distribution graph. Distribution graphs are useful for standard benchmarks and viewing the distribution of data points. Results tend to clump together. Created May 25, 2004
See Also:
  • Constructor Details

    • DistributionGraphVisualizer

      public DistributionGraphVisualizer()
      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

      public void updateGui()
      Specified by:
      updateGui in interface GraphListener
    • updateGui

      public void updateGui(Sample s)
      Specified by:
      updateGui in interface GraphListener
    • 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 overriden 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
    • 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
    • getPrintableComponent

      public JComponent getPrintableComponent()
      Method implements Printable, which is suppose to return the correct internal component. The Action class can then print or save the graphics to a file.
      Specified by:
      getPrintableComponent in interface Printable
      Overrides:
      getPrintableComponent in class AbstractJMeterGuiComponent
      Returns:
      this object