public abstract class BaseChart extends Object
Modifier and Type | Field and Description |
---|---|
static Color |
BASE_COLOR |
static Color |
BASE_COLOR_LIGHT |
static Color[] |
COLORS |
static int |
FONT_SIZE |
static Color |
SERIE_BORDER_COLOR |
Modifier | Constructor and Description |
---|---|
protected |
BaseChart(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureChart(org.jfree.chart.JFreeChart chart,
boolean displayLegend) |
protected void |
configureChart(org.jfree.chart.JFreeChart chart,
org.jfree.ui.RectangleEdge legendPosition) |
protected void |
configureChartTitle(org.jfree.chart.JFreeChart chart,
String title) |
byte[] |
exportChartAsPNG() |
void |
exportChartAsPNG(OutputStream out) |
protected BufferedImage |
getBufferedImage(org.jfree.chart.JFreeChart chart) |
protected abstract BufferedImage |
getChartImage() |
protected BasicStroke |
getDashedStroke() |
protected BasicStroke |
getDashedStroke(float width) |
protected Font |
getFont() |
int |
getHeight() |
int |
getWidth() |
void |
setHeight(int height) |
void |
setWidth(int width) |
public static final Color BASE_COLOR
public static final Color BASE_COLOR_LIGHT
public static final Color SERIE_BORDER_COLOR
public static final int FONT_SIZE
protected BaseChart(int width, int height)
public int getWidth()
public int getHeight()
public void setWidth(int width)
public void setHeight(int height)
protected void configureChart(org.jfree.chart.JFreeChart chart, boolean displayLegend)
protected void configureChart(org.jfree.chart.JFreeChart chart, org.jfree.ui.RectangleEdge legendPosition)
protected void configureChartTitle(org.jfree.chart.JFreeChart chart, String title)
protected abstract BufferedImage getChartImage() throws IOException
IOException
protected BufferedImage getBufferedImage(org.jfree.chart.JFreeChart chart)
public void exportChartAsPNG(OutputStream out) throws IOException
IOException
public byte[] exportChartAsPNG() throws IOException
IOException
protected BasicStroke getDashedStroke()
protected BasicStroke getDashedStroke(float width)
Copyright © 2009-2012 SonarSource. All Rights Reserved.