org.sonar.plugins.api.charts
Interface Chart

All Superinterfaces:
Extension, ServerExtension
All Known Implementing Classes:
AbstractChart

public interface Chart
extends ServerExtension

Chart extension point Charts are generated from the URL : http://server/chart?ck=KEY&w=WIDTH&h=HEIGHT with :

All other parameters are stored into the ChartParameters parameter of generateImage().

Example with org.sonar.plugins.core.charts.XRadar chart : http://server/chart?ck=xradar&w=200&h=160&c=777777|F8A036&m=100&g=0.25&l=Eff.,Mai.,Por.,Rel.,Usa.&v=99,96,99,99,94

This extension is generally used when wanted chart can not be generated by JFreeChart Eastwood, a partial Google Chart implementation. Eastwood charts are generated from urls like : http://server/gchart?chtt=Google&cht=p3&chs=254x129&chd=s:Hellobla&chl=May|Jun|Jul|Aug|Sep|Oct&chco=0000ff
More details on http://www.jfree.org/eastwood


Method Summary
 java.awt.image.BufferedImage generateImage(ChartParameters params)
           
 java.lang.String getKey()
           
 

Method Detail

generateImage

java.awt.image.BufferedImage generateImage(ChartParameters params)

getKey

java.lang.String getKey()


Copyright © 2008-2009 SonarSource SA. All Rights Reserved.