public interface

LayoutElementProto.ArcOrBuilder

 androidx.wear.protolayout.proto.LayoutElementProto.ArcOrBuilder

Subclasses:

LayoutElementProto.Arc, LayoutElementProto.Arc.Builder

Summary

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

Methods

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

 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;

public int getContentsCount()

 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;

Returns:

Whether the anchorAngle field is set.

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;

Returns:

The anchorAngle.

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;

Returns:

Whether the anchorType field is set.

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;

Returns:

The anchorType.

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;

Returns:

Whether the verticalAlign field is set.

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;

Returns:

The verticalAlign.

public boolean hasModifiers()

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

Returns:

Whether the modifiers field is set.

public ModifiersProto.Modifiers getModifiers()

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

Returns:

The modifiers.

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;

Returns:

Whether the maxAngle field is set.

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;

Returns:

The maxAngle.

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;

Returns:

Whether the arcDirection field is set.

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;

Returns:

The arcDirection.