Package overit.geocall.basic.ui.control
Class ChartPieConfigurationBuilder
java.lang.Object
overit.geocall.basic.ui.control.ChartPieConfigurationBuilder
@Component
@Scope(value="prototype",
proxyMode=NO)
public class ChartPieConfigurationBuilder
extends Object
This class is used to build the configuration of the pie chart.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of ChartPieConfigurationBuilder. -
Method Summary
Modifier and TypeMethodDescriptionBuilds the JSON configuration for the chart.protected JackMappersetFixedSize(boolean fixedSize) Sets the fixed size flag.setItemLabelBox(overit.geocall.charts.ChartLabelBox itemLabelBox) Sets the label box used for the labels of the elements of the chart.setItemLabelFont(overit.geocall.charts.ChartFont itemLabelFont) Sets the font used for the labels of the elements of the chart.setItemLabelFormat(String itemLabelFormat) Sets the format used for the labels of the elements of the chart.setItemLabels(List<String> itemLabels) Sets the labels of the elements of the chart.setLegendBox(overit.geocall.charts.ChartLegendBox legendBox) Sets the legend box, it supports only the positioningsetLegendFont(overit.geocall.charts.ChartFont legendFont) Sets the legend font.setLegendItemSize(double legendItemSize) Sets the legend item size.Sets the ring size, if greater than 0, the chart will be a doughnut chart.setSerie(overit.geocall.charts.Serie serie) Sets the serie.setSerieColors(List<Color> serieColors) Sets the serie colors.setShowLegend(boolean showLegend) Sets the show legend flag.
-
Constructor Details
-
ChartPieConfigurationBuilder
Creates a new instance of ChartPieConfigurationBuilder.- Parameters:
mapper- The mapper used to serialize the configuration.
-
-
Method Details
-
setFixedSize
Sets the fixed size flag.- Parameters:
fixedSize- The fixed size flag.- Returns:
- This object.
-
setRing
Sets the ring size, if greater than 0, the chart will be a doughnut chart.- Parameters:
ring- The ring size.- Returns:
- This object.
-
setShowLegend
Sets the show legend flag.- Parameters:
showLegend- The show legend flag.- Returns:
- This object.
-
setSerie
Sets the serie.- Parameters:
serie- The serie.- Returns:
- This object.
-
setSerieColors
Sets the serie colors.- Parameters:
serieColors- The serie colors.- Returns:
- This object.
-
setLegendFont
Sets the legend font.- Parameters:
legendFont- The legend font.- Returns:
- This object.
-
setLegendBox
Sets the legend box, it supports only the positioning- Parameters:
legendBox- The legend box.- Returns:
- This object.
-
setLegendItemSize
Sets the legend item size.- Parameters:
legendItemSize- The legend item size.- Returns:
- This object.
-
setItemLabelFormat
Sets the format used for the labels of the elements of the chart.- Parameters:
itemLabelFormat- The format used for the labels of the elements of the chart- Returns:
- This object.
-
setItemLabels
Sets the labels of the elements of the chart.- Parameters:
itemLabels- The labels of the elements of the chart- Returns:
- This object.
-
setItemLabelFont
Sets the font used for the labels of the elements of the chart.- Parameters:
itemLabelFont- The font used for the labels of the elements of the chart- Returns:
- This object.
-
setItemLabelBox
public ChartPieConfigurationBuilder setItemLabelBox(overit.geocall.charts.ChartLabelBox itemLabelBox) Sets the label box used for the labels of the elements of the chart.- Parameters:
itemLabelBox- The label box used for the labels of the elements of the chart- Returns:
- This object.
-
getMapper
-
buildJsonConfiguration
Builds the JSON configuration for the chart.- Returns:
- The JSON configuration for the chart.
-