public class ChartConfigBuilderImpl implements ChartConfigBuilder
| Constructor and Description |
|---|
ChartConfigBuilderImpl() |
build, disableAnimations, disableBackground, disableSelection, withAnimationDurationMillis, withBackgroundColor, withConfig, withContext, withGridColor, withGridLineWidthInPixels, withLegendBackgroundColor, withLegendTextTitleColor, withNoChartsDrawableId, withPlotLineWidthInPixels, withSelectionSignRadiusInPixels, withStyle, withXAxisConfig, withXAxisConfigBuilder, withYAxisConfig, withYAxisConfigBuilder@NotNull public ChartConfigBuilderImpl withXAxisConfig(@NotNull AxisConfig config)
@NotNull public ChartConfigBuilderImpl withXAxisConfigBuilder(@NotNull AxisConfigBuilder builder)
@NotNull public ChartConfigBuilderImpl withYAxisConfig(@NotNull AxisConfig config)
@NotNull public ChartConfigBuilderImpl withYAxisConfigBuilder(@NotNull AxisConfigBuilder builder)
@NotNull public ChartConfigBuilderImpl disableBackground()
@NotNull public ChartConfigBuilderImpl withBackgroundColor(int color)
Specifies background color to use.
If it's not specified explicitly and withContext,
then R.attr.leonardo_chart_background_color from its theme is used if defined.
color - background color to usewithContext@NotNull public ChartConfigBuilderImpl withGridLineWidthInPixels(int widthInPixels)
Custom grid lines width in pixels to use.
If it's not specified explicitly and a context is provided, the R.attr.leonardo_chart_grid_width is used if defined.
widthInPixels - grid line width in pixels to use@NotNull public ChartConfigBuilderImpl withGridColor(int color)
Specifies color to use for drawing grid and axis.
If it's not specified explicitly and a context is provided, then R.attr.leonardo_chart_grid_color from its theme is used.
color - background color to use@NotNull public ChartConfigBuilderImpl withPlotLineWidthInPixels(int widthInPixels)
Custom plot lines width in pixels to use.
If it's not specified explicitly and a context is provided, the R.attr.leonardo_chart_plot_width is used if defined.
widthInPixels - plot line width in pixels to use@NotNull public ChartConfigBuilderImpl disableSelection()
@NotNull public ChartConfigBuilderImpl withSelectionSignRadiusInPixels(int radiusInPixels)
Custom selection sign radius in pixels to use.
If it's not specified explicitly and a context is provided, the R.attr.leonardo_chart_selection_sign_radius is used if defined.
radiusInPixels - selection sign radius in pixels to use@NotNull public ChartConfigBuilderImpl withLegendTextTitleColor(int color)
Specifies color to use for drawing legend title.
If it's not specified explicitly and a context is provided, then R.attr.leonardo_chart_legend_text_title_color from its theme is used.
color - legend text title color to use@NotNull public ChartConfigBuilderImpl withLegendBackgroundColor(int color)
Specifies color to use for drawing legend background.
If it's not specified explicitly and a context is provided, then R.attr.leonardo_chart_legend_background_color from its theme is used.
color - legend background color to use@NotNull public ChartConfigBuilderImpl disableAnimations()
@NotNull public ChartConfigBuilderImpl withAnimationDurationMillis(int duration)
@NotNull public ChartConfigBuilderImpl withNoChartsDrawableId(@Nullable java.lang.Integer id)
@NotNull public ChartConfigBuilderImpl withStyle(int style)
@NotNull public ChartConfigBuilderImpl withContext(@NotNull android.content.Context context)
Applies default values to various graphic elements obtained from the given context's theme.
context - theme holder which defaults should be applied unless explicitly specified@NotNull public ChartConfig build()
@NotNull public ChartConfigBuilder withConfig(@NotNull ChartConfig config)