public class BarChart extends AbstractChart
| Modifier and Type | Field and Description |
|---|---|
static String |
REPORT_BAR_CHART_URL |
DEFAULT_HEIGHT, DEFAULT_WIDTH, image, 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_LABELSCOMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
BarChart() |
| Modifier and Type | Method and Description |
|---|---|
double[][] |
convertToDouble(List<SamplingStatCalculator> data)
Convert the data from SamplingStatCalculator to double array of array
|
String |
getURL() |
JComponent |
renderChart(List<DataSet> 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, setBufferedImage, setCaption, setHeight, setTitle, setWidth, setXAxis, setXLabel, setYAxis, setYLabeladdPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertypublic static final String REPORT_BAR_CHART_URL
public String getURL()
public void setURL(String url)
public double[][] convertToDouble(List<SamplingStatCalculator> data)
data - public JComponent renderChart(List<DataSet> data)
AbstractChartrenderChart in interface ReportChartrenderChart in class AbstractChartdata - list of DataSetpublic JComponent renderGraphics(double[][] data, String[] xAxisLabels)
Copyright © 1998-2015 Apache Software Foundation. All Rights Reserved.