woolfel     2004/06/09 16:56:13

  Modified:    src/components/org/apache/jmeter/visualizers
                        DistributionGraphVisualizer.java
  Log:
  updated the visualizer to use the updated SaveGraphicsService

  

  peter
  
  Revision  Changes    Path
  1.7       +1 -8      
jakarta-jmeter/src/components/org/apache/jmeter/visualizers/DistributionGraphVisualizer.java
  
  Index: DistributionGraphVisualizer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/visualizers/DistributionGraphVisualizer.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DistributionGraphVisualizer.java  9 Jun 2004 13:14:14 -0000       1.6
  +++ DistributionGraphVisualizer.java  9 Jun 2004 23:56:12 -0000       1.7
  @@ -42,7 +42,7 @@
   
   import org.apache.jmeter.samplers.Clearable;
   import org.apache.jmeter.samplers.SampleResult;
  -//import org.apache.jmeter.save.SaveGraphicsService;
  +import org.apache.jmeter.save.SaveGraphicsService;
   import org.apache.jmeter.util.JMeterUtils;
   import org.apache.jmeter.visualizers.gui.AbstractVisualizer;
   
  @@ -61,16 +61,12 @@
   {
       SamplingStatCalculator model;
       private JPanel graphPanel = null;
  -    //NOTREAD private JTextField noSamplesField = null;
  -    //NOTREAD String minute = JMeterUtils.getResString("minute");
   
       private DistributionGraph graph;
       private JTextField noteField;
       private JButton saveButton;
       private int delay = 10;
       private int counter = 0;
  -    //NOTREAD private int cwidth = 0;
  -    //NOTREAD private int cheight = 0;
       
       /**
        * Constructor for the GraphVisualizer object.
  @@ -293,12 +289,9 @@
        if (src == saveButton){
                // this is temporary until I get familiar with the
                // action stuff in JMeter.
  -             /**
                SaveGraphicsService service = new SaveGraphicsService();
                        service.saveJComponent("distributionGraph",
                                SaveGraphicsService.PNG,this.graphPanel);
  -                     service.saveUsingJPEGEncoder("graph",this.graphPanel);
  -                     **/
        }
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to