org.sonar.server.charts.deprecated
Class BaseChartWeb

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

public abstract class BaseChartWeb
extends BaseChart


Field Summary
static String BAR_CHART_HORIZONTAL
           
static String BAR_CHART_VERTICAL
           
static String BAR_CHART_VERTICAL_CUSTOM
           
static String CHART_PARAM_CATEGORIES
           
static String CHART_PARAM_CATEGORIES_AXISMARGIN_LOWER
           
static String CHART_PARAM_CATEGORIES_AXISMARGIN_UPPER
           
static String CHART_PARAM_CATEGORIES_AXISMARGIN_VISIBLE
           
static String CHART_PARAM_COLORS
           
static String CHART_PARAM_DIMENSIONS
           
static String CHART_PARAM_INSETS
           
static String CHART_PARAM_OUTLINE_RANGEGRIDLINES_VISIBLE
           
static String CHART_PARAM_OUTLINE_VISIBLE
           
static String CHART_PARAM_RANGEAXIS_VISIBLE
           
static String CHART_PARAM_RANGEMAX
           
static String CHART_PARAM_SERIES
           
static String CHART_PARAM_SERIES_AXISMARGIN_LOWER
           
static String CHART_PARAM_SERIES_AXISMARGIN_TICKUNIT
           
static String CHART_PARAM_SERIES_AXISMARGIN_UPPER
           
static String CHART_PARAM_TITLE
           
static String CHART_PARAM_TYPE
           
static String CHART_PARAM_VALUES
           
static double DEFAULT_CATEGORIES_AXISMARGIN
           
static Font DEFAULT_FONT
           
static int DEFAULT_HEIGHT
           
static String DEFAULT_MESSAGE_NODATA
           
static String DEFAULT_NAME_CATEGORY
           
static String DEFAULT_NAME_SERIE
           
static double DEFAULT_SERIES_AXISMARGIN
           
static int DEFAULT_WIDTH
           
protected  org.jfree.chart.JFreeChart jfreechart
           
protected  Map<String,String> params
           
static String PIE_CHART
           
static String SPARKLINES_CHART
           
static String STACKED_BAR_CHART
           
 
Fields inherited from class org.sonar.server.charts.deprecated.BaseChart
BASE_COLOR, BASE_COLOR_LIGHT, COLORS, FONT_SIZE, SERIE_BORDER_COLOR
 
Constructor Summary
BaseChartWeb(Map<String,String> params)
           
 
Method Summary
protected  void applyCommonParams()
           
protected  void configureColors(String colors, org.jfree.chart.renderer.AbstractRenderer renderer)
           
protected  void configureDefaultColors(org.jfree.chart.renderer.AbstractRenderer renderer)
           
protected  void configureDimensions(String dimensions)
           
protected  double convertParamToDouble(String paramValue)
           
protected  double convertParamToDouble(String paramValue, double paramDefault)
           
protected  boolean isParamValueValid(String paramValue)
           
 
Methods inherited from class org.sonar.server.charts.deprecated.BaseChart
configureChart, configureChart, configureChartTitle, exportChartAsPNG, exportChartAsPNG, getBufferedImage, getChartImage, 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
 

Field Detail

BAR_CHART_HORIZONTAL

public static final String BAR_CHART_HORIZONTAL
See Also:
Constant Field Values

BAR_CHART_VERTICAL

public static final String BAR_CHART_VERTICAL
See Also:
Constant Field Values

BAR_CHART_VERTICAL_CUSTOM

public static final String BAR_CHART_VERTICAL_CUSTOM
See Also:
Constant Field Values

STACKED_BAR_CHART

public static final String STACKED_BAR_CHART
See Also:
Constant Field Values

PIE_CHART

public static final String PIE_CHART
See Also:
Constant Field Values

SPARKLINES_CHART

public static final String SPARKLINES_CHART
See Also:
Constant Field Values

CHART_PARAM_TYPE

public static final String CHART_PARAM_TYPE
See Also:
Constant Field Values

CHART_PARAM_VALUES

public static final String CHART_PARAM_VALUES
See Also:
Constant Field Values

CHART_PARAM_COLORS

public static final String CHART_PARAM_COLORS
See Also:
Constant Field Values

CHART_PARAM_RANGEMAX

public static final String CHART_PARAM_RANGEMAX
See Also:
Constant Field Values

CHART_PARAM_TITLE

public static final String CHART_PARAM_TITLE
See Also:
Constant Field Values

CHART_PARAM_DIMENSIONS

public static final String CHART_PARAM_DIMENSIONS
See Also:
Constant Field Values

CHART_PARAM_RANGEAXIS_VISIBLE

public static final String CHART_PARAM_RANGEAXIS_VISIBLE
See Also:
Constant Field Values

CHART_PARAM_CATEGORIES

public static final String CHART_PARAM_CATEGORIES
See Also:
Constant Field Values

CHART_PARAM_CATEGORIES_AXISMARGIN_VISIBLE

public static final String CHART_PARAM_CATEGORIES_AXISMARGIN_VISIBLE
See Also:
Constant Field Values

CHART_PARAM_CATEGORIES_AXISMARGIN_UPPER

public static final String CHART_PARAM_CATEGORIES_AXISMARGIN_UPPER
See Also:
Constant Field Values

CHART_PARAM_CATEGORIES_AXISMARGIN_LOWER

public static final String CHART_PARAM_CATEGORIES_AXISMARGIN_LOWER
See Also:
Constant Field Values

CHART_PARAM_SERIES

public static final String CHART_PARAM_SERIES
See Also:
Constant Field Values

CHART_PARAM_SERIES_AXISMARGIN_UPPER

public static final String CHART_PARAM_SERIES_AXISMARGIN_UPPER
See Also:
Constant Field Values

CHART_PARAM_SERIES_AXISMARGIN_LOWER

public static final String CHART_PARAM_SERIES_AXISMARGIN_LOWER
See Also:
Constant Field Values

CHART_PARAM_SERIES_AXISMARGIN_TICKUNIT

public static final String CHART_PARAM_SERIES_AXISMARGIN_TICKUNIT
See Also:
Constant Field Values

CHART_PARAM_INSETS

public static final String CHART_PARAM_INSETS
See Also:
Constant Field Values

CHART_PARAM_OUTLINE_VISIBLE

public static final String CHART_PARAM_OUTLINE_VISIBLE
See Also:
Constant Field Values

CHART_PARAM_OUTLINE_RANGEGRIDLINES_VISIBLE

public static final String CHART_PARAM_OUTLINE_RANGEGRIDLINES_VISIBLE
See Also:
Constant Field Values

DEFAULT_NAME_CATEGORY

public static final String DEFAULT_NAME_CATEGORY
See Also:
Constant Field Values

DEFAULT_NAME_SERIE

public static final String DEFAULT_NAME_SERIE
See Also:
Constant Field Values

DEFAULT_MESSAGE_NODATA

public static final String DEFAULT_MESSAGE_NODATA
See Also:
Constant Field Values

DEFAULT_CATEGORIES_AXISMARGIN

public static final double DEFAULT_CATEGORIES_AXISMARGIN
See Also:
Constant Field Values

DEFAULT_SERIES_AXISMARGIN

public static final double DEFAULT_SERIES_AXISMARGIN
See Also:
Constant Field Values

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
See Also:
Constant Field Values

DEFAULT_HEIGHT

public static final int DEFAULT_HEIGHT
See Also:
Constant Field Values

DEFAULT_FONT

public static final Font DEFAULT_FONT

jfreechart

protected org.jfree.chart.JFreeChart jfreechart

params

protected Map<String,String> params
Constructor Detail

BaseChartWeb

public BaseChartWeb(Map<String,String> params)
Method Detail

isParamValueValid

protected boolean isParamValueValid(String paramValue)

convertParamToDouble

protected double convertParamToDouble(String paramValue)

configureColors

protected void configureColors(String colors,
                               org.jfree.chart.renderer.AbstractRenderer renderer)

configureDefaultColors

protected void configureDefaultColors(org.jfree.chart.renderer.AbstractRenderer renderer)

convertParamToDouble

protected double convertParamToDouble(String paramValue,
                                      double paramDefault)

configureDimensions

protected void configureDimensions(String dimensions)

applyCommonParams

protected void applyCommonParams()


Copyright © 2009-2012 SonarSource. All Rights Reserved.