Class SimpleChartJsTooltipConfigBuilder
- java.lang.Object
-
- nl.crashdata.chartjs.data.simple.builder.SimpleChartJsTooltipConfigBuilder
-
- All Implemented Interfaces:
SimpleChartJsBuilder<SimpleChartJsTooltipConfig>
public class SimpleChartJsTooltipConfigBuilder extends Object implements SimpleChartJsBuilder<SimpleChartJsTooltipConfig>
-
-
Constructor Summary
Constructors Constructor Description SimpleChartJsTooltipConfigBuilder()
-
Method Summary
-
-
-
Method Detail
-
withEnabled
public SimpleChartJsTooltipConfigBuilder withEnabled(Boolean enabled)
-
withMode
public SimpleChartJsTooltipConfigBuilder withMode(ChartJsInteractionMode mode)
-
withIntersect
public SimpleChartJsTooltipConfigBuilder withIntersect(Boolean intersect)
-
withPosition
public SimpleChartJsTooltipConfigBuilder withPosition(ChartJsTooltipPositioning position)
-
withBackgroundColor
public SimpleChartJsTooltipConfigBuilder withBackgroundColor(ChartJsRGBAColor backgroundColor)
-
withTitleFontFamily
public SimpleChartJsTooltipConfigBuilder withTitleFontFamily(String titleFontFamily)
-
withTitleFontSize
public SimpleChartJsTooltipConfigBuilder withTitleFontSize(Integer titleFontSize)
-
withTitleFontStyle
public SimpleChartJsTooltipConfigBuilder withTitleFontStyle(String titleFontStyle)
-
withTitleFontColor
public SimpleChartJsTooltipConfigBuilder withTitleFontColor(ChartJsRGBAColor titleFontColor)
-
withTitleSpacing
public SimpleChartJsTooltipConfigBuilder withTitleSpacing(Integer titleSpacing)
-
withTitleMarginBottom
public SimpleChartJsTooltipConfigBuilder withTitleMarginBottom(Integer titleMarginBottom)
-
withBodyFontFamily
public SimpleChartJsTooltipConfigBuilder withBodyFontFamily(String bodyFontFamily)
-
withBodyFontSize
public SimpleChartJsTooltipConfigBuilder withBodyFontSize(Integer bodyFontSize)
-
withBodyFontStyle
public SimpleChartJsTooltipConfigBuilder withBodyFontStyle(String bodyFontStyle)
-
withBodyFontColor
public SimpleChartJsTooltipConfigBuilder withBodyFontColor(ChartJsRGBAColor bodyFontColor)
-
withBodySpacing
public SimpleChartJsTooltipConfigBuilder withBodySpacing(Integer bodySpacing)
-
withFooterFontFamily
public SimpleChartJsTooltipConfigBuilder withFooterFontFamily(String footerFontFamily)
-
withFooterFontSize
public SimpleChartJsTooltipConfigBuilder withFooterFontSize(Integer footerFontSize)
-
withFooterFontStyle
public SimpleChartJsTooltipConfigBuilder withFooterFontStyle(String footerFontStyle)
-
withFooterFontColor
public SimpleChartJsTooltipConfigBuilder withFooterFontColor(ChartJsRGBAColor footerFontColor)
-
withFooterSpacing
public SimpleChartJsTooltipConfigBuilder withFooterSpacing(Integer footerSpacing)
-
withFooterMarginTop
public SimpleChartJsTooltipConfigBuilder withFooterMarginTop(Integer footerMarginTop)
-
withXPadding
public SimpleChartJsTooltipConfigBuilder withXPadding(Integer xPadding)
-
withYPadding
public SimpleChartJsTooltipConfigBuilder withYPadding(Integer yPadding)
-
withCaretPadding
public SimpleChartJsTooltipConfigBuilder withCaretPadding(Integer caretPadding)
-
withCaretSize
public SimpleChartJsTooltipConfigBuilder withCaretSize(Integer caretSize)
-
withCornerRadius
public SimpleChartJsTooltipConfigBuilder withCornerRadius(Integer cornerRadius)
-
withMultiKeyBackground
public SimpleChartJsTooltipConfigBuilder withMultiKeyBackground(ChartJsRGBAColor multiKeyBackground)
-
withDisplayColors
public SimpleChartJsTooltipConfigBuilder withDisplayColors(Boolean displayColors)
-
withBorderColor
public SimpleChartJsTooltipConfigBuilder withBorderColor(ChartJsRGBAColor borderColor)
-
withBorderWidth
public SimpleChartJsTooltipConfigBuilder withBorderWidth(Integer borderWidth)
-
isValid
public boolean isValid()
Description copied from interface:SimpleChartJsBuilderReturnstrueif the state of this builder, including all its delegate builders, is ready to build. "Ready to build" means that this builder, including all its delegate builders, is in such a state thatSimpleChartJsBuilder.build()would return a viable SimpleChartJs configuration object.- Specified by:
isValidin interfaceSimpleChartJsBuilder<SimpleChartJsTooltipConfig>
-
build
public SimpleChartJsTooltipConfig build() throws IllegalStateException
Description copied from interface:SimpleChartJsBuilderBuilds a validCsuch thatbuilder.build() != builder.build().- Specified by:
buildin interfaceSimpleChartJsBuilder<SimpleChartJsTooltipConfig>- Returns:
- a valid
Cif and only ifSimpleChartJsBuilder.isValid()returns true. - Throws:
IllegalStateException- if called whenSimpleChartJsBuilder.isValid()returns false
-
-