You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2012/09/06 22:20:30 UTC
svn commit: r1381742 - in
/jmeter/trunk/src/components/org/apache/jmeter/visualizers: AxisGraph.java
RespTimeGraphChart.java
Author: pmouawad
Date: Thu Sep 6 20:20:30 2012
New Revision: 1381742
URL: http://svn.apache.org/viewvc?rev=1381742&view=rev
Log:
Remove unused parameters
Modified:
jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java
jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java
Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java?rev=1381742&r1=1381741&r2=1381742&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java Thu Sep 6 20:20:30 2012
@@ -63,7 +63,10 @@ public class AxisGraph extends JPanel {
private static final int ELLIPSIS_LEN = ELLIPSIS.length();
protected double[][] data = null;
- protected String title, xAxisTitle, yAxisTitle, yAxisLabel;
+ protected String title;
+ protected String xAxisTitle;
+ protected String yAxisTitle;
+ protected String yAxisLabel;
protected int maxLength;
protected String[] xAxisLabels;
protected int width, height;
@@ -303,10 +306,10 @@ public class AxisGraph extends JPanel {
@Override
public void paintComponent(Graphics graphics) {
if (data != null && this.title != null && this.xAxisLabels != null &&
- this.xAxisTitle != null && this.yAxisLabel != null &&
+ this.yAxisLabel != null &&
this.yAxisTitle != null) {
- drawSample(this.title, this.maxLength, this.xAxisLabels,
- this.xAxisTitle, this.yAxisTitle, this.legendLabels,
+ drawSample(this.title, this.maxLength, this.xAxisLabels,
+ this.yAxisTitle, this.legendLabels,
this.data, this.width, this.height, this.color,
this.legendFont, graphics);
}
@@ -332,8 +335,10 @@ public class AxisGraph extends JPanel {
return input;
}
- private void drawSample(String _title, int _maxLength, String[] _xAxisLabels, String _xAxisTitle,
- String _yAxisTitle, String[] _legendLabels, double[][] _data, int _width, int _height, Color[] _color, Font font, Graphics g) {
+ private void drawSample(String _title, int _maxLength, String[] _xAxisLabels,
+ String _yAxisTitle, String[] _legendLabels, double[][] _data,
+ int _width, int _height, Color[] _color,
+ Font legendFont, Graphics g) {
double max = maxYAxisScale > 0 ? maxYAxisScale : findMax(_data); // define max scale y axis
try {
/** These controls are already done in StatGraphVisualizer
Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java?rev=1381742&r1=1381741&r2=1381742&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java Thu Sep 6 20:20:30 2012
@@ -262,8 +262,10 @@ public class RespTimeGraphChart extends
this.showGrouping = showGrouping;
}
- private void drawSample(String _title, String[] _xAxisLabels, String _xAxisTitle2,
- String _yAxisTitle, String[] _legendLabels, double[][] _data, int _width, int _height, Color[] _color, Font font, Graphics g) {
+ private void drawSample(String _title, String[] _xAxisLabels,
+ String _yAxisTitle, String[] _legendLabels,
+ double[][] _data, int _width, int _height,
+ Color[] _color, Font legendFont, Graphics g) {
double max = maxYAxisScale > 0 ? maxYAxisScale : findMax(_data); // define max scale y axis
try {
@@ -352,8 +354,8 @@ public class RespTimeGraphChart extends
public void paintComponent(Graphics graphics) {
if (data != null && this.title != null && this.xAxisLabels != null &&
this.yAxisLabel != null && this.yAxisTitle != null) {
- drawSample(this.title, this.xAxisLabels,
- this.xAxisTitle, this.yAxisTitle, this.legendLabels,
+ drawSample(this.title, this.xAxisLabels,
+ this.yAxisTitle, this.legendLabels,
this.data, this.width, this.height, this.color,
this.legendFont, graphics);
}