LayoutElementBuilders.Arc.Builder

public final class LayoutElementBuilders.Arc.Builder implements LayoutElementBuilders.LayoutElement.Builder


Builder for Arc.

Summary

Public methods

@NonNull LayoutElementBuilders.Arc.Builder

Adds one item to contents of this container.

@NonNull LayoutElementBuilders.Arc.Builder

Adds one item to contents of this container.

@Override @NonNull LayoutElementBuilders.Arc

Builds an instance with values accumulated in this Builder.

@NonNull LayoutElementBuilders.Arc.Builder

Sets the angle for the anchor, used with anchor_type to determine where to draw children.

@NonNull LayoutElementBuilders.Arc.Builder

Sets the angle for the anchor, used with anchor_type to determine where to draw children.

@NonNull LayoutElementBuilders.Arc.Builder

Sets how to align the contents of this container relative to anchor_angle.

@NonNull LayoutElementBuilders.Arc.Builder

Sets how to align the contents of this container relative to anchor_angle.

@NonNull LayoutElementBuilders.Arc.Builder

Sets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.

@NonNull LayoutElementBuilders.Arc.Builder

Sets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.

@NonNull LayoutElementBuilders.Arc.Builder

Sets vertical alignment of elements within the arc.

@NonNull LayoutElementBuilders.Arc.Builder

Sets vertical alignment of elements within the arc.

Public methods

addContent

@NonNull
public LayoutElementBuilders.Arc.Builder addContent(@NonNull LayoutElementBuilders.ArcLayoutElement content)

Adds one item to contents of this container.

addContent

@NonNull
public LayoutElementBuilders.Arc.Builder addContent(
    @NonNull LayoutElementBuilders.ArcLayoutElement.Builder contentBuilder
)

Adds one item to contents of this container.

build

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

Builds an instance with values accumulated in this Builder.

setAnchorAngle

@NonNull
public LayoutElementBuilders.Arc.Builder setAnchorAngle(@NonNull DimensionBuilders.DegreesProp anchorAngle)

Sets the angle for the anchor, used with anchor_type to determine where to draw children. Note that 0 degrees is the 12 o clock position on a device, and the angle sweeps clockwise. If not defined, defaults to 0 degrees.

Values do not have to be clamped to the range 0-360; values less than 0 degrees will sweep anti-clockwise (i.e. -90 degrees is equivalent to 270 degrees), and values >360 will be be placed at X mod 360 degrees.

setAnchorAngle

@NonNull
public LayoutElementBuilders.Arc.Builder setAnchorAngle(
    @NonNull DimensionBuilders.DegreesProp.Builder anchorAngleBuilder
)

Sets the angle for the anchor, used with anchor_type to determine where to draw children. Note that 0 degrees is the 12 o clock position on a device, and the angle sweeps clockwise. If not defined, defaults to 0 degrees.

Values do not have to be clamped to the range 0-360; values less than 0 degrees will sweep anti-clockwise (i.e. -90 degrees is equivalent to 270 degrees), and values >360 will be be placed at X mod 360 degrees.

setAnchorType

@NonNull
public LayoutElementBuilders.Arc.Builder setAnchorType(
    @NonNull LayoutElementBuilders.ArcAnchorTypeProp anchorType
)

Sets how to align the contents of this container relative to anchor_angle. If not defined, defaults to ARC_ANCHOR_CENTER.

setAnchorType

@NonNull
public LayoutElementBuilders.Arc.Builder setAnchorType(
    @LayoutElementBuilders.ArcAnchorType @NonNull int anchorType
)

Sets how to align the contents of this container relative to anchor_angle. If not defined, defaults to ARC_ANCHOR_CENTER.

setVerticalAlign

@NonNull
public LayoutElementBuilders.Arc.Builder setVerticalAlign(
    @NonNull LayoutElementBuilders.VerticalAlignmentProp verticalAlign
)

Sets vertical alignment of elements within the arc. If the Arc's thickness is larger than the thickness of the element being drawn, this controls whether the element should be drawn towards the inner or outer edge of the arc, or drawn in the center. If not defined, defaults to VERTICAL_ALIGN_CENTER.

setVerticalAlign

@NonNull
public LayoutElementBuilders.Arc.Builder setVerticalAlign(
    @LayoutElementBuilders.VerticalAlignment @NonNull int verticalAlign
)

Sets vertical alignment of elements within the arc. If the Arc's thickness is larger than the thickness of the element being drawn, this controls whether the element should be drawn towards the inner or outer edge of the arc, or drawn in the center. If not defined, defaults to VERTICAL_ALIGN_CENTER.