# PathPdfObject.PathInput

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/annotation/content/PathPdfObject.kt+class:androidx.pdf.annotation.content.PathPdfObject.PathInput) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
public final class PathPdfObject.PathInput
```

<br />

*** ** * ** ***

Data model for a single path operation and coordinate in a `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject`.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#LINE_TO()` Draws a line from the previous point to the given coordinate. |
| `static final int` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#MOVE_TO()` Starts a new sub-path from the given coordinate. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#PathInput(kotlin.Float,kotlin.Float,kotlin.Int)(float x, float y, int command)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final int` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#getCommand()()` The type of path operation (e.g., `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#MOVE_TO()` or `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#LINE_TO()`). |
| `final float` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#getX()()` The x-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page. |
| `final float` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#getY()()` The y-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page. |
| `int` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#hashCode()()` |

## Constants

### LINE_TO

```
public static final int LINE_TO
```

Draws a line from the previous point to the given coordinate.

### MOVE_TO

```
public static final int MOVE_TO
```

Starts a new sub-path from the given coordinate.

## Public constructors

### PathInput

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

```
public PathInput(float x, float y, int command)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getCommand

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

```
public final int getCommand()
```

The type of path operation (e.g., `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#MOVE_TO()` or `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput#LINE_TO()`).

### getX

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

```
public final float getX()
```

The x-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page.

### getY

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

```
public final float getY()
```

The y-coordinate in PDF points (1/72 of an inch) relative to the top-left of the page.

### hashCode

```
public int hashCode()
```