Class SplineVisualizer

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

public class SplineVisualizer extends AbstractVisualizer implements ImageVisualizer, GraphListener
This class implements a statistical analyser that takes samples to process a Spline interpolated curve. Currently, it tries to look mostly like the GraphVisualizer.
See Also:
  • Field Details

    • BACKGROUND_COLOR

      protected final Color BACKGROUND_COLOR
    • MINIMUM_COLOR

      protected final Color MINIMUM_COLOR
    • MAXIMUM_COLOR

      protected final Color MAXIMUM_COLOR
    • AVERAGE_COLOR

      protected final Color AVERAGE_COLOR
    • INCOMING_COLOR

      protected final Color INCOMING_COLOR
    • NUMBERS_TO_DISPLAY

      protected final int NUMBERS_TO_DISPLAY
      See Also:
    • FILL_UP_WITH_ZEROS

      protected final boolean FILL_UP_WITH_ZEROS
      See Also:
  • Constructor Details

    • SplineVisualizer

      public SplineVisualizer()
  • Method Details

    • 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
    • updateGui

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

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

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

      public String toString()
      Overrides:
      toString in class Component
    • getControlPanel

      public JPanel getControlPanel()
    • getImage

      public Image getImage()
      Specified by:
      getImage in interface ImageVisualizer