|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwiki.rendering.internal.macro.chart.source.AbstractConfigurator org.xwiki.rendering.internal.macro.chart.source.AxisConfigurator
public class AxisConfigurator
A configurator object for the axes. This super class provides basic parameter validation.
Field Summary | |
---|---|
static String |
DOMAIN_AXIS_DATE_FORMAT_PARAM
The name of the domain axis date format parameter. |
static String |
DOMAIN_AXIS_LOWER_PARAM
The lower limit on the domain axis. |
static String |
DOMAIN_AXIS_PARAM
The name of the domain axis parameter. |
static String |
DOMAIN_AXIS_UPPER_PARAM
The upper limit on the domain axis. |
static String |
RANGE_AXIS_DATE_FORMAT_PARAM
The name of the range axis date format parameter. |
static String |
RANGE_AXIS_LOWER_PARAM
The lower limit on the range axis. |
static String |
RANGE_AXIS_PARAM
The name of the range axis parameter. |
static String |
RANGE_AXIS_UPPER_PARAM
The upper limit on the range axis. |
Constructor Summary | |
---|---|
AxisConfigurator(LocaleConfiguration localeConfiguration)
|
Method Summary | |
---|---|
void |
setAxes(PlotType plotType,
SimpleChartModel chartModel)
Set the axes in the chart model. |
boolean |
setParameter(String key,
String value)
Let an implementation set a parameter. |
Methods inherited from class org.xwiki.rendering.internal.macro.chart.source.AbstractConfigurator |
---|
invalidParameterValue, validateParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DOMAIN_AXIS_PARAM
public static final String RANGE_AXIS_PARAM
public static final String DOMAIN_AXIS_DATE_FORMAT_PARAM
public static final String RANGE_AXIS_DATE_FORMAT_PARAM
public static final String DOMAIN_AXIS_LOWER_PARAM
public static final String DOMAIN_AXIS_UPPER_PARAM
public static final String RANGE_AXIS_LOWER_PARAM
public static final String RANGE_AXIS_UPPER_PARAM
Constructor Detail |
---|
public AxisConfigurator(LocaleConfiguration localeConfiguration)
localeConfiguration
- The locale configuration.Method Detail |
---|
public boolean setParameter(String key, String value) throws MacroExecutionException
Configurator
key
- The key of the parameter.value
- The value of the parameter.
true
if the parameter was claimed.
MacroExecutionException
- if the parameter is not supported by the data source.public void setAxes(PlotType plotType, SimpleChartModel chartModel) throws MacroExecutionException
plotType
- The target plot type.chartModel
- The target chart model.
MacroExecutionException
- if the axes are incorrectly configured.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |