# LayoutElementBuilders.ArcLine

Artifact: [androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/LayoutElementBuilders.java+class:androidx.wear.protolayout.LayoutElementBuilders.ArcLine) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 0)
public final class LayoutElementBuilders.ArcLine implements LayoutElementBuilders.ArcLayoutElement
```

<br />

*** ** * ** ***

A line that can be used in an `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.Arc` and renders as a round progress bar.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine`. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcDirectionProp` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getArcDirection()()` Gets defines the direction in which line drawn. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.Brush` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getBrush()()` Gets a brush used to draw this line. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.ColorProp` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getColor()()` Gets the color of this line. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.AngularLayoutConstraint` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getLayoutConstraintsForDynamicLength()()` Gets the bounding constraints for the layout affected by the dynamic value from `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getLength()`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.DegreesProp` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getLength()()` Gets the length of this line, in degrees. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.ArcModifiers` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getModifiers()()` Gets `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Modifiers` for this element. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getStrokeCap()()` Gets the line stroke cap. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.DpProp` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getThickness()()` Gets the thickness of this line. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#toString()()` |

## Public methods

### getArcDirection

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.2.0)

```
public @Nullable LayoutElementBuilders.ArcDirectionProp getArcDirection()
```

Gets defines the direction in which line drawn.

### getBrush

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.1.0)

```
public @Nullable 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()`.

### getColor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable 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.

### getLayoutConstraintsForDynamicLength

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable DimensionBuilders.AngularLayoutConstraint getLayoutConstraintsForDynamicLength()
```

Gets the bounding constraints for the layout affected by the dynamic value from `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getLength()`.

### getLength

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable DimensionBuilders.DegreesProp getLength()
```

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

### getModifiers

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable ModifiersBuilders.ArcModifiers getModifiers()
```

Gets `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Modifiers` for this element.

### getStrokeCap

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable LayoutElementBuilders.StrokeCapProp getStrokeCap()
```

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

### getThickness

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable DimensionBuilders.DpProp getThickness()
```

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

### toString

```
public @NonNull String toString()
```