@Deprecated public class ChartParameters extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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...
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final String PARAM_WIDTH
public static final String PARAM_BACKGROUND_COLOR
public static final String PARAM_HEIGHT
public static final int MAX_WIDTH
public static final String PARAM_LOCALE
public static final int MAX_HEIGHT
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public ChartParameters(Map<String,String> params)
params
- the list of parameterspublic ChartParameters(String queryString)
queryString
- stringpublic String getValue(String key)
key
- the param ketpublic String getValue(String key, String defaultValue, boolean decode)
key
- the param ketdefaultValue
- the default value if not existdecode
- whther the value should be decodedpublic String[] getValues(String key, String delimiter)
key
- the param keydelimiter
- the values delimiterpublic String[] getValues(String key, String delimiter, boolean decode)
key
- the param keydelimiter
- the values delimiterdecode
- whether to decode valuespublic int getWidth()
public int getHeight()
Copyright © 2009–2015 SonarSource. All rights reserved.