org.sonar.server.charts.deprecated
Class BaseChart

java.lang.Object
  extended by org.sonar.server.charts.deprecated.BaseChart
Direct Known Subclasses:
BaseChartWeb

public abstract class BaseChart
extends Object


Field Summary
static Color BASE_COLOR
           
static Color BASE_COLOR_LIGHT
           
static Color[] COLORS
           
static int FONT_SIZE
           
static Color SERIE_BORDER_COLOR
           
 
Constructor Summary
protected BaseChart(int width, int height)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_COLOR

public static final Color BASE_COLOR

BASE_COLOR_LIGHT

public static final Color BASE_COLOR_LIGHT

SERIE_BORDER_COLOR

public static final Color SERIE_BORDER_COLOR

COLORS

public static final Color[] COLORS

FONT_SIZE

public static final int FONT_SIZE
See Also:
Constant Field Values
Constructor Detail

BaseChart

protected BaseChart(int width,
                    int height)
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

setWidth

public void setWidth(int width)

setHeight

public void setHeight(int height)

getFont

protected 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,
                                   String title)

getChartImage

protected abstract BufferedImage getChartImage()
                                        throws IOException
Throws:
IOException

getBufferedImage

protected BufferedImage getBufferedImage(org.jfree.chart.JFreeChart chart)

exportChartAsPNG

public void exportChartAsPNG(OutputStream out)
                      throws IOException
Throws:
IOException

exportChartAsPNG

public byte[] exportChartAsPNG()
                        throws IOException
Throws:
IOException

getDashedStroke

protected BasicStroke getDashedStroke()

getDashedStroke

protected BasicStroke getDashedStroke(float width)


Copyright © 2009-2012 SonarSource. All Rights Reserved.