public final class

LayoutElementProto.Arc.Builder

extends <any>

implements LayoutElementProto.ArcOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.Arc.Builder

Overview

 An arc container. This container will fill itself to a circle, which fits
 inside its parent container, and all of its children will be placed on that
 circle. The fields anchor_angle and anchor_type can be used to specify where
 to draw children within this circle.

 <p> Note that when setting padding for the arc, if padding values (top,
 button, left, and right) are not equal, the largest between them will be used
 to apply padding uniformly to all sides.
 
Protobuf type androidx.wear.protolayout.proto.Arc

Summary

Methods
public LayoutElementProto.Arc.BuilderaddAllContents(java.lang.Iterable<LayoutElementProto.ArcLayoutElement> values)

 Contents of this container.

public LayoutElementProto.Arc.BuilderaddContents(int index, LayoutElementProto.ArcLayoutElement.Builder builderForValue)

 Contents of this container.

public LayoutElementProto.Arc.BuilderaddContents(int index, LayoutElementProto.ArcLayoutElement value)

 Contents of this container.

public LayoutElementProto.Arc.BuilderaddContents(LayoutElementProto.ArcLayoutElement.Builder builderForValue)

 Contents of this container.

public LayoutElementProto.Arc.BuilderaddContents(LayoutElementProto.ArcLayoutElement value)

 Contents of this container.

public LayoutElementProto.Arc.BuilderclearAnchorAngle()

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

public LayoutElementProto.Arc.BuilderclearAnchorType()

 How to align the contents of this container relative to anchor_angle.

public LayoutElementProto.Arc.BuilderclearArcDirection()

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>

public LayoutElementProto.Arc.BuilderclearContents()

 Contents of this container.

public LayoutElementProto.Arc.BuilderclearMaxAngle()

 The target angle that will be used by the layout when expanding child
 elements.

public LayoutElementProto.Arc.BuilderclearModifiers()

 Modifiers for this element.

public LayoutElementProto.Arc.BuilderclearVerticalAlign()

 Vertical alignment of elements within the arc.

public DimensionProto.DegreesPropgetAnchorAngle()

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

public AlignmentProto.ArcAnchorTypePropgetAnchorType()

 How to align the contents of this container relative to anchor_angle.

public LayoutElementProto.ArcDirectionPropgetArcDirection()

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>

public LayoutElementProto.ArcLayoutElementgetContents(int index)

 Contents of this container.

public intgetContentsCount()

 Contents of this container.

public java.util.List<LayoutElementProto.ArcLayoutElement>getContentsList()

 Contents of this container.

public DimensionProto.DegreesPropgetMaxAngle()

 The target angle that will be used by the layout when expanding child
 elements.

public ModifiersProto.ModifiersgetModifiers()

 Modifiers for this element.

public AlignmentProto.VerticalAlignmentPropgetVerticalAlign()

 Vertical alignment of elements within the arc.

public booleanhasAnchorAngle()

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

public booleanhasAnchorType()

 How to align the contents of this container relative to anchor_angle.

public booleanhasArcDirection()

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>

public booleanhasMaxAngle()

 The target angle that will be used by the layout when expanding child
 elements.

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasVerticalAlign()

 Vertical alignment of elements within the arc.

public LayoutElementProto.Arc.BuildermergeAnchorAngle(DimensionProto.DegreesProp value)

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

public LayoutElementProto.Arc.BuildermergeAnchorType(AlignmentProto.ArcAnchorTypeProp value)

 How to align the contents of this container relative to anchor_angle.

public LayoutElementProto.Arc.BuildermergeArcDirection(LayoutElementProto.ArcDirectionProp value)

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>

public LayoutElementProto.Arc.BuildermergeMaxAngle(DimensionProto.DegreesProp value)

 The target angle that will be used by the layout when expanding child
 elements.

public LayoutElementProto.Arc.BuildermergeModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Arc.BuildermergeVerticalAlign(AlignmentProto.VerticalAlignmentProp value)

 Vertical alignment of elements within the arc.

public LayoutElementProto.Arc.BuilderremoveContents(int index)

 Contents of this container.

public LayoutElementProto.Arc.BuildersetAnchorAngle(DimensionProto.DegreesProp.Builder builderForValue)

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

public LayoutElementProto.Arc.BuildersetAnchorAngle(DimensionProto.DegreesProp value)

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

public LayoutElementProto.Arc.BuildersetAnchorType(AlignmentProto.ArcAnchorTypeProp.Builder builderForValue)

 How to align the contents of this container relative to anchor_angle.

public LayoutElementProto.Arc.BuildersetAnchorType(AlignmentProto.ArcAnchorTypeProp value)

 How to align the contents of this container relative to anchor_angle.

public LayoutElementProto.Arc.BuildersetArcDirection(LayoutElementProto.ArcDirectionProp.Builder builderForValue)

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>

public LayoutElementProto.Arc.BuildersetArcDirection(LayoutElementProto.ArcDirectionProp value)

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>

public LayoutElementProto.Arc.BuildersetContents(int index, LayoutElementProto.ArcLayoutElement.Builder builderForValue)

 Contents of this container.

public LayoutElementProto.Arc.BuildersetContents(int index, LayoutElementProto.ArcLayoutElement value)

 Contents of this container.

public LayoutElementProto.Arc.BuildersetMaxAngle(DimensionProto.DegreesProp.Builder builderForValue)

 The target angle that will be used by the layout when expanding child
 elements.

public LayoutElementProto.Arc.BuildersetMaxAngle(DimensionProto.DegreesProp value)

 The target angle that will be used by the layout when expanding child
 elements.

public LayoutElementProto.Arc.BuildersetModifiers(ModifiersProto.Modifiers.Builder builderForValue)

 Modifiers for this element.

public LayoutElementProto.Arc.BuildersetModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Arc.BuildersetVerticalAlign(AlignmentProto.VerticalAlignmentProp.Builder builderForValue)

 Vertical alignment of elements within the arc.

public LayoutElementProto.Arc.BuildersetVerticalAlign(AlignmentProto.VerticalAlignmentProp value)

 Vertical alignment of elements within the arc.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public java.util.List<LayoutElementProto.ArcLayoutElement> getContentsList()

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

public int getContentsCount()

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

public LayoutElementProto.ArcLayoutElement getContents(int index)

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

public LayoutElementProto.Arc.Builder addAllContents(java.lang.Iterable<LayoutElementProto.ArcLayoutElement> values)

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

public LayoutElementProto.Arc.Builder clearContents()

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

public LayoutElementProto.Arc.Builder removeContents(int index)

 Contents of this container.
 
repeated .androidx.wear.protolayout.proto.ArcLayoutElement contents = 1;

public boolean hasAnchorAngle()

 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.

 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).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicAnchorAngle(AngularLayoutConstraint)}
 otherwise {@code build()} fails.
 
.androidx.wear.protolayout.proto.DegreesProp anchor_angle = 2;

public DimensionProto.DegreesProp getAnchorAngle()

 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.

 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).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicAnchorAngle(AngularLayoutConstraint)}
 otherwise {@code build()} fails.
 
.androidx.wear.protolayout.proto.DegreesProp anchor_angle = 2;

 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.

 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).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicAnchorAngle(AngularLayoutConstraint)}
 otherwise {@code build()} fails.
 
.androidx.wear.protolayout.proto.DegreesProp anchor_angle = 2;

 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.

 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).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicAnchorAngle(AngularLayoutConstraint)}
 otherwise {@code build()} fails.
 
.androidx.wear.protolayout.proto.DegreesProp anchor_angle = 2;

 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.

 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).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicAnchorAngle(AngularLayoutConstraint)}
 otherwise {@code build()} fails.
 
.androidx.wear.protolayout.proto.DegreesProp anchor_angle = 2;

public LayoutElementProto.Arc.Builder clearAnchorAngle()

 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.

 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).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicAnchorAngle(AngularLayoutConstraint)}
 otherwise {@code build()} fails.
 
.androidx.wear.protolayout.proto.DegreesProp anchor_angle = 2;

public boolean hasAnchorType()

 How to align the contents of this container relative to anchor_angle. If
 not defined, defaults to ARC_ANCHOR_CENTER.
 
.androidx.wear.protolayout.proto.ArcAnchorTypeProp anchor_type = 3;

public AlignmentProto.ArcAnchorTypeProp getAnchorType()

 How to align the contents of this container relative to anchor_angle. If
 not defined, defaults to ARC_ANCHOR_CENTER.
 
.androidx.wear.protolayout.proto.ArcAnchorTypeProp anchor_type = 3;

 How to align the contents of this container relative to anchor_angle. If
 not defined, defaults to ARC_ANCHOR_CENTER.
 
.androidx.wear.protolayout.proto.ArcAnchorTypeProp anchor_type = 3;

 How to align the contents of this container relative to anchor_angle. If
 not defined, defaults to ARC_ANCHOR_CENTER.
 
.androidx.wear.protolayout.proto.ArcAnchorTypeProp anchor_type = 3;

 How to align the contents of this container relative to anchor_angle. If
 not defined, defaults to ARC_ANCHOR_CENTER.
 
.androidx.wear.protolayout.proto.ArcAnchorTypeProp anchor_type = 3;

public LayoutElementProto.Arc.Builder clearAnchorType()

 How to align the contents of this container relative to anchor_angle. If
 not defined, defaults to ARC_ANCHOR_CENTER.
 
.androidx.wear.protolayout.proto.ArcAnchorTypeProp anchor_type = 3;

public boolean hasVerticalAlign()

 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
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_align = 4;

public AlignmentProto.VerticalAlignmentProp getVerticalAlign()

 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
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_align = 4;

 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
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_align = 4;

 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
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_align = 4;

 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
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_align = 4;

public LayoutElementProto.Arc.Builder clearVerticalAlign()

 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
 
.androidx.wear.protolayout.proto.VerticalAlignmentProp vertical_align = 4;

public boolean hasModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

public ModifiersProto.Modifiers getModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

public LayoutElementProto.Arc.Builder clearModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

public boolean hasMaxAngle()

 The target angle that will be used by the layout when expanding child
 elements. NB a value of zero is interpreted to mean 360 degrees. This
 target may not be achievable if other non-expandable elements bring us past
 this value.
 
.androidx.wear.protolayout.proto.DegreesProp max_angle = 6;

public DimensionProto.DegreesProp getMaxAngle()

 The target angle that will be used by the layout when expanding child
 elements. NB a value of zero is interpreted to mean 360 degrees. This
 target may not be achievable if other non-expandable elements bring us past
 this value.
 
.androidx.wear.protolayout.proto.DegreesProp max_angle = 6;

 The target angle that will be used by the layout when expanding child
 elements. NB a value of zero is interpreted to mean 360 degrees. This
 target may not be achievable if other non-expandable elements bring us past
 this value.
 
.androidx.wear.protolayout.proto.DegreesProp max_angle = 6;

 The target angle that will be used by the layout when expanding child
 elements. NB a value of zero is interpreted to mean 360 degrees. This
 target may not be achievable if other non-expandable elements bring us past
 this value.
 
.androidx.wear.protolayout.proto.DegreesProp max_angle = 6;

 The target angle that will be used by the layout when expanding child
 elements. NB a value of zero is interpreted to mean 360 degrees. This
 target may not be achievable if other non-expandable elements bring us past
 this value.
 
.androidx.wear.protolayout.proto.DegreesProp max_angle = 6;

public LayoutElementProto.Arc.Builder clearMaxAngle()

 The target angle that will be used by the layout when expanding child
 elements. NB a value of zero is interpreted to mean 360 degrees. This
 target may not be achievable if other non-expandable elements bring us past
 this value.
 
.androidx.wear.protolayout.proto.DegreesProp max_angle = 6;

public boolean hasArcDirection()

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>
 
.androidx.wear.protolayout.proto.ArcDirectionProp arc_direction = 7;

public LayoutElementProto.ArcDirectionProp getArcDirection()

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>
 
.androidx.wear.protolayout.proto.ArcDirectionProp arc_direction = 7;

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>
 
.androidx.wear.protolayout.proto.ArcDirectionProp arc_direction = 7;

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>
 
.androidx.wear.protolayout.proto.ArcDirectionProp arc_direction = 7;

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>
 
.androidx.wear.protolayout.proto.ArcDirectionProp arc_direction = 7;

public LayoutElementProto.Arc.Builder clearArcDirection()

 The direction in which child elements are laid out.<setter> If not set,
 defaults to ARC_DIRECTION_NORMAL.</setter>
 
.androidx.wear.protolayout.proto.ArcDirectionProp arc_direction = 7;