woolfel 2004/06/16 12:38:10 Added: src/core/org/apache/jmeter/visualizers Printable.java Log: simple interface for visualizers. it is intended to work with SaveGraphics
action. once it is all hooked up, an user should be able to select the visualizer in the tree and click the save graphics. the action will then get the visualizer from GUIPackage and see if it implements Printable. if it does, it will call the method and try to save the JComponent. peter Revision Changes Path 1.1 jakarta-jmeter/src/core/org/apache/jmeter/visualizers/Printable.java Index: Printable.java =================================================================== // $Header: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/visualizers/Printable.java,v 1.1 2004/06/16 19:38:10 woolfel Exp $ /* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.jmeter.visualizers; import javax.swing.JComponent; /** * Printable is used by components that can be saved to an * external file. It is up to the visualizers to get the * right component containing the JPanel or JComponent to * save. */ public interface Printable { JComponent getPrintableComponent(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]