Class ChartBackgroundColor

  • All Implemented Interfaces:
    SmartPluginContainer

    public final class ChartBackgroundColor
    extends Object
    A plugin implementation to set the background color, gradient or pattern of chart.
    If added to defaults, without any configuration, the chart will have a DEFAULT_BACKGROUND_COLOR background color.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • ChartBackgroundColor

        public ChartBackgroundColor()
        Default constructor with DEFAULT_BACKGROUND_COLOR background color.
      • ChartBackgroundColor

        public ChartBackgroundColor​(IsColor color)
        Builds the object with the default background color for all charts.
        Parameters:
        color - background default color for all charts.
      • ChartBackgroundColor

        public ChartBackgroundColor​(String color)
        Builds the object with the default background color for all charts.
        Parameters:
        color - background default color for all charts.
      • ChartBackgroundColor

        public ChartBackgroundColor​(Gradient gradient)
        Builds the object with the default gradient for all charts.
        Parameters:
        gradient - background default gradient for all charts.
      • ChartBackgroundColor

        public ChartBackgroundColor​(Pattern pattern)
        Builds the object with the default pattern for all charts.
        Parameters:
        pattern - background default pattern for all charts.
    • Method Detail

      • getColorAsString

        public String getColorAsString()
        Returns the color as string if it has been set, otherwise null.
        Returns:
        the color as string if it has been set, otherwise null.
      • getColor

        public IsColor getColor()
        Returns the color if it has been set, otherwise null.
        Returns:
        the color if it has been set, otherwise null
      • getGradient

        public Gradient getGradient()
        Returns the gradient if it has been set, otherwise null.
        Returns:
        the gradient if it has been set, otherwise null
      • getPattern

        public Pattern getPattern()
        Returns the pattern if it has been set, otherwise null.
        Returns:
        the pattern if it has been set, otherwise null