woolfel     2005/09/10 18:52:50

  Modified:    src/components/org/apache/jmeter/visualizers Tag: rel-2-1
                        StatGraphVisualizer.java
  Log:
  fixed the redraw issue. now clicking on display graph works correctly even if
  the size of the graph is larger than the current panel.
  peter
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.3   +7 -6      
jakarta-jmeter/src/components/org/apache/jmeter/visualizers/Attic/StatGraphVisualizer.java
  
  Index: StatGraphVisualizer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/visualizers/Attic/StatGraphVisualizer.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- StatGraphVisualizer.java  10 Sep 2005 20:03:16 -0000      1.1.2.2
  +++ StatGraphVisualizer.java  11 Sep 2005 01:52:50 -0000      1.1.2.3
  @@ -118,7 +118,7 @@
       
       protected int defaultWidth = 400;
       
  -    protected int defaultHeight = 400;
  +    protected int defaultHeight = 300;
   
        public StatGraphVisualizer() {
                super();
  @@ -187,7 +187,7 @@
                mainPanel.add(makeTitlePanel());
   
                myJTable = new JTable(model);
  -             myJTable.setPreferredScrollableViewportSize(new Dimension(500, 
70));
  +             myJTable.setPreferredScrollableViewportSize(new Dimension(500, 
80));
                myScrollPane = new JScrollPane(myJTable);
           
           graph = new VerticalPanel();
  @@ -237,7 +237,6 @@
           }
           int width = Integer.parseInt(wstr);
           int height = Integer.parseInt(hstr);
  -        graphPanel.setPreferredSize(new Dimension(width,height));
   
           graphPanel.setData(this.getData());
           graphPanel.setHeight(height);
  @@ -247,7 +246,9 @@
           graphPanel.setXAxisTitle(columns.getText());
           graphPanel.setYAxisLabels(this.yAxisLabel);
           graphPanel.setYAxisTitle(this.yAxisTitle);
  -        
  +
  +        graphPanel.setPreferredSize(new Dimension(width,height));
  +        graph.resize(new Dimension(graph.getWidth(), height + 120));
           spane.repaint();
       }
       
  
  
  

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

Reply via email to