ModifiersBuilders.Background.Builder

public final class ModifiersBuilders.Background.Builder


Builder for Background

Summary

Public methods

@NonNull ModifiersBuilders.Background

Builds an instance from accumulated values.

@NonNull ModifiersBuilders.Background.Builder

Sets the background color for this element.

@NonNull ModifiersBuilders.Background.Builder

Sets the background color for this element.

@NonNull ModifiersBuilders.Background.Builder

Sets the corner properties of this element.

@NonNull ModifiersBuilders.Background.Builder

Sets the corner properties of this element.

Public methods

build

@NonNull
public ModifiersBuilders.Background build()

Builds an instance from accumulated values.

setColor

@NonNull
public ModifiersBuilders.Background.Builder setColor(@NonNull ColorBuilders.ColorProp color)

Sets the background color for this element. If not defined, defaults to being transparent.

setColor

@NonNull
public ModifiersBuilders.Background.Builder setColor(@NonNull ColorBuilders.ColorProp.Builder colorBuilder)

Sets the background color for this element. If not defined, defaults to being transparent.

setCorner

@NonNull
public ModifiersBuilders.Background.Builder setCorner(@NonNull ModifiersBuilders.Corner corner)

Sets the corner properties of this element. This only affects the drawing of this element if it has a background color or border. If not defined, defaults to having a square corner.

setCorner

@NonNull
public ModifiersBuilders.Background.Builder setCorner(@NonNull ModifiersBuilders.Corner.Builder cornerBuilder)

Sets the corner properties of this element. This only affects the drawing of this element if it has a background color or border. If not defined, defaults to having a square corner.