You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by wo...@apache.org on 2005/05/20 19:18:15 UTC
cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/config/gui AbstractConfigGui.java
woolfel 2005/05/20 10:18:15
Modified: src/core/org/apache/jmeter/config/gui AbstractConfigGui.java
Log:
updated the Abstract class to implement printable. this way, we can save screen shots
easily without having to do ctrl-printsc
peter
Revision Changes Path
1.5 +14 -2 jakarta-jmeter/src/core/org/apache/jmeter/config/gui/AbstractConfigGui.java
Index: AbstractConfigGui.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/config/gui/AbstractConfigGui.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AbstractConfigGui.java 13 Feb 2004 02:21:37 -0000 1.4
+++ AbstractConfigGui.java 20 May 2005 17:18:15 -0000 1.5
@@ -20,10 +20,12 @@
import java.util.Arrays;
import java.util.Collection;
+import javax.swing.JComponent;
import javax.swing.JPopupMenu;
import org.apache.jmeter.gui.AbstractJMeterGuiComponent;
import org.apache.jmeter.gui.util.MenuFactory;
+import org.apache.jmeter.visualizers.Printable;
/**
* This is the base class for JMeter GUI components which provide configuration
@@ -33,6 +35,7 @@
* @version $Revision$
*/
public abstract class AbstractConfigGui extends AbstractJMeterGuiComponent
+implements Printable
{
/**
* When a user right-clicks on the component in the test tree, or
@@ -63,4 +66,13 @@
{
return Arrays.asList(new String[]{MenuFactory.CONFIG_ELEMENTS});
}
+
+ /**
+ * Subclasses need to over this method, if they wish to
+ * return something other than the Visualizer itself.
+ * @return
+ */
+ public JComponent getPrintableComponent(){
+ return this;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org