Class AbstractChartSettingsBuilder<T extends ChartSettingsBuilder>

    • Constructor Detail

      • AbstractChartSettingsBuilder

        public AbstractChartSettingsBuilder()
    • Method Detail

      • width

        public T width​(int width)
        Description copied from interface: ChartSettingsBuilder
        Sets the width of the chart.
        Specified by:
        width in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
        Parameters:
        width - The width of the chart.
        Returns:
        The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
      • height

        public T height​(int height)
        Description copied from interface: ChartSettingsBuilder
        Sets the height of the chart.
        Specified by:
        height in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
        Parameters:
        height - The height of the chart.
        Returns:
        The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
      • margins

        public T margins​(int top,
                         int bottom,
                         int left,
                         int right)
        Description copied from interface: ChartSettingsBuilder
        Set the margins for this chart.
        Specified by:
        margins in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
        Parameters:
        top - The top margin.
        bottom - The bottom margin.
        left - The left margin.
        right - The right margin.
        Returns:
        The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
      • legendOn

        public T legendOn​(String position)
        Description copied from interface: ChartSettingsBuilder
        Turns on the char legend display.
        Specified by:
        legendOn in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
        Parameters:
        position - The display position.
        Returns:
        The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
      • resizableOn

        public T resizableOn​(int maxWidth,
                             int maxHeight)
        Description copied from interface: ChartSettingsBuilder
        Set the chart as resizable, it can change its size from the original one, defined by width and height attributes.
        Specified by:
        resizableOn in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
        Parameters:
        maxWidth - The maximum width value.
        maxHeight - The maximum height value.
        Returns:
        The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
      • resizableOff

        public T resizableOff()
        Description copied from interface: ChartSettingsBuilder
        Set the chart as no resizable, it cannot change its size from the original one, defined by width and height attributes.
        Specified by:
        resizableOff in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
        Returns:
        The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.