Class StatGraphVisualizer

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

public class StatGraphVisualizer extends AbstractVisualizer implements Clearable, ActionListener
Aggregrate Table-Based Reporting Visualizer for JMeter. Props to the people who've done the other visualizers ahead of me (Stefano Mazzocchi), who I borrowed code from to start me off (and much code may still exist). Thank you!
See Also:
  • Constructor Details

    • StatGraphVisualizer

      public StatGraphVisualizer()
  • Method Details

    • getColumns

      public static final String[] getColumns()
      array of String containing column names
    • getAllTableData

      public static List<List<Object>> getAllTableData(ObjectTableModel model, Format[] formats)
      We use this method to get the data, since we are using ObjectTableModel, so the calling getDataVector doesn't work as expected.
      model - ObjectTableModel
      formats - Array of Format array can contain null formatters in this case value is added as is
      the data from the model
    • testFunctors

      public static boolean testFunctors()
    • 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
      the resource name
    • 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
      res - the newly arrived sample
    • clearData

      public void clearData()
      Clears this visualizer and its model, and forces a repaint of the table.
      Specified by:
      clearData in interface Clearable
    • makeGraph

      public void makeGraph()
    • getData

      public double[][] getData()
    • getAxisLabels

      public String[] getAxisLabels()
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • getPrintableComponent

      public JComponent getPrintableComponent()
      Description copied from class: AbstractJMeterGuiComponent
      Subclasses need to over-ride this method, if they wish to return something other than the Visualizer itself.
      Specified by:
      getPrintableComponent in interface Printable
      getPrintableComponent in class AbstractJMeterGuiComponent
      this object