LayoutElementBuilders.DashedArcLine.Builder


public final class LayoutElementBuilders.DashedArcLine.Builder


Builder for DashedArcLine.

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 500)
Builder()

Creates an instance of Builder.

Public methods

@NonNull LayoutElementBuilders.DashedArcLine

Builds an instance with the values accumulated in this Builder.

@NonNull LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setArcDirection(int arcDirection)

Sets the direction in which this line is drawn.

@NonNull LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setArcDirection(
    @NonNull LayoutElementBuilders.ArcDirectionProp arcDirection
)

Sets the direction in which this line is drawn.

@NonNull LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setColor(@NonNull ColorBuilders.ColorProp color)

Sets the color of this line.

@NonNull LayoutElementBuilders.DashedArcLine.Builder

Sets the bounding constraints for the layout affected by the dynamic value from setLength.

@NonNull LayoutElementBuilders.DashedArcLine.Builder

Sets the length of this line, in degrees.

@NonNull LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setLinePattern(
    @NonNull LayoutElementBuilders.DashedLinePattern linePattern
)

Sets the dashed line pattern which describes how the arc line is segmented by gaps.

@NonNull LayoutElementBuilders.DashedArcLine.Builder

Sets androidx.wear.protolayout.ModifiersBuilders.Modifiers for this element.

@NonNull LayoutElementBuilders.DashedArcLine.Builder
@RequiresSchemaVersion(major = 1, minor = 500)
setThickness(@Dimension(unit = 0) float thickness)

Sets the thickness of this line.

Public constructors

Builder

Added in 1.3.0-alpha03
@RequiresSchemaVersion(major = 1, minor = 500)
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.3.0-alpha03
public @NonNull LayoutElementBuilders.DashedArcLine build()

Builds an instance with the values accumulated in this Builder.

setArcDirection

Added in 1.3.0-alpha03
@RequiresSchemaVersion(major = 1, minor = 500)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setArcDirection(int arcDirection)

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

setArcDirection

Added in 1.3.0-alpha03
@RequiresSchemaVersion(major = 1, minor = 500)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setArcDirection(
    @NonNull LayoutElementBuilders.ArcDirectionProp arcDirection
)

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

setColor

Added in 1.3.0-alpha03
@RequiresSchemaVersion(major = 1, minor = 500)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setColor(@NonNull ColorBuilders.ColorProp color)

Sets the color of this line.

setLayoutConstraintsForDynamicLength

Added in 1.3.0-alpha03
@RequiresSchemaVersion(major = 1, minor = 500)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setLayoutConstraintsForDynamicLength(
    @NonNull DimensionBuilders.AngularLayoutConstraint angularLayoutConstraint
)

Sets the bounding constraints for the layout affected by the dynamic value from setLength.

setLength

Added in 1.3.0-alpha03
@RequiresSchemaVersion(major = 1, minor = 500)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setLength(@NonNull DimensionBuilders.DegreesProp length)

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

When using a dynamic value, make sure to specify the bounding constraints for the affected layout element through setLayoutConstraintsForDynamicLength (AngularLayoutConstraint) otherwise build() fails.

setLinePattern

Added in 1.3.0-alpha03
@RequiresSchemaVersion(major = 1, minor = 500)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setLinePattern(
    @NonNull LayoutElementBuilders.DashedLinePattern linePattern
)

Sets the dashed line pattern which describes how the arc line is segmented by gaps.

setThickness

Added in 1.3.0-alpha03
@RequiresSchemaVersion(major = 1, minor = 500)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setThickness(@Dimension(unit = 0) float thickness)

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