Java Doc for AbstractVisualizer.java in  » Testing » jakarta-jmeter » org » apache » jmeter » visualizers » gui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jakarta jmeter » org.apache.jmeter.visualizers.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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,
AbstractVisualizer
abstract public class AbstractVisualizer extends AbstractJMeterGuiComponent implements Visualizer,ChangeListener,UnsharedComponent,Clearable(Code)
This is the base class for JMeter GUI components which can display test results in some way. It provides the following conveniences to developers: For most developers, making a new visualizer is primarly for the purpose of either calculating new statistics on the sample results that other visualizers don't calculate, or displaying the results visually in a new and interesting way. Making a new visualizer for either of these purposes is easy - just extend this class and implement the org.apache.jmeter.visualizers.Visualizer.add add(SampleResult) method and display the results as you see fit. This AbstractVisualizer and the default org.apache.jmeter.reporters.ResultCollector ResultCollector handle logging and registering to receive SampleEvents for you - all you need to do is include the JPanel created by makeTitlePanel somewhere in your gui to allow users set the log file.

If you are doing more than that, you may need to extend org.apache.jmeter.reporters.ResultCollector ResultCollector as well and modify the AbstractVisualizer.configure(TestElement) , AbstractVisualizer.modifyTestElement(TestElement) , and AbstractVisualizer.createTestElement() methods to create and modify your alternate ResultCollector. For an example of this, see the org.apache.jmeter.visualizers.MailerVisualizer MailerVisualizer .



Field Summary
protected  ResultCollectorcollector
    
protected  booleanisStats
    

Constructor Summary
public  AbstractVisualizer()
    

Method Summary
public  voidclearGui()
    
public  voidconfigure(TestElement el)
    
protected  voidconfigureTestElement(AbstractListenerElement mc)
     This provides a convenience for extenders when they implement the org.apache.jmeter.gui.JMeterGUIComponent.createTestElement method.
public  JPopupMenucreatePopupMenu()
     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.
public  TestElementcreateTestElement()
    
protected  JCheckBoxgetErrorLoggingCheckbox()
     Gets the checkbox which selects whether or not only errors should be logged.
public  StringgetFile()
     Gets the filename which has been entered in the FilePanel.
protected  ComponentgetFilePanel()
     Gets the file panel which allows the user to save results to a file.
public  CollectiongetMenuCategories()
     This is the list of menu categories this gui component will be available under.
protected  ResultCollectorgetModel()
     Provides access to the ResultCollector model class for extending implementations.
public  booleanisStats()
    
protected  ContainermakeTitlePanel()
     Create a standard title section for JMeter components.
public  voidmodifyTestElement(TestElement c)
    
public  voidsetFile(String filename)
     Sets the filename which results will be saved to.
protected  voidsetModel(ResultCollector collector)
     Provides extending classes the opportunity to set the ResultCollector model for the Visualizer.
public  voidstateChanged(ChangeEvent e)
     Invoked when the target of the listener has changed its state.

Field Detail
collector
protected ResultCollector collector(Code)



isStats
protected boolean isStats(Code)




Constructor Detail
AbstractVisualizer
public AbstractVisualizer()(Code)




Method Detail
clearGui
public void clearGui()(Code)



configure
public void configure(TestElement el)(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.




createTestElement
public TestElement createTestElement()(Code)



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




modifyTestElement
public void modifyTestElement(TestElement c)(Code)



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



Fields inherited from org.apache.jmeter.gui.AbstractJMeterGuiComponent
protected NamePanel namePanel(Code)(Java Doc)

Methods inherited from org.apache.jmeter.gui.AbstractJMeterGuiComponent
public void clearGui()(Code)(Java Doc)
public void configure(TestElement element)(Code)(Java Doc)
protected void configureTestElement(TestElement mc)(Code)(Java Doc)
protected Component createTitleLabel()(Code)(Java Doc)
public String getComment()(Code)(Java Doc)
public String getDocAnchor()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected NamePanel getNamePanel()(Code)(Java Doc)
protected TreeNode getNode()(Code)(Java Doc)
public JComponent getPrintableComponent()(Code)(Java Doc)
public String getStaticLabel()(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
protected Border makeBorder()(Code)(Java Doc)
protected JScrollPane makeScrollPane(Component comp)(Code)(Java Doc)
protected JScrollPane makeScrollPane(Component comp, int verticalPolicy, int horizontalPolicy)(Code)(Java Doc)
protected Container makeTitlePanel()(Code)(Java Doc)
public void setComment(String comment)(Code)(Java Doc)
public void setEnabled(boolean e)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setNode(TreeNode node)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.