public final class

LayoutElementBuilders.ArcLine.Builder

extends java.lang.Object

implements LayoutElementBuilders.ArcLayoutElement.Builder

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.ArcLine.Builder

Overview

Builder for LayoutElementBuilders.ArcLine.

Summary

Constructors
publicBuilder()

Creates an instance of LayoutElementBuilders.FontWeightProp.Builder.

Methods
public LayoutElementBuilders.ArcLinebuild()

public LayoutElementBuilders.ArcLine.BuildersetArcDirection(int arcDirection)

Sets the direction in which this line is drawn.

public LayoutElementBuilders.ArcLine.BuildersetArcDirection(LayoutElementBuilders.ArcDirectionProp arcDirection)

Sets the direction in which this line is drawn.

public LayoutElementBuilders.ArcLine.BuildersetBrush(ColorBuilders.Brush brush)

Sets a brush used to draw this line.

public LayoutElementBuilders.ArcLine.BuildersetColor(ColorBuilders.ColorProp color)

Sets the color of this line.

public LayoutElementBuilders.ArcLine.BuildersetLayoutConstraintsForDynamicLength(DimensionBuilders.AngularLayoutConstraint angularLayoutConstraint)

Sets the bounding constraints for the layout affected by the dynamic value from LayoutElementBuilders.ArcLine.Builder.

public LayoutElementBuilders.ArcLine.BuildersetLength(DimensionBuilders.DegreesProp length)

Sets the length of this line, in degrees.

public LayoutElementBuilders.ArcLine.BuildersetModifiers(ModifiersBuilders.ArcModifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

public LayoutElementBuilders.ArcLine.BuildersetStrokeCap(int strokeCap)

Sets the line stroke cap.

public LayoutElementBuilders.ArcLine.BuildersetStrokeCap(LayoutElementBuilders.StrokeCapProp strokeCap)

Sets the line stroke cap.

public LayoutElementBuilders.ArcLine.BuildersetThickness(DimensionBuilders.DpProp thickness)

Sets the thickness of this line.

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

Constructors

public Builder()

Creates an instance of LayoutElementBuilders.FontWeightProp.Builder.

Methods

Sets 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 LayoutElementBuilders.ArcLine.Builder setLayoutConstraintsForDynamicLength(DimensionBuilders.AngularLayoutConstraint angularLayoutConstraint)

Sets the bounding constraints for the layout affected by the dynamic value from LayoutElementBuilders.ArcLine.Builder.

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

Note that this field only supports static values.

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

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

Sets ModifiersBuilders.Modifiers for this element.

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

Sets the direction in which this line is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE.

public LayoutElementBuilders.ArcLine.Builder setArcDirection(int arcDirection)

Sets the direction in which this line is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE.

public LayoutElementBuilders.ArcLine.Builder setStrokeCap(int strokeCap)

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