org.apache.jmeter.visualizers
Class MonitorPerformancePanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JSplitPane
org.apache.jmeter.visualizers.MonitorPerformancePanel
- All Implemented Interfaces:
- Accessible, Clearable, EventListener, ImageObserver, MenuContainer, MonitorListener, Serializable, TreeSelectionListener
- public class MonitorPerformancePanel
- extends JSplitPane
- implements TreeSelectionListener, MonitorListener, Clearable
- See Also:
- Serialized Form
Fields inherited from class javax.swing.JSplitPane |
BOTTOM, CONTINUOUS_LAYOUT_PROPERTY, continuousLayout, DIVIDER, DIVIDER_LOCATION_PROPERTY, DIVIDER_SIZE_PROPERTY, dividerSize, HORIZONTAL_SPLIT, LAST_DIVIDER_LOCATION_PROPERTY, lastDividerLocation, LEFT, leftComponent, ONE_TOUCH_EXPANDABLE_PROPERTY, oneTouchExpandable, orientation, ORIENTATION_PROPERTY, RESIZE_WEIGHT_PROPERTY, RIGHT, rightComponent, TOP, VERTICAL_SPLIT |
Method Summary |
void |
addSample(MonitorModel model)
MonitorAccumModel will call this method to notify
the component data has changed. |
void |
clear()
clear will remove all child nodes from the ROOTNODE,
clear the HashMap, update the graph and jpanel for
the server tree. |
JPanel |
createLeftGridLabels()
Method is responsible for creating the left
grid labels. |
JPanel |
createLegend()
Method will create the legends at the bottom of
the performance tab explaining the meaning of
each line. |
JPanel |
createRightGridLabels()
Method is responsible for creating the grid labels
on the right for "healthy" and "dead" |
protected void |
init()
init() will create all the necessary swing panels,
labels and icons for the performance panel. |
void |
valueChanged(TreeSelectionEvent e)
When the user selects a different node in the
tree, we get the selected node. |
Methods inherited from class javax.swing.JSplitPane |
addImpl, getAccessibleContext, getBottomComponent, getDividerLocation, getDividerSize, getLastDividerLocation, getLeftComponent, getMaximumDividerLocation, getMinimumDividerLocation, getOrientation, getResizeWeight, getRightComponent, getTopComponent, getUI, getUIClassID, isContinuousLayout, isOneTouchExpandable, isValidateRoot, paintChildren, paramString, remove, remove, removeAll, resetToPreferredSizes, setBottomComponent, setContinuousLayout, setDividerLocation, setDividerLocation, setDividerSize, setLastDividerLocation, setLeftComponent, setOneTouchExpandable, setOrientation, setResizeWeight, setRightComponent, setTopComponent, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, paint, paintBorder, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
LEGEND_HEALTH
public static final String LEGEND_HEALTH
LEGEND_LOAD
public static final String LEGEND_LOAD
LEGEND_MEM
public static final String LEGEND_MEM
LEGEND_THREAD
public static final String LEGEND_THREAD
LEGEND_HEALTH_ICON
public static final ImageIcon LEGEND_HEALTH_ICON
LEGEND_LOAD_ICON
public static final ImageIcon LEGEND_LOAD_ICON
LEGEND_MEM_ICON
public static final ImageIcon LEGEND_MEM_ICON
LEGEND_THREAD_ICON
public static final ImageIcon LEGEND_THREAD_ICON
GRID_LABEL_TOP
public static final String GRID_LABEL_TOP
GRID_LABEL_MIDDLE
public static final String GRID_LABEL_MIDDLE
GRID_LABEL_BOTTOM
public static final String GRID_LABEL_BOTTOM
GRID_LABEL_HEALTHY
public static final String GRID_LABEL_HEALTHY
GRID_LABEL_ACTIVE
public static final String GRID_LABEL_ACTIVE
GRID_LABEL_WARNING
public static final String GRID_LABEL_WARNING
GRID_LABEL_DEAD
public static final String GRID_LABEL_DEAD
PERF_TITLE
public static final String PERF_TITLE
SERVER_TITLE
public static final String SERVER_TITLE
plaintext
protected Font plaintext
MonitorPerformancePanel
public MonitorPerformancePanel()
- Deprecated. Only for use in unit testing
MonitorPerformancePanel
public MonitorPerformancePanel(MonitorAccumModel model,
MonitorGraph graph)
init
protected void init()
- init() will create all the necessary swing panels,
labels and icons for the performance panel.
createLegend
public JPanel createLegend()
- Method will create the legends at the bottom of
the performance tab explaining the meaning of
each line.
- Returns:
- JPanel
createLeftGridLabels
public JPanel createLeftGridLabels()
- Method is responsible for creating the left
grid labels.
- Returns:
- JPanel
createRightGridLabels
public JPanel createRightGridLabels()
- Method is responsible for creating the grid labels
on the right for "healthy" and "dead"
- Returns:
- JPanel
addSample
public void addSample(MonitorModel model)
- MonitorAccumModel will call this method to notify
the component data has changed.
- Specified by:
addSample
in interface MonitorListener
valueChanged
public void valueChanged(TreeSelectionEvent e)
- When the user selects a different node in the
tree, we get the selected node. From the node,
we get the UserObject used to create the
treenode in the constructor.
- Specified by:
valueChanged
in interface TreeSelectionListener
clear
public void clear()
- clear will remove all child nodes from the ROOTNODE,
clear the HashMap, update the graph and jpanel for
the server tree.
- Specified by:
clear
in interface Clearable
Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.