Package overit.geocall.basic.ui.control
Class ChartConfigurationUtils
java.lang.Object
overit.geocall.basic.ui.control.ChartConfigurationUtils
Utility class for chart configuration.
-
Method Summary
Modifier and TypeMethodDescriptionbuildFont(overit.geocall.charts.ChartFont font) Builds the font configuration for the chart.buildLegendOptions(boolean showLegend, overit.geocall.charts.ChartFont legendFont, overit.geocall.charts.ChartLegendBox legendBox, double legendItemSize) Builds the legend configuration for the chart.static StringmakeRGBColor(Color color) Builds the RGB color string from the given color.
-
Method Details
-
makeRGBColor
Builds the RGB color string from the given color.- Parameters:
color- The color to convert.- Returns:
- The RGB color string.
-
buildFont
Builds the font configuration for the chart.- Parameters:
font- The font to configure.- Returns:
- The font configuration.
-
buildLegendOptions
@Nonnull public static Map<String,Object> buildLegendOptions(boolean showLegend, overit.geocall.charts.ChartFont legendFont, overit.geocall.charts.ChartLegendBox legendBox, double legendItemSize) Builds the legend configuration for the chart.- Parameters:
showLegend- Whether to show the legend.legendFont- The font to use for the legend.legendBox- The legend box.legendItemSize- The size of the legend items.- Returns:
- The legend configuration.
-