kg.apc.charting.elements.GraphPanelChartSumElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmeter-plugins-cmn-jmeter Show documentation
Show all versions of jmeter-plugins-cmn-jmeter Show documentation
Various utility classes to ease development of plugins
package kg.apc.charting.elements;
import kg.apc.charting.AbstractGraphPanelChartElement;
/** {@inheritDoc} */
public class GraphPanelChartSumElement
extends AbstractGraphPanelChartElement
{
private int count = 0;
private double sumValue = 0;
/**
*
* @param yVal
*/
public GraphPanelChartSumElement(double yVal)
{
add(yVal);
}
GraphPanelChartSumElement()
{
}
/**
*
* @param yVal
*/
public void add(double yVal)
{
sumValue += yVal;
count++;
}
/** {@inheritDoc} */
public double getValue()
{
return sumValue;
}
/**
*
* @return
*/
public int getCount()
{
return count;
}
}