jakarta-jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: jakarta-jmeter/src/components/org/apache/jmeter/visualizers Graph.java
Date Sun, 03 Oct 2004 15:21:55 GMT
sebb        2004/10/03 08:21:55

  Modified:    src/components/org/apache/jmeter/visualizers Tag: rel-2_0
                        Graph.java
  Log:
  Rename booleans to avoid possible confusion with identically named local ints
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.12.2.1  +17 -17    jakarta-jmeter/src/components/org/apache/jmeter/visualizers/Graph.java
  
  Index: Graph.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/visualizers/Graph.java,v
  retrieving revision 1.12
  retrieving revision 1.12.2.1
  diff -u -r1.12 -r1.12.2.1
  --- Graph.java	13 Feb 2004 01:48:46 -0000	1.12
  +++ Graph.java	3 Oct 2004 15:21:54 -0000	1.12.2.1
  @@ -45,11 +45,11 @@
       implements Scrollable, GraphListener, Clearable
   {
       private static Logger log = LoggingManager.getLoggerForClass();
  -    private boolean data = true;
  -    private boolean average = true;
  -    private boolean deviation = true;
  -    private boolean throughput = true;
  -    private boolean median = true;
  +    private boolean wantData = true;
  +    private boolean wantAverage = true;
  +    private boolean wantDeviation = true;
  +    private boolean wantThroughput = true;
  +    private boolean wantMedian = true;
   
       private GraphModel model;
       private static int width = 2000;
  @@ -144,27 +144,27 @@
   
       public void enableData(boolean value)
       {
  -        this.data = value;
  +        this.wantData = value;
       }
   
       public void enableAverage(boolean value)
       {
  -        this.average = value;
  +        this.wantAverage = value;
       }
   
       public void enableMedian(boolean value)
       {
  -        this.median = value;
  +        this.wantMedian = value;
       }
   
       public void enableDeviation(boolean value)
       {
  -        this.deviation = value;
  +        this.wantDeviation = value;
       }
   
       public void enableThroughput(boolean value)
       {
  -        throughput = value;
  +        this.wantThroughput = value;
       }
   
       public void updateGui()
  @@ -212,7 +212,7 @@
           //int width = getWidth();
           int height = getHeight();
           log.debug("Drawing a sample at " + x);
  -        if (data)
  +        if (wantData)
           {
               int data = (int) (oneSample.data * height / model.getGraphMax());
   
  @@ -229,7 +229,7 @@
                   "Drawing coords = " + (x % width) + "," + (height - data));
           }
   
  -        if (average)
  +        if (wantAverage)
           {
               int average =
                   (int) (oneSample.average * height / model.getGraphMax());
  @@ -242,7 +242,7 @@
                   (height - average - 1));
           }
   
  -        if (median)
  +        if (wantMedian)
           {
               int median =
                   (int) (oneSample.median * height / model.getGraphMax());
  @@ -255,7 +255,7 @@
                   (height - median - 1));
           }
   
  -        if (deviation)
  +        if (wantDeviation)
           {
               int deviation =
                   (int) (oneSample.deviation * height / model.getGraphMax());
  @@ -267,7 +267,7 @@
                   x % width,
                   (height - deviation - 1));
           }
  -        if (throughput)
  +        if (wantThroughput)
           {
               int throughput =
                   (int) (oneSample.throughput
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Mime
View raw message