public class RespTimeGraphVisualizer extends AbstractVisualizer implements ActionListener, Clearable
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
collector, isStats
namePanel
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
RespTimeGraphVisualizer() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event) |
void |
add(SampleResult sampleResult)
This method is called by sampling thread to inform the visualizer about
the arrival of a new sample.
|
void |
clearData()
Clears the current data of the object.
|
void |
clearGui()
Implements JMeterGUIComponent.clearGui
|
void |
configure(TestElement te)
A newly created gui component can be initialized with the contents of a
Test Element object by calling this method.
|
double[][] |
getData()
Generate the data for the jChart API
|
String |
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive
the component's label in the local language.
|
JComponent |
getPrintableComponent()
Subclasses need to over-ride this method, if they wish to return
something other than the Visualizer itself.
|
String[] |
getXAxisLabels() |
void |
makeGraph() |
void |
modifyTestElement(TestElement te)
GUI components are responsible for populating TestElements they create
with the data currently held in the GUI components.
|
configureTestElement, createTestElement, getErrorLoggingCheckbox, getFile, getFilePanel, getModel, isStats, makeTitlePanel, setFile, setModel, stateChanged
createPopupMenu, getMenuCategories
configureTestElement, createTitleLabel, getComment, getDocAnchor, getName, getNamePanel, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, setComment, setEnabled, setName, wrapTitlePanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canBeAdded
public static final String INTERVAL
public static final String SERIES_SELECTION
public static final String SERIES_SELECTION_MATCH_LABEL
public static final String SERIES_SELECTION_CASE_SENSITIVE
public static final String SERIES_SELECTION_REGEXP
public static final String GRAPH_TITLE
public static final String GRAPH_TITLE_FONT_NAME
public static final String GRAPH_TITLE_FONT_SIZE
public static final String GRAPH_TITLE_FONT_STYLE
public static final String LINE_STROKE_WIDTH
public static final String LINE_SHAPE_POINT
public static final String GRAPH_SIZE_DYNAMIC
public static final String GRAPH_SIZE_WIDTH
public static final String GRAPH_SIZE_HEIGHT
public static final String XAXIS_TIME_FORMAT
public static final String YAXIS_SCALE_MAX_VALUE
public static final String YAXIS_INCREMENT_SCALE
public static final String YAXIS_NUMBER_GROUPING
public static final String LEGEND_PLACEMENT
public static final String LEGEND_FONT
public static final String LEGEND_SIZE
public static final String LEGEND_STYLE
public static final int DEFAULT_INTERVAL
public static final boolean DEFAULT_SERIES_SELECTION
public static final boolean DEFAULT_CASE_SENSITIVE
public static final boolean DEFAULT_REGEXP
public static final int DEFAULT_TITLE_FONT_NAME
public static final int DEFAULT_TITLE_FONT_SIZE
public static final int DEFAULT_TITLE_FONT_STYLE
public static final int DEFAULT_STROKE_WIDTH_LIST
public static final int DEFAULT_LINE_SHAPE_POINT
public static final boolean DEFAULT_DYNAMIC_GRAPH_SIZE
public static final String DEFAULT_XAXIS_TIME_FORMAT
public static final boolean DEFAULT_NUMBER_SHOW_GROUPING
public static final int DEFAULT_LEGEND_PLACEMENT
public static final int DEFAULT_LEGEND_FONT
public static final int DEFAULT_LEGEND_SIZE
public static final int DEFAULT_LEGEND_STYLE
public void add(SampleResult sampleResult)
Visualizer
add
in interface Visualizer
sampleResult
- the newly arrived samplepublic void makeGraph()
public double[][] getData()
public String getLabelResource()
JMeterGUIComponent
getLabelResource
in interface JMeterGUIComponent
public void clearData()
Clearable
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
public JComponent getPrintableComponent()
AbstractJMeterGuiComponent
getPrintableComponent
in interface Printable
getPrintableComponent
in class AbstractJMeterGuiComponent
public void configure(TestElement te)
AbstractJMeterGuiComponent
AbstractJMeterGuiComponent provides a partial implementation of this method, setting the name of the component and its enabled status. Subclasses should override this method, performing their own configuration as needed, but also calling this super-implementation.
configure
in interface JMeterGUIComponent
configure
in class AbstractVisualizer
te
- the TestElement to configurepublic void modifyTestElement(TestElement te)
JMeterGUIComponent
The canonical implementation looks like this:
public void modifyTestElement(TestElement element) { element.clear(); // many implementations use this configureTestElement(element); // Using the element setters (preferred): TestElementXYZ xyz = (TestElementXYZ) element; xyz.setState(guiState.getText()); xyz.setCode(guiCode.getText()); ... other GUI fields ... // or directly (do not use unless there is no setter for the field): element.setProperty(TestElementXYZ.STATE, guiState.getText()) element.setProperty(TestElementXYZ.CODE, guiCode.getText()) ... other GUI fields ... }
modifyTestElement
in interface JMeterGUIComponent
modifyTestElement
in class AbstractVisualizer
te
- the TestElement to modifypublic void clearGui()
clearGui
in interface ClearGui
clearGui
in class AbstractVisualizer
public String[] getXAxisLabels()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.