public final class

LayoutElementProto.ArcLine

extends <any>

implements LayoutElementProto.ArcLineOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.ArcLine

Overview

 A line that can be used in an Arc and renders as a round progress bar.
 
Protobuf type androidx.wear.protolayout.proto.ArcLine

Summary

Fields
public static final intANGULAR_LENGTH_FIELD_NUMBER

public static final intARC_DIRECTION_FIELD_NUMBER

public static final intBRUSH_FIELD_NUMBER

public static final intCOLOR_FIELD_NUMBER

public static final intLENGTH_FIELD_NUMBER

public static final intMODIFIERS_FIELD_NUMBER

public static final intSTROKE_CAP_FIELD_NUMBER

public static final intTHICKNESS_FIELD_NUMBER

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

public DimensionProto.ArcLineLengthgetAngularLength()

 The length of this line.

public LayoutElementProto.ArcDirectionPropgetArcDirection()

 The direction in which this line is drawn.<setter> If not set, defaults to
 ARC_DIRECTION_CLOCKWISE.</setter>

public ColorProto.BrushgetBrush()

 A brush used to draw this line.

public ColorProto.ColorPropgetColor()

 The color of this line.

public static LayoutElementProto.ArcLinegetDefaultInstance()

public DimensionProto.DegreesPropgetLength()

 The length of this line, in degrees.

public ModifiersProto.ArcModifiersgetModifiers()

 Modifiers for this element.

public LayoutElementProto.StrokeCapPropgetStrokeCap()

 The line stroke cap.

public DimensionProto.DpPropgetThickness()

 The thickness of this line.

public booleanhasAngularLength()

 The length of this line.

public booleanhasArcDirection()

 The direction in which this line is drawn.<setter> If not set, defaults to
 ARC_DIRECTION_CLOCKWISE.</setter>

public booleanhasBrush()

 A brush used to draw this line.

public booleanhasColor()

 The color of this line.

public booleanhasLength()

 The length of this line, in degrees.

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasStrokeCap()

 The line stroke cap.

public booleanhasThickness()

 The thickness of this line.

public static LayoutElementProto.ArcLine.BuildernewBuilder()

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

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

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

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

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

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

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

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

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

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

public static LayoutElementProto.ArcLineparseFrom(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 LENGTH_FIELD_NUMBER

public static final int THICKNESS_FIELD_NUMBER

public static final int COLOR_FIELD_NUMBER

public static final int BRUSH_FIELD_NUMBER

public static final int MODIFIERS_FIELD_NUMBER

public static final int ANGULAR_LENGTH_FIELD_NUMBER

public static final int STROKE_CAP_FIELD_NUMBER

public static final int ARC_DIRECTION_FIELD_NUMBER

Methods

public boolean hasLength()

 The length of this line, in degrees. If not defined, defaults to 0.

 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
 setLayoutConstraintsForDynamicLength(AngularLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.DegreesProp length = 1;

public DimensionProto.DegreesProp getLength()

 The length of this line, in degrees. If not defined, defaults to 0.

 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
 setLayoutConstraintsForDynamicLength(AngularLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.DegreesProp length = 1;

public boolean hasThickness()

 The thickness of this line. If not defined, defaults to 0.
 
.androidx.wear.protolayout.proto.DpProp thickness = 2;

public DimensionProto.DpProp getThickness()

 The thickness of this line. If not defined, defaults to 0.
 
.androidx.wear.protolayout.proto.DpProp thickness = 2;

public boolean hasColor()

 The color of this line.

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

 If a brush is set, this color will not be used.
 
.androidx.wear.protolayout.proto.ColorProp color = 3;

public ColorProto.ColorProp getColor()

 The color of this line.

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

 If a brush is set, this color will not be used.
 
.androidx.wear.protolayout.proto.ColorProp color = 3;

public boolean hasBrush()

 A brush used to draw this line. If set, the brush will be used instead of
 the color provided in {@code setColor()}.
 
.androidx.wear.protolayout.proto.Brush brush = 7;

public ColorProto.Brush getBrush()

 A brush used to draw this line. If set, the brush will be used instead of
 the color provided in {@code setColor()}.
 
.androidx.wear.protolayout.proto.Brush brush = 7;

public boolean hasModifiers()

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

public ModifiersProto.ArcModifiers getModifiers()

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

public boolean hasAngularLength()

 The length of this line. If not defined, defaults to 0 degrees.
 
.androidx.wear.protolayout.proto.ArcLineLength angular_length = 5;

public DimensionProto.ArcLineLength getAngularLength()

 The length of this line. If not defined, defaults to 0 degrees.
 
.androidx.wear.protolayout.proto.ArcLineLength angular_length = 5;

public boolean hasStrokeCap()

 The line stroke cap. If not defined, defaults to STROKE_CAP_ROUND.
 
.androidx.wear.protolayout.proto.StrokeCapProp stroke_cap = 6;

public LayoutElementProto.StrokeCapProp getStrokeCap()

 The line stroke cap. If not defined, defaults to STROKE_CAP_ROUND.
 
.androidx.wear.protolayout.proto.StrokeCapProp stroke_cap = 6;

public boolean hasArcDirection()

 The direction in which this line is drawn.<setter> If not set, defaults to
 ARC_DIRECTION_CLOCKWISE.</setter>
 
.androidx.wear.protolayout.proto.ArcDirectionProp arc_direction = 8;

public LayoutElementProto.ArcDirectionProp getArcDirection()

 The direction in which this line is drawn.<setter> If not set, defaults to
 ARC_DIRECTION_CLOCKWISE.</setter>
 
.androidx.wear.protolayout.proto.ArcDirectionProp arc_direction = 8;

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

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

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

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

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

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

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

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

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

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

public static LayoutElementProto.ArcLine.Builder newBuilder()

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

public static LayoutElementProto.ArcLine getDefaultInstance()

public static <any> parser()