public abstract class AbstractChart extends Object implements Chart
Modifier and Type | Field and Description |
---|---|
static Color[] |
COLORS |
static int |
FONT_SIZE |
static Color |
GRID_COLOR |
static Color |
OUTLINE_COLOR |
Constructor and Description |
---|
AbstractChart() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureColors(org.jfree.data.Values2D dataset,
org.jfree.chart.plot.CategoryPlot plot,
String[] colorsHex)
Helper to set color of series.
|
BufferedImage |
generateImage(ChartParameters params)
Generates a JFreeChart chart using a set of parameters
|
protected abstract org.jfree.chart.plot.Plot |
getPlot(ChartParameters params) |
protected boolean |
hasLegend() |
String |
toString() |
public static final int FONT_SIZE
public static final Color OUTLINE_COLOR
public static final Color GRID_COLOR
public AbstractChart()
protected abstract org.jfree.chart.plot.Plot getPlot(ChartParameters params)
protected boolean hasLegend()
public BufferedImage generateImage(ChartParameters params)
generateImage
in interface Chart
params
- the chart parametersprotected void configureColors(org.jfree.data.Values2D dataset, org.jfree.chart.plot.CategoryPlot plot, String[] colorsHex)
Copyright © 2009-2013 SonarSource. All Rights Reserved.