Added in API level 34

Segment


open class Segment
kotlin.Any
   ↳ android.graphics.PathIterator.Segment

This class holds the data for a given segment in a path, as returned by next().

Summary

Public methods
open Float

The weight for the conic operation in this segment.

open FloatArray

The point data for this segment.

open Int

The operation for this segment.

Public methods

getConicWeight

Added in API level 34
open fun getConicWeight(): Float

The weight for the conic operation in this segment. If the verb in this segment is not equal to VERB_CONIC, the weight value is undefined.

Return
Float the weight for the conic operation in this segment, if any

getPoints

Added in API level 34
open fun getPoints(): FloatArray

The point data for this segment. Each two floats represent the data for a single point of that operation. The number of pairs of floats supplied in the resulting array depends on the verb:

Return
FloatArray the point data for this segment This value cannot be null.

getVerb

Added in API level 34
open fun getVerb(): Int

The operation for this segment.

Return
Int the verb which indicates the operation happening in this segment This value cannot be null. Value is android.graphics.PathIterator#VERB_MOVE, android.graphics.PathIterator#VERB_LINE, android.graphics.PathIterator#VERB_QUAD, android.graphics.PathIterator#VERB_CONIC, android.graphics.PathIterator#VERB_CUBIC, android.graphics.PathIterator#VERB_CLOSE, or android.graphics.PathIterator#VERB_DONE