# TargetNode

Artifact: [androidx.ink:ink-brush](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/brush/behavior/TargetNode.kt+class:androidx.ink.brush.behavior.TargetNode) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***


```
public final class TargetNode extends TerminalNode
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/androidx/ink/brush/behavior/Node) |||
|   | ↳ | [androidx.ink.brush.behavior.TerminalNode](https://developer.android.com/reference/androidx/ink/brush/behavior/TerminalNode) ||
|   |   | ↳ | [androidx.ink.brush.behavior.TargetNode](https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode) |

*** ** * ** ***

A `https://developer.android.com/reference/androidx/ink/brush/behavior/TerminalNode` that consumes a single input to affect a scalar brush tip property.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode.Target` List of scalar tip properties that can be modified by a `https://developer.android.com/reference/androidx/ink/brush/BrushBehavior`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#TargetNode(androidx.ink.brush.behavior.TargetNode.Target,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode.Target target, float targetModifierRangeStart, float targetModifierRangeEnd, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode input )` Creates a `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode` that consumes a single input to affect a scalar brush tip property. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#getInput()()` The input node that produces the value used to affect the target. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode.Target` | `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#getTarget()()` The brush tip property to affect. |
| `final float` | `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#getTargetModifierRangeEnd()()` The end of the range of the input value that should affect the target property. |
| `final float` | `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#getTargetModifierRangeStart()()` The start of the range of the input value that should affect the target property. |
| `int` | `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#toString()()` |

### Inherited methods

From [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/androidx/ink/brush/behavior/Node) `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/Version` `https://developer.android.com/reference/androidx/ink/brush/behavior/Node#calculateMinimumRequiredVersion()()`

Returns the minimum required `https://developer.android.com/reference/androidx/ink/brush/Version` for this `https://developer.android.com/reference/androidx/ink/brush/behavior/Node`.
`final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode>` `https://developer.android.com/reference/androidx/ink/brush/behavior/Node#getInputs()()`

The ordered list of inputs that this node directly depends on.

## Public constructors

### TargetNode

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

```
public TargetNode(
    @NonNull TargetNode.Target target,
    float targetModifierRangeStart,
    float targetModifierRangeEnd,
    @NonNull ValueNode input
)
```

Creates a `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode` that consumes a single input to affect a scalar brush tip property.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode.Target target` | the brush tip property to affect |
| `float targetModifierRangeStart` | start of the range of the input value that should affect the target property. Must be finite and distinct from `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#(androidx.ink.brush.behavior.TargetNode.Target,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)` |
| `float targetModifierRangeEnd` | end of the range of the input value that should affect the target property. Must be finite and distinct from `https://developer.android.com/reference/androidx/ink/brush/behavior/TargetNode#(androidx.ink.brush.behavior.TargetNode.Target,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode input` | input node that produces the value used to affect the target |

## Public methods

### equals

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

### getInput

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

```
public final @NonNull ValueNode getInput()
```

The input node that produces the value used to affect the target.

### getTarget

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

```
public final @NonNull TargetNode.Target getTarget()
```

The brush tip property to affect.

### getTargetModifierRangeEnd

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

```
public final float getTargetModifierRangeEnd()
```

The end of the range of the input value that should affect the target property.

### getTargetModifierRangeStart

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

```
public final float getTargetModifierRangeStart()
```

The start of the range of the input value that should affect the target property.

### hashCode

```
public int hashCode()
```

### toString

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