public interface

LayoutElementProto.ArcLineOrBuilder

 androidx.wear.protolayout.proto.LayoutElementProto.ArcLineOrBuilder

Subclasses:

LayoutElementProto.ArcLine, LayoutElementProto.ArcLine.Builder

Summary

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

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;

Returns:

Whether the length field is set.

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;

Returns:

The length.

public boolean hasThickness()

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

Returns:

Whether the thickness field is set.

public DimensionProto.DpProp getThickness()

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

Returns:

The thickness.

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;

Returns:

Whether the color field is set.

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;

Returns:

The color.

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;

Returns:

Whether the brush field is set.

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;

Returns:

The brush.

public boolean hasModifiers()

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

Returns:

Whether the modifiers field is set.

public ModifiersProto.ArcModifiers getModifiers()

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

Returns:

The modifiers.

public boolean hasAngularLength()

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

Returns:

Whether the angularLength field is set.

public DimensionProto.ArcLineLength getAngularLength()

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

Returns:

The angularLength.

public boolean hasStrokeCap()

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

Returns:

Whether the strokeCap field is set.

public LayoutElementProto.StrokeCapProp getStrokeCap()

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

Returns:

The strokeCap.

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;

Returns:

Whether the arcDirection field is set.

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;

Returns:

The arcDirection.