ModifiersBuilders.Background.Builder


public final class ModifiersBuilders.Background.Builder


Builder for Background

Summary

Public constructors

Creates an instance of Builder.

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 corner properties of this element.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull ModifiersBuilders.Background build()

Builds an instance from accumulated values.

setColor

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Background.Builder setColor(@NonNull ColorBuilders.ColorProp color)

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

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

setCorner

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull 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.