Stroke.Builder

public static abstract class Stroke.Builder

Builder for Stroke.

Public Constructors

Public Methods

abstract Stroke
build()
Builds the Stroke instance.
abstract Stroke.Builder
setBrushMode(Stroke.BrushMode brushMode)
Sets the brush mode used for this stroke.
abstract Stroke.Builder
setCompleted(boolean completed)
Sets whether the stroke is complete.
abstract Stroke.Builder
setPoints(List<NormalizedKeypoint> points)
Sets the sequence of normalized key points forming the stroke.

Inherited Methods

Public Constructors

public Builder ()

Public Methods

public abstract Stroke build ()

Builds the Stroke instance.

public abstract Stroke.Builder setBrushMode (Stroke.BrushMode brushMode)

Sets the brush mode used for this stroke.

Parameters
brushMode

public abstract Stroke.Builder setCompleted (boolean completed)

Sets whether the stroke is complete.

Parameters
completed

public abstract Stroke.Builder setPoints (List<NormalizedKeypoint> points)

Sets the sequence of normalized key points forming the stroke.

Parameters
points