Class ChartConfigurationUtils

java.lang.Object
overit.geocall.basic.ui.control.ChartConfigurationUtils

public final class ChartConfigurationUtils extends Object
Utility class for chart configuration.
  • Method Details

    • makeRGBColor

      @Nonnull public static String makeRGBColor(@Nonnull Color color)
      Builds the RGB color string from the given color.
      Parameters:
      color - The color to convert.
      Returns:
      The RGB color string.
    • buildFont

      @Nonnull public static Map<String,Object> buildFont(@Nonnull overit.geocall.charts.ChartFont font)
      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.