LayoutElementBuilders.ArcAdapter

Added in 1.0.0
Deprecated in 1.2.0

public final class LayoutElementBuilders.ArcAdapter implements LayoutElementBuilders.ArcLayoutElement


A container that allows a standard LayoutElement to be added to an Arc.

Summary

Public methods

@Nullable LayoutElementBuilders.LayoutElement

Gets the element to adapt to an Arc.

@Nullable TypeBuilders.BoolProp

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

Public methods

getContent

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable LayoutElementBuilders.LayoutElement getContent()

Gets the element to adapt to an Arc. Intended for testing purposes only.

getRotateContents

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable TypeBuilders.BoolProp getRotateContents()

Gets 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. Intended for testing purposes only.