LayoutElementBuilders.ArcAdapter.Builder

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


Builder for ArcAdapter.

Summary

Public constructors

Public methods

@Override @NonNull LayoutElementBuilders.ArcAdapter

Builds an instance with values accumulated in this Builder.

@NonNull LayoutElementBuilders.ArcAdapter.Builder

Sets the element to adapt to an Arc.

@NonNull LayoutElementBuilders.ArcAdapter.Builder

Sets whether this adapter's contents should be rotated, according to its position in the arc or not.

@NonNull LayoutElementBuilders.ArcAdapter.Builder
setRotateContents(@NonNull boolean rotateContents)

Sets whether this adapter's contents should be rotated, according to its position in the arc or not.

Public constructors

Builder

public Builder()

Public methods

build

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

Builds an instance with values accumulated in this Builder.

setContent

@NonNull
public LayoutElementBuilders.ArcAdapter.Builder setContent(@NonNull LayoutElementBuilders.LayoutElement content)

Sets the element to adapt to an Arc.

setRotateContents

@NonNull
public LayoutElementBuilders.ArcAdapter.Builder setRotateContents(@NonNull TypeBuilders.BoolProp rotateContents)

Sets whether this adapter's contents should be rotated, according to its position in the arc or not. As an example, assume that an Image has been added to the arc, and ends up at the 3 o clock position. If rotate_contents = true, the image will be placed at the 3 o clock position, and will be rotated clockwise through 90 degrees. If rotate_contents = false, the image will be placed at the 3 o clock position, but itself will not be rotated. If not defined, defaults to false.

setRotateContents

@NonNull
public LayoutElementBuilders.ArcAdapter.Builder setRotateContents(@NonNull boolean rotateContents)

Sets whether this adapter's contents should be rotated, according to its position in the arc or not. As an example, assume that an Image has been added to the arc, and ends up at the 3 o clock position. If rotate_contents = true, the image will be placed at the 3 o clock position, and will be rotated clockwise through 90 degrees. If rotate_contents = false, the image will be placed at the 3 o clock position, but itself will not be rotated. If not defined, defaults to false.