| org.apache.jmeter.gui.AbstractJMeterGuiComponent org.apache.jmeter.visualizers.gui.AbstractVisualizer
All known Subclasses: org.apache.jmeter.visualizers.DistributionGraphVisualizer, org.apache.jmeter.visualizers.ViewResultsFullVisualizer, org.apache.jmeter.visualizers.SimpleDataWriter, org.apache.jmeter.visualizers.MonitorHealthVisualizer, org.apache.jmeter.visualizers.SplineVisualizer, org.apache.jmeter.visualizers.MailerVisualizer, org.apache.jmeter.visualizers.AssertionVisualizer, org.apache.jmeter.visualizers.GraphVisualizer, org.apache.jmeter.visualizers.StatGraphVisualizer, org.apache.jmeter.visualizers.TableVisualizer, org.apache.jmeter.visualizers.GraphAccumVisualizer, org.apache.jmeter.visualizers.StatVisualizer, org.apache.jmeter.visualizers.SummaryReport,
isStats | protected boolean isStats(Code) | | |
AbstractVisualizer | public AbstractVisualizer()(Code) | | |
clearGui | public void clearGui()(Code) | | |
configureTestElement | protected void configureTestElement(AbstractListenerElement mc)(Code) | | This provides a convenience for extenders when they implement the
org.apache.jmeter.gui.JMeterGUIComponent.createTestElement method. This method will set the name, gui class, and test class for the
created Test Element. It should be called by every extending class when
creating Test Elements, as that will best assure consistent behavior.
Parameters: mc - the TestElement being created. |
createPopupMenu | public JPopupMenu createPopupMenu()(Code) | | When a user right-clicks on the component in the test tree, or selects
the edit menu when the component is selected, the component will be asked
to return a JPopupMenu that provides all the options available to the
user from this component.
This implementation returns menu items appropriate for most visualizer
components.
a JPopupMenu appropriate for the component. |
getErrorLoggingCheckbox | protected JCheckBox getErrorLoggingCheckbox()(Code) | | Gets the checkbox which selects whether or not only errors should be
logged. Subclasses don't normally need to worry about this checkbox,
because it is automatically added to the GUI in
AbstractVisualizer.makeTitlePanel() ,
and the behavior is handled in this base class.
the error logging checkbox |
getFile | public String getFile()(Code) | | Gets the filename which has been entered in the FilePanel. Subclasses
don't normally need to call this method, because configuration of the
FilePanel is handled in this base class.
the current filename See Also: AbstractVisualizer.getFilePanel() |
getFilePanel | protected Component getFilePanel()(Code) | | Gets the file panel which allows the user to save results to a file.
Subclasses don't normally need to worry about this panel, because it is
automatically added to the GUI in
AbstractVisualizer.makeTitlePanel() , and the
behavior is handled in this base class.
the file panel allowing users to save results |
getMenuCategories | public Collection getMenuCategories()(Code) | | This is the list of menu categories this gui component will be available
under. This implementation returns
org.apache.jmeter.gui.util.MenuFactory.LISTENERS , which is
appropriate for most visualizer components.
a Collection of Strings, where each element is one of theconstants defined in MenuFactory |
getModel | protected ResultCollector getModel()(Code) | | Provides access to the ResultCollector model class for extending
implementations. Using this method and setModel(ResultCollector) is only
necessary if your visualizer requires a differently behaving
ResultCollector. Using these methods will allow maximum reuse of the
methods provided by AbstractVisualizer in this event.
|
isStats | public boolean isStats()(Code) | | |
makeTitlePanel | protected Container makeTitlePanel()(Code) | | Create a standard title section for JMeter components. This includes the
title for the component and the Name Panel allowing the user to change
the name for the component. The AbstractVisualizer also adds the
FilePanel allowing the user to save the results, and the error logging
checkbox, allowing the user to choose whether or not only errors should
be logged.
This method is typically added to the top of the component at the
beginning of the component's init method.
a panel containing the component title, name panel, file panel,and error logging checkbox |
setFile | public void setFile(String filename)(Code) | | Sets the filename which results will be saved to. This will set the
filename in the FilePanel. Subclasses don't normally need to call this
method, because configuration of the FilePanel is handled in this base
class.
Parameters: filename - the new filename See Also: AbstractVisualizer.getFilePanel() |
setModel | protected void setModel(ResultCollector collector)(Code) | | Provides extending classes the opportunity to set the ResultCollector
model for the Visualizer. This is useful to allow maximum reuse of the
methods from AbstractVisualizer.
Parameters: collector - |
stateChanged | public void stateChanged(ChangeEvent e)(Code) | | Invoked when the target of the listener has changed its state. This
implementation assumes that the target is the FilePanel, and will update
the result collector for the new filename.
Parameters: e - the event that has occurred |
|
|