| |
|
| java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.testelement.AbstractChart
All known Subclasses: org.apache.jmeter.testelement.LineChart, org.apache.jmeter.testelement.BarChart,
AbstractChart | abstract public class AbstractChart extends AbstractTestElement implements ReportChart(Code) | | The general idea of the chart graphs information for a table.
A chart can only be generated from a specific table, though more
than one chart can be generated from a single table.
author: Peter Lin |
DEFAULT_HEIGHT | final public static int DEFAULT_HEIGHT(Code) | | |
DEFAULT_WIDTH | final public static int DEFAULT_WIDTH(Code) | | |
REPORT_CHART_CAPTION | final public static String REPORT_CHART_CAPTION(Code) | | |
REPORT_CHART_HEIGHT | final public static String REPORT_CHART_HEIGHT(Code) | | |
REPORT_CHART_TITLE | final public static String REPORT_CHART_TITLE(Code) | | |
REPORT_CHART_WIDTH | final public static String REPORT_CHART_WIDTH(Code) | | |
REPORT_CHART_X_AXIS | final public static String REPORT_CHART_X_AXIS(Code) | | |
REPORT_CHART_X_LABEL | final public static String REPORT_CHART_X_LABEL(Code) | | |
REPORT_CHART_Y_AXIS | final public static String REPORT_CHART_Y_AXIS(Code) | | |
REPORT_CHART_Y_LABEL | final public static String REPORT_CHART_Y_LABEL(Code) | | |
X_DATA_DATE_LABEL | final public static String X_DATA_DATE_LABEL(Code) | | |
X_DATA_FILENAME_LABEL | final public static String X_DATA_FILENAME_LABEL(Code) | | |
AbstractChart | public AbstractChart()(Code) | | |
getBufferedImage | public BufferedImage getBufferedImage()(Code) | | this makes it easy to get the bufferedImage
|
getCaption | public String getCaption()(Code) | | The caption is a description for the chart explaining
what the chart means.
|
getHeight | public int getHeight()(Code) | | if the height is not set, the default is returned
|
getTitle | public String getTitle()(Code) | | The title is a the name for the chart. A page link will
be generated using the title. The title will also be
used for a page index.
|
getValue | public double getValue(SamplingStatCalculator stat)(Code) | | convienance method for getting the selected value. Rather than use
Method.invoke(Object,Object[]), it's simpler to just check which
column is selected and call the method directly.
Parameters: stat - |
getWidth | public int getWidth()(Code) | | if no width is set, the default is returned
|
renderChart | abstract public JComponent renderChart(List data)(Code) | | 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
|
setBufferedImage | public void setBufferedImage(BufferedImage img)(Code) | | in case an user wants set the bufferdImage
Parameters: img - |
setCaption | public void setCaption(String caption)(Code) | | The caption is a description for the chart explaining
what the chart means.
Parameters: caption - |
setHeight | public void setHeight(String height)(Code) | | set the height of the graph
Parameters: height - |
setTitle | public void setTitle(String title)(Code) | | The title is a the name for the chart. A page link will
be generated using the title. The title will also be
used for a page index.
Parameters: title - |
setWidth | public void setWidth(String width)(Code) | | set the width of the graph
Parameters: width - |
setXLabel | public void setXLabel(String label)(Code) | | The X data labels should be either the filename, date or some
other series of values
Parameters: label - |
|
|
|