org.sonar.server.charts.jruby
Class TrendsChart

java.lang.Object
  extended by org.sonar.server.charts.deprecated.BaseChart
      extended by org.sonar.server.charts.jruby.TrendsChart

public class TrendsChart
extends BaseChart


Field Summary
 
Fields inherited from class org.sonar.server.charts.deprecated.BaseChart
BASE_COLOR, BASE_COLOR_LIGHT, COLORS, FONT_SIZE, SERIE_BORDER_COLOR
 
Constructor Summary
TrendsChart(int width, int height, String localeKey, boolean displayLegend)
           
 
Method Summary
 void addLabel(Date date, String label)
           
 void addLabel(Date date, String label, boolean lower)
           
 void addMeasure(Double value, Date date, Long serieId)
           
protected  BufferedImage getChartImage()
           
 void initSerie(Long serieId, String legend, boolean isPercent)
           
 
Methods inherited from class org.sonar.server.charts.deprecated.BaseChart
configureChart, configureChart, configureChartTitle, exportChartAsPNG, exportChartAsPNG, getBufferedImage, getDashedStroke, getDashedStroke, getFont, getHeight, getWidth, setHeight, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrendsChart

public TrendsChart(int width,
                   int height,
                   String localeKey,
                   boolean displayLegend)
Method Detail

initSerie

public void initSerie(Long serieId,
                      String legend,
                      boolean isPercent)

addMeasure

public void addMeasure(Double value,
                       Date date,
                       Long serieId)

addLabel

public void addLabel(Date date,
                     String label)
              throws ParseException
Throws:
ParseException

addLabel

public void addLabel(Date date,
                     String label,
                     boolean lower)
              throws ParseException
Throws:
ParseException

getChartImage

protected BufferedImage getChartImage()
                               throws IOException
Specified by:
getChartImage in class BaseChart
Throws:
IOException


Copyright © 2009-2011 SonarSource. All Rights Reserved.