Class BannerAppearance.Builder
-
- All Implemented Interfaces:
public final class BannerAppearance.BuilderBuilds a BannerAppearance.
-
-
Constructor Summary
Constructors Constructor Description BannerAppearance.Builder()
-
Method Summary
Modifier and Type Method Description final BannerAppearancebuild()Constructs a BannerAppearance with the specified appearance values. final BannerAppearance.BuildersetBackgroundColor(Integer backgroundColor)Returns Banner appearance configured with background color. final BannerAppearance.BuildersetBorderColor(Integer borderColor)Returns Banner appearance configured with border color. final BannerAppearance.BuildersetBorderWidth(Float borderWidth)Returns Banner appearance configured with banner border width. final BannerAppearance.BuildersetContentPadding(HorizontalOffset contentPadding)Returns Banner appearance configured with horizontal space between banner edge and content. final BannerAppearance.BuildersetImageMargins(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.
-
-
-
-