org.sonar.web.charts.jruby
Class TrendsChart

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

public class TrendsChart
extends BaseChart


Field Summary
 
Fields inherited from class org.sonar.web.charts.deprecated.BaseChart
BASE_COLOR, BASE_COLOR_LIGHT, COLORS, FONT_SIZE, SERIE_BORDER_COLOR
 
Constructor Summary
TrendsChart(int width, int height)
           
 
Method Summary
 void addLabel(java.util.Date date, java.lang.String label)
           
 void addMeasure(java.lang.Double value, java.util.Date date, java.lang.Long id)
           
protected  java.awt.image.BufferedImage getChartImage()
           
 void initLegend(java.lang.Long id, java.lang.String legend, boolean isPercent)
           
 
Methods inherited from class org.sonar.web.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)
Method Detail

initLegend

public void initLegend(java.lang.Long id,
                       java.lang.String legend,
                       boolean isPercent)

addMeasure

public void addMeasure(java.lang.Double value,
                       java.util.Date date,
                       java.lang.Long id)

addLabel

public void addLabel(java.util.Date date,
                     java.lang.String label)
              throws java.text.ParseException
Throws:
java.text.ParseException

getChartImage

protected java.awt.image.BufferedImage getChartImage()
                                              throws java.io.IOException
Specified by:
getChartImage in class BaseChart
Throws:
java.io.IOException


Copyright © 2008 SonarSource SA. All Rights Reserved.