BrushPaint.TilingTexture.Origin


public final class BrushPaint.TilingTexture.Origin


Specification of the origin point to use for the texture.

Summary

Public fields

static final @NonNull BrushPaint.TilingTexture.Origin

The texture origin is the first input position for the stroke.

static final @NonNull BrushPaint.TilingTexture.Origin

The texture origin is the last input position (including predicted inputs) for the stroke.

static final @NonNull BrushPaint.TilingTexture.Origin

The texture origin is the origin of stroke space, however that happens to be defined for a given stroke.

Public methods

final @NonNull Version

Returns the minimum required Version for this Origin.

@NonNull String

Public fields

FIRST_STROKE_INPUT

public static final @NonNull BrushPaint.TilingTexture.Origin FIRST_STROKE_INPUT

The texture origin is the first input position for the stroke.

LAST_STROKE_INPUT

public static final @NonNull BrushPaint.TilingTexture.Origin LAST_STROKE_INPUT

The texture origin is the last input position (including predicted inputs) for the stroke. Note that this means that the texture origin for an in-progress stroke will move as more inputs are added.

STROKE_SPACE_ORIGIN

public static final @NonNull BrushPaint.TilingTexture.Origin STROKE_SPACE_ORIGIN

The texture origin is the origin of stroke space, however that happens to be defined for a given stroke.

Public methods

calculateMinimumRequiredVersion

Added in 1.1.0-alpha06
public final @NonNull Version calculateMinimumRequiredVersion()

Returns the minimum required Version for this Origin.

By default, decoding a BrushFamily containing an Origin with a minimum required version higher than Version.MAX_SUPPORTED will fail.

toString

public @NonNull String toString()