Class ChartBackgroundColorOptionsBuilder

    • Method Detail

      • create

        public static ChartBackgroundColorOptionsBuilder create​(IsChart chart)
        Returns new builder instance using the chart global options.
        Parameters:
        chart - chart instance related to the plugin options
        Returns:
        new builder instance
      • setBackgroundColor

        public ChartBackgroundColorOptionsBuilder setBackgroundColor​(String color)
        Sets the background color.
        Parameters:
        color - the background color.
        Returns:
        new builder instance
      • setBackgroundColor

        public ChartBackgroundColorOptionsBuilder setBackgroundColor​(Gradient gradient)
        Sets the background gradient.
        Parameters:
        gradient - the background gradient.
        Returns:
        new builder instance
      • setBackgroundColor

        public ChartBackgroundColorOptionsBuilder setBackgroundColor​(Pattern pattern)
        Sets the background pattern.
        Parameters:
        pattern - the background pattern.
        Returns:
        new builder instance
      • setGlobalCompositeOperation

        public ChartBackgroundColorOptionsBuilder setGlobalCompositeOperation​(GlobalCompositeOperation globalCompositeOperation)
        Sets the type of compositing operation to apply when drawing new shapes.
        Parameters:
        globalCompositeOperation - which of the compositing or blending mode operations to use
        Returns:
        new builder instance