public final class

LayoutElementBuilders.ArcLine

extends java.lang.Object

implements LayoutElementBuilders.ArcLayoutElement

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.ArcLine

Overview

A line that can be used in an LayoutElementBuilders.Arc and renders as a round progress bar.

Summary

Methods
public static LayoutElementBuilders.ArcLinefromProto(LayoutElementProto.ArcLine proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public LayoutElementBuilders.ArcDirectionPropgetArcDirection()

Gets defines the direction in which line drawn.

public ColorBuilders.BrushgetBrush()

Gets a brush used to draw this line.

public ColorBuilders.ColorPropgetColor()

Gets the color of this line.

public FingerprintgetFingerprint()

public DimensionBuilders.AngularLayoutConstraintgetLayoutConstraintsForDynamicLength()

Gets the bounding constraints for the layout affected by the dynamic value from LayoutElementBuilders.ArcLine.getLength().

public DimensionBuilders.DegreesPropgetLength()

Gets the length of this line, in degrees.

public ModifiersBuilders.ArcModifiersgetModifiers()

Gets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.StrokeCapPropgetStrokeCap()

Gets the line stroke cap.

public DimensionBuilders.DpPropgetThickness()

Gets the thickness of this line.

public LayoutElementProto.ArcLayoutElementtoArcLayoutElementProto()

public java.lang.StringtoString()

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

Methods

Gets 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 setLayoutConstraintsForDynamicLength(AngularLayoutConstraint) otherwise build() fails.

public DimensionBuilders.DpProp getThickness()

Gets the thickness of this line. If not defined, defaults to 0.

public ColorBuilders.ColorProp getColor()

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

public ColorBuilders.Brush getBrush()

Gets a brush used to draw this line. If set, the brush will be used instead of the color provided in setColor().

public ModifiersBuilders.ArcModifiers getModifiers()

Gets ModifiersBuilders.Modifiers for this element.

Gets the line stroke cap. If not defined, defaults to STROKE_CAP_ROUND.

Gets defines the direction in which line drawn.

public DimensionBuilders.AngularLayoutConstraint getLayoutConstraintsForDynamicLength()

Gets the bounding constraints for the layout affected by the dynamic value from LayoutElementBuilders.ArcLine.getLength().

public Fingerprint getFingerprint()

public static LayoutElementBuilders.ArcLine fromProto(LayoutElementProto.ArcLine proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public LayoutElementProto.ArcLayoutElement toArcLayoutElementProto()

public java.lang.String toString()