-
- All Implemented Interfaces:
public final class BannerAppearance.Builder
Builds a BannerAppearance.
-
-
Constructor Summary
Constructors Constructor Description BannerAppearance.Builder()
-
Method Summary
Modifier and Type Method Description final BannerAppearance
build()
Constructs a BannerAppearance with the specified appearance values. final BannerAppearance.Builder
setBackgroundColor(Integer backgroundColor)
Returns Banner appearance configured with background color. final BannerAppearance.Builder
setBorderColor(Integer borderColor)
Returns Banner appearance configured with border color. final BannerAppearance.Builder
setBorderWidth(Float borderWidth)
Returns Banner appearance configured with banner border width. final BannerAppearance.Builder
setContentPadding(HorizontalOffset contentPadding)
Returns Banner appearance configured with horizontal space between banner edge and content. final BannerAppearance.Builder
setImageMargins(HorizontalOffset imageMargins)
Returns Banner appearance configured with horizontal image margins. -
-
Method Detail
-
build
final BannerAppearance build()
Constructs a BannerAppearance with the specified appearance values.
-
setBackgroundColor
final BannerAppearance.Builder setBackgroundColor(Integer backgroundColor)
Returns Banner appearance configured with background color.
- Parameters:
backgroundColor
- Banner background color.
-
setBorderColor
final BannerAppearance.Builder setBorderColor(Integer borderColor)
Returns Banner appearance configured with border color.
- Parameters:
borderColor
- Banner border color.
-
setBorderWidth
final BannerAppearance.Builder setBorderWidth(Float borderWidth)
Returns Banner appearance configured with banner border width.
- Parameters:
borderWidth
- Banner border width.
-
setContentPadding
final BannerAppearance.Builder setContentPadding(HorizontalOffset contentPadding)
Returns Banner appearance configured with horizontal space between banner edge and content.
- Parameters:
contentPadding
- Horizontal space between banner edge and content.
-
setImageMargins
final BannerAppearance.Builder setImageMargins(HorizontalOffset imageMargins)
Returns Banner appearance configured with horizontal image margins. Image margins are ignored for big images which are located below text block and stretched to match banner width.
- Parameters:
imageMargins
- Horizontal image margins: left margin determines image offset from left content padding, right margin determines offset between image and text block.
-
-
-
-