Class ViewResultsFullVisualizer

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

public class ViewResultsFullVisualizer extends AbstractVisualizer implements ActionListener, TreeSelectionListener, Clearable, ItemListener
Base for ViewResults
See Also:
  • Field Details

    • SERVER_ERROR_COLOR

      public static final Color SERVER_ERROR_COLOR
    • CLIENT_ERROR_COLOR

      public static final Color CLIENT_ERROR_COLOR
    • REDIRECT_COLOR

      public static final Color REDIRECT_COLOR
    • COMBO_CHANGE_COMMAND

      protected static final String COMBO_CHANGE_COMMAND
      See Also:
  • Constructor Details

    • ViewResultsFullVisualizer

      public ViewResultsFullVisualizer()
      Constructor
  • Method Details

    • add

      public void add(SampleResult sample)
      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:
      sample - the newly arrived sample
    • clearData

      public void clearData()
      Clears the current data of the object.
      Specified by:
      clearData in interface Clearable
    • getLabelResource

      public String getLabelResource()
      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
    • valueChanged

      public void valueChanged(TreeSelectionEvent e)
      Specified by:
      valueChanged in interface TreeSelectionListener
    • isTextDataType

      protected static boolean isTextDataType(SampleResult sampleResult)
      Parameters:
      sampleResult - SampleResult
      Returns:
      true if sampleResult is text or has empty content type
    • actionPerformed

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

      public static String getResponseAsString(SampleResult res)
    • wrapLongLines

      @API(status=INTERNAL, since="5.5") public static String wrapLongLines(String input)
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Handler for Checkbox
      Specified by:
      itemStateChanged in interface ItemListener