# LayoutElementBuilders.DashedArcLine

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.DashedArcLine) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

*** ** * ** ***


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

<br />

*** ** * ** ***

A dashed arc line. It is an arc line made up of arc line segments separated by gaps, and can be placed in an `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.Arc` container.

## Summary

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

| ### 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.DashedArcLine#getArcDirection()()` Gets the direction in which this line is drawn. |
| `@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.DashedArcLine#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.DashedArcLine#getLayoutConstraintsForDynamicLength()()` Gets the bounding constraints for the layout affected by the dynamic value from `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#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.DashedArcLine#getLength()()` Gets the length of this line in degrees, including gaps. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getLinePattern()()` Gets the dashed line pattern which describes how the arc line is segmented by gaps. |
| `@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.DashedArcLine#getModifiers()()` Gets `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Modifiers` for this element. |
| `@https://developer.android.com/reference/androidx/annotation/Dimension(unit = 0) float` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#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.DashedArcLine#toString()()` |

## Public methods

### getArcDirection

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

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

Gets the direction in which this line is drawn.

### getColor

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

```
public @Nullable ColorBuilders.ColorProp getColor()
```

Gets the color of this line.

### getLayoutConstraintsForDynamicLength

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.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.DashedArcLine#getLength()`.

### getLength

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

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

Gets the length of this line in degrees, including gaps.

### getLinePattern

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

```
public @Nullable LayoutElementBuilders.DashedLinePattern getLinePattern()
```

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

### getModifiers

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

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

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

### getThickness

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

```
public @Dimension(unit = 0) float getThickness()
```

Gets the thickness of this line.

### toString

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