org.sonar.web.charts.deprecated
Class BaseChart
java.lang.Object
org.sonar.web.charts.deprecated.BaseChart
- Direct Known Subclasses:
- BaseChartWeb, ComplexityDistributionChart, TrendsChart
public abstract class BaseChart
- extends java.lang.Object
Constructor Summary |
protected |
BaseChart(int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_COLOR
public static final java.awt.Color BASE_COLOR
BASE_COLOR_LIGHT
public static final java.awt.Color BASE_COLOR_LIGHT
SERIE_BORDER_COLOR
public static final java.awt.Color SERIE_BORDER_COLOR
COLORS
public static final java.awt.Color[] COLORS
FONT_SIZE
public static final int FONT_SIZE
- See Also:
- Constant Field Values
BaseChart
protected BaseChart(int width,
int height)
getWidth
public int getWidth()
getHeight
public int getHeight()
setWidth
public void setWidth(int width)
setHeight
public void setHeight(int height)
getFont
protected java.awt.Font getFont()
configureChart
protected void configureChart(org.jfree.chart.JFreeChart chart,
boolean displayLegend)
configureChart
protected void configureChart(org.jfree.chart.JFreeChart chart,
org.jfree.ui.RectangleEdge legendPosition)
configureChartTitle
protected void configureChartTitle(org.jfree.chart.JFreeChart chart,
java.lang.String title)
getChartImage
protected abstract java.awt.image.BufferedImage getChartImage()
throws java.io.IOException
- Throws:
java.io.IOException
getBufferedImage
protected java.awt.image.BufferedImage getBufferedImage(org.jfree.chart.JFreeChart chart)
exportChartAsPNG
public void exportChartAsPNG(java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
exportChartAsPNG
public byte[] exportChartAsPNG()
throws java.io.IOException
- Throws:
java.io.IOException
getDashedStroke
protected java.awt.BasicStroke getDashedStroke()
getDashedStroke
protected java.awt.BasicStroke getDashedStroke(float width)
Copyright © 2008 SonarSource SA. All Rights Reserved.