public final class

LayoutElementProto.Arc

extends <any>

implements LayoutElementProto.ArcOrBuilder

 java.lang.Object

↳<any>

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

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

Fields
public static final intANCHOR_ANGLE_FIELD_NUMBER

public static final intANCHOR_TYPE_FIELD_NUMBER

public static final intARC_DIRECTION_FIELD_NUMBER

public static final intCONTENTS_FIELD_NUMBER

public static final intMAX_ANGLE_FIELD_NUMBER

public static final intMODIFIERS_FIELD_NUMBER

public static final intVERTICAL_ALIGN_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

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 LayoutElementProto.ArcLayoutElementOrBuildergetContentsOrBuilder(int index)

 Contents of this container.

public java.util.List<LayoutElementProto.ArcLayoutElementOrBuilder>getContentsOrBuilderList()

 Contents of this container.

public static LayoutElementProto.ArcgetDefaultInstance()

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 static LayoutElementProto.Arc.BuildernewBuilder()

public static LayoutElementProto.Arc.BuildernewBuilder(LayoutElementProto.Arc prototype)

public static LayoutElementProto.ArcparseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.ArcparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ArcparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ArcparseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.ArcparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ArcparseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.ArcparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ArcparseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.ArcparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ArcparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int CONTENTS_FIELD_NUMBER

public static final int ANCHOR_ANGLE_FIELD_NUMBER

public static final int ANCHOR_TYPE_FIELD_NUMBER

public static final int VERTICAL_ALIGN_FIELD_NUMBER

public static final int MODIFIERS_FIELD_NUMBER

public static final int MAX_ANGLE_FIELD_NUMBER

public static final int ARC_DIRECTION_FIELD_NUMBER

Methods

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

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

public java.util.List<LayoutElementProto.ArcLayoutElementOrBuilder> getContentsOrBuilderList()

 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;

public LayoutElementProto.ArcLayoutElementOrBuilder getContentsOrBuilder(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;

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;

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;

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;

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;

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;

public static LayoutElementProto.Arc parseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.Arc parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Arc parseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.Arc parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Arc parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Arc parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Arc parseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.Arc parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Arc parseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.Arc parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Arc.Builder newBuilder()

public static LayoutElementProto.Arc.Builder newBuilder(LayoutElementProto.Arc prototype)

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static LayoutElementProto.Arc getDefaultInstance()

public static <any> parser()