org.sonar.api.charts
Class ChartParameters

java.lang.Object
  extended by org.sonar.api.charts.ChartParameters

Deprecated. in 4.5.1, replaced by Javascript charts

@Deprecated
public class ChartParameters
extends Object

The class to hold parameters to configure a chart

Since:
1.10

Field Summary
static int DEFAULT_HEIGHT
          Deprecated.  
static int DEFAULT_WIDTH
          Deprecated.  
static int MAX_HEIGHT
          Deprecated.  
static int MAX_WIDTH
          Deprecated.  
static String PARAM_BACKGROUND_COLOR
          Deprecated.  
static String PARAM_HEIGHT
          Deprecated.  
static String PARAM_LOCALE
          Deprecated.  
static String PARAM_WIDTH
          Deprecated.  
 
Constructor Summary
ChartParameters(Map<String,String> params)
          Deprecated. Creates a ChartParameter based on a list of parameters
ChartParameters(String queryString)
          Deprecated. Creates a Chartparameter based on a query string with a format key1=value1&key2=value2...
 
Method Summary
 int getHeight()
          Deprecated. Get the chart height
 Locale getLocale()
          Deprecated. Get the Locale
 String getValue(String key)
          Deprecated. Shortcut to getValue with no decoding and no default value
 String getValue(String key, String defaultValue, boolean decode)
          Deprecated. Returns the [decoded or not] value of a param from its key or the default value if id does not exist
 String[] getValues(String key, String delimiter)
          Deprecated. Returns an array of a param values, given its key and the values delimiter
 String[] getValues(String key, String delimiter, boolean decode)
          Deprecated. Returns an array of a param values, given its key and the values delimiter Values can be decoded or not
 int getWidth()
          Deprecated. Get the chart width
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_WIDTH

public static final String PARAM_WIDTH
Deprecated. 
See Also:
Constant Field Values

PARAM_BACKGROUND_COLOR

public static final String PARAM_BACKGROUND_COLOR
Deprecated. 
See Also:
Constant Field Values

PARAM_HEIGHT

public static final String PARAM_HEIGHT
Deprecated. 
See Also:
Constant Field Values

MAX_WIDTH

public static final int MAX_WIDTH
Deprecated. 
See Also:
Constant Field Values

PARAM_LOCALE

public static final String PARAM_LOCALE
Deprecated. 
See Also:
Constant Field Values

MAX_HEIGHT

public static final int MAX_HEIGHT
Deprecated. 
See Also:
Constant Field Values

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
Deprecated. 
See Also:
Constant Field Values

DEFAULT_HEIGHT

public static final int DEFAULT_HEIGHT
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ChartParameters

public ChartParameters(Map<String,String> params)
Deprecated. 
Creates a ChartParameter based on a list of parameters

Parameters:
params - the list of parameters

ChartParameters

public ChartParameters(String queryString)
Deprecated. 
Creates a Chartparameter based on a query string with a format key1=value1&key2=value2...

Parameters:
queryString - string
Method Detail

getValue

public String getValue(String key)
Deprecated. 
Shortcut to getValue with no decoding and no default value

Parameters:
key - the param ket
Returns:
the value of the param

getValue

public String getValue(String key,
                       String defaultValue,
                       boolean decode)
Deprecated. 
Returns the [decoded or not] value of a param from its key or the default value if id does not exist

Parameters:
key - the param ket
defaultValue - the default value if not exist
decode - whther the value should be decoded
Returns:
the value of the param

getValues

public String[] getValues(String key,
                          String delimiter)
Deprecated. 
Returns an array of a param values, given its key and the values delimiter

Parameters:
key - the param key
delimiter - the values delimiter
Returns:
the list of vaalues

getValues

public String[] getValues(String key,
                          String delimiter,
                          boolean decode)
Deprecated. 
Returns an array of a param values, given its key and the values delimiter Values can be decoded or not

Parameters:
key - the param key
delimiter - the values delimiter
decode - whether to decode values
Returns:
the list of vaalues

getWidth

public int getWidth()
Deprecated. 
Get the chart width

Returns:
width

getHeight

public int getHeight()
Deprecated. 
Get the chart height

Returns:
height

getLocale

public Locale getLocale()
Deprecated. 
Get the Locale

Returns:
Locale


Copyright © 2009–2015 SonarSource. All rights reserved.