public class LineChart extends AbstractChart
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_LABELS
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
LineChart() |
Modifier and Type | Method and Description |
---|---|
Shape[] |
createShapes(int count)
Since we only have 4 shapes, the method will start with the
first shape and keep cycling through the shapes in order.
|
Stroke[] |
createStrokes(int count) |
String |
getURLs() |
Shape |
nextShape()
Return the next shape
|
Stroke |
nextStroke() |
JComponent |
renderChart(List<DataSet> dataset)
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 |
setURLs(String urls) |
getBufferedImage, getCaption, getFormattedXAxis, getHeight, getTitle, getValue, getWidth, getXAxis, getXLabel, getYAxis, getYLabel, setBufferedImage, setCaption, setHeight, setTitle, setWidth, setXAxis, setXLabel, setYAxis, setYLabel
addPropertiesValues, 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, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
public String getURLs()
public void setURLs(String urls)
public JComponent renderChart(List<DataSet> dataset)
AbstractChart
renderChart
in interface ReportChart
renderChart
in class AbstractChart
dataset
- list of DataSetpublic JComponent renderGraphics(double[][] data, String[] xAxisLabels)
public Shape[] createShapes(int count)
count
- public Shape nextShape()
public Stroke[] createStrokes(int count)
count
- public Stroke nextStroke()
Copyright © 1998-2013 Apache Software Foundation. All Rights Reserved.