LayoutElementBuilders.ArcLine.Builder

public static final class LayoutElementBuilders.ArcLine.Builder
extends Object implements LayoutElementBuilders.ArcLayoutElement.Builder

java.lang.Object
   ↳ androidx.wear.tiles.builders.LayoutElementBuilders.ArcLine.Builder


Builder for LayoutElementBuilders.ArcLine.

Summary

Public methods

LayoutElementBuilders.ArcLine build()

Builds an instance with values accumulated in this Builder.

LayoutElementBuilders.ArcLine.Builder setColor(ColorBuilders.ColorProp color)

Sets the color of this line.

LayoutElementBuilders.ArcLine.Builder setColor(ColorBuilders.ColorProp.Builder colorBuilder)

Sets the color of this line.

LayoutElementBuilders.ArcLine.Builder setLength(DimensionBuilders.DegreesProp.Builder lengthBuilder)

Sets the length of this line, in degrees.

LayoutElementBuilders.ArcLine.Builder setLength(DimensionBuilders.DegreesProp length)

Sets the length of this line, in degrees.

LayoutElementBuilders.ArcLine.Builder setModifiers(ModifiersBuilders.ArcModifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.ArcLine.Builder setModifiers(ModifiersBuilders.ArcModifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

LayoutElementBuilders.ArcLine.Builder setThickness(DimensionBuilders.DpProp thickness)

Sets the thickness of this line.

LayoutElementBuilders.ArcLine.Builder setThickness(DimensionBuilders.DpProp.Builder thicknessBuilder)

Sets the thickness of this line.

Inherited methods

Public methods

build

public LayoutElementBuilders.ArcLine build ()

Builds an instance with values accumulated in this Builder.

Returns
LayoutElementBuilders.ArcLine

setColor

public LayoutElementBuilders.ArcLine.Builder setColor (ColorBuilders.ColorProp color)

Sets the color of this line.

Parameters
color ColorBuilders.ColorProp

Returns
LayoutElementBuilders.ArcLine.Builder

setColor

public LayoutElementBuilders.ArcLine.Builder setColor (ColorBuilders.ColorProp.Builder colorBuilder)

Sets the color of this line.

Parameters
colorBuilder ColorBuilders.ColorProp.Builder

Returns
LayoutElementBuilders.ArcLine.Builder

setLength

public LayoutElementBuilders.ArcLine.Builder setLength (DimensionBuilders.DegreesProp.Builder lengthBuilder)

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

Parameters
lengthBuilder DimensionBuilders.DegreesProp.Builder

Returns
LayoutElementBuilders.ArcLine.Builder

setLength

public LayoutElementBuilders.ArcLine.Builder setLength (DimensionBuilders.DegreesProp length)

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

Parameters
length DimensionBuilders.DegreesProp

Returns
LayoutElementBuilders.ArcLine.Builder

setModifiers

public LayoutElementBuilders.ArcLine.Builder setModifiers (ModifiersBuilders.ArcModifiers modifiers)

Sets ModifiersBuilders.Modifiers for this element.

Parameters
modifiers ModifiersBuilders.ArcModifiers

Returns
LayoutElementBuilders.ArcLine.Builder

setModifiers

public LayoutElementBuilders.ArcLine.Builder setModifiers (ModifiersBuilders.ArcModifiers.Builder modifiersBuilder)

Sets ModifiersBuilders.Modifiers for this element.

Parameters
modifiersBuilder ModifiersBuilders.ArcModifiers.Builder

Returns
LayoutElementBuilders.ArcLine.Builder

setThickness

public LayoutElementBuilders.ArcLine.Builder setThickness (DimensionBuilders.DpProp thickness)

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

Parameters
thickness DimensionBuilders.DpProp

Returns
LayoutElementBuilders.ArcLine.Builder

setThickness

public LayoutElementBuilders.ArcLine.Builder setThickness (DimensionBuilders.DpProp.Builder thicknessBuilder)

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

Parameters
thicknessBuilder DimensionBuilders.DpProp.Builder

Returns
LayoutElementBuilders.ArcLine.Builder