org.apache.jmeter.testelement
Class BarChart
- Cloneable, ReportChart, Serializable, TestElement
The class is reponsible for returning
DEFAULT_HEIGHT , DEFAULT_WIDTH , REPORT_CHART_CAPTION , REPORT_CHART_HEIGHT , REPORT_CHART_TITLE , REPORT_CHART_WIDTH , REPORT_CHART_X_AXIS , REPORT_CHART_X_LABEL , REPORT_CHART_Y_AXIS , REPORT_CHART_Y_LABEL , X_DATA_DATE_LABEL , X_DATA_FILENAME_LABEL , X_LABELS , image |
double[][] | convertToDouble(List data) - Convert the data from SamplingStatCalculator to double array of array
|
String | getURL()
|
JComponent | renderChart(List data) - Subclasses will need to implement the method by doing the following:
1. get the x and y axis
2. filter the table data
3. pass the data to the chart library
4. return the generated chart
|
JComponent | renderGraphics(double[][] data, String[] xAxisLabels)
|
void | setURL(String url)
|
getBufferedImage , getCaption , getFormattedXAxis , getHeight , getTitle , getValue , getWidth , getXAxis , getXLabel , getYAxis , getYLabel , renderChart , setBufferedImage , setCaption , setHeight , setTitle , setWidth , setXAxis , setXLabel , setYAxis , setYLabel |
addProperty , addTestElement , canRemove , clear , clearTemporary , clone , emptyTemporary , equals , getComment , getName , getProperty , getPropertyAsBoolean , getPropertyAsBoolean , getPropertyAsDouble , getPropertyAsFloat , getPropertyAsInt , getPropertyAsInt , getPropertyAsLong , getPropertyAsString , getPropertyAsString , getThreadContext , getThreadName , hashCode , isEnabled , isRunningVersion , isTemporary , logProperties , mergeIn , propertyIterator , recoverRunningVersion , removeProperty , setComment , setName , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setRunningVersion , setTemporary , setThreadContext , setThreadName , traverse , traverseCollection , traverseMap , traverseProperty |
REPORT_BAR_CHART_URL
public static final String REPORT_BAR_CHART_URL
BarChart
public BarChart()
convertToDouble
public double[][] convertToDouble(List data)
Convert the data from SamplingStatCalculator to double array of array
getURL
public String getURL()
renderChart
public JComponent renderChart(List data)
Subclasses will need to implement the method by doing the following:
1. get the x and y axis
2. filter the table data
3. pass the data to the chart library
4. return the generated chart
- renderChart in interface ReportChart
- renderChart in interface AbstractChart
renderGraphics
public JComponent renderGraphics(double[][] data,
String[] xAxisLabels)
setURL
public void setURL(String url)
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.