LayoutElementBuilders.ArcText.Builder

public final class LayoutElementBuilders.ArcText.Builder implements LayoutElementBuilders.ArcLayoutElement.Builder


Builder for ArcText.

Summary

Public constructors

Public constructors

Builder

public Builder()

Public methods

build

@Override
@NonNull
public @Override LayoutElementBuilders.ArcText build()

Builds an instance with values accumulated in this Builder.

setFontStyle

@NonNull
public LayoutElementBuilders.ArcText.Builder setFontStyle(@NonNull LayoutElementBuilders.FontStyle fontStyle)

Sets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font.

setText

@NonNull
public LayoutElementBuilders.ArcText.Builder setText(@NonNull TypeBuilders.StringProp text)

Sets the text to render.

setText

@NonNull
public LayoutElementBuilders.ArcText.Builder setText(@NonNull String text)

Sets the text to render.