ch.hortis.sonar.web.charts
Class BaseChart

java.lang.Object
  extended by ch.hortis.sonar.web.charts.BaseChart
Direct Known Subclasses:
BaseChartWeb, CombinedHistoryChart, ComplexityDistributionChart, HistoryChart, HistoryChart2, RulesComplianceChart

public abstract class BaseChart
extends java.lang.Object


Field Summary
static java.awt.Color BASE_COLOR
           
static java.awt.Color BASE_COLOR_LIGHT
           
static int FONT_SIZE
           
static java.awt.Color SERIE_BORDER_COLOR
           
static java.awt.Color SERIE1_COLOR
           
static java.awt.Color SERIE1BIS_COLOR
           
static java.awt.Color SERIE2_COLOR
           
static java.awt.Color SERIE3_COLOR
           
static java.awt.Color SERIE4_COLOR
           
static java.awt.Color SERIE5_COLOR
           
 
Constructor Summary
protected BaseChart(int width, int height)
           
 
Method Summary
protected  void configureChart(JFreeChart chart, boolean displayLegend)
           
protected  void configureChart(JFreeChart chart, RectangleEdge legendPosition)
           
protected  void configureChartTitle(JFreeChart chart, java.lang.String title)
           
 byte[] exportChartAsPNG()
           
 void exportChartAsPNG(java.io.OutputStream out)
           
protected  java.awt.image.BufferedImage getBufferedImage(JFreeChart chart)
           
protected abstract  java.awt.image.BufferedImage getChartImage()
           
protected  java.awt.BasicStroke getDashedStroke()
           
protected  java.awt.BasicStroke getDashedStroke(float width)
           
protected  java.awt.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 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

SERIE1_COLOR

public static final java.awt.Color SERIE1_COLOR

SERIE1BIS_COLOR

public static final java.awt.Color SERIE1BIS_COLOR

SERIE2_COLOR

public static final java.awt.Color SERIE2_COLOR

SERIE3_COLOR

public static final java.awt.Color SERIE3_COLOR

SERIE4_COLOR

public static final java.awt.Color SERIE4_COLOR

SERIE5_COLOR

public static final java.awt.Color SERIE5_COLOR

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 java.awt.Font getFont()

configureChart

protected void configureChart(JFreeChart chart,
                              boolean displayLegend)

configureChart

protected void configureChart(JFreeChart chart,
                              RectangleEdge legendPosition)

configureChartTitle

protected void configureChartTitle(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(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 © 2007-2008 hortis. All Rights Reserved.