VectorGroup

class VectorGroup : VectorNode, Iterable<VectorNode>
kotlin.Any
   ↳ androidx.ui.graphics.vector.VectorNode
   ↳ androidx.ui.graphics.vector.VectorGroup

Defines a group of paths or subgroups, plus transformation information. The transformations are defined in the same coordinates as the viewport. The transformations are applied in the order of scale, rotate then translate.

Summary

Public constructors

<init>(name: String = DefaultGroupName, rotation: Float = DefaultRotation, pivotX: Float = DefaultPivotX, pivotY: Float = DefaultPivotY, scaleX: Float = DefaultScaleX, scaleY: Float = DefaultScaleY, translationX: Float = DefaultTranslationX, translationY: Float = DefaultTranslationY, clipPathData: List<PathNode> = EmptyPath)

Defines a group of paths or subgroups, plus transformation information.

Public methods

operator VectorNode
get(index: Int)

Iterator<VectorNode>

Properties

List<PathNode>

Path information used to clip the content within the group

String

Name of the corresponding group

Float

X coordinate of the pivot point to rotate or scale the group

Float

Y coordinate of the pivot point to rotate or scale the group

Float

Rotation of the group in degrees

Float

Scale factor in the X-axis to apply to the group

Float

Scale factor in the Y-axis to apply to the group

Int

Float

Translation in virtual pixels to apply along the x-axis

Float

Translation in virtual pixels to apply along the y-axis

Public constructors

<init>

VectorGroup(
    name: String = DefaultGroupName,
    rotation: Float = DefaultRotation,
    pivotX: Float = DefaultPivotX,
    pivotY: Float = DefaultPivotY,
    scaleX: Float = DefaultScaleX,
    scaleY: Float = DefaultScaleY,
    translationX: Float = DefaultTranslationX,
    translationY: Float = DefaultTranslationY,
    clipPathData: List<PathNode> = EmptyPath)

Defines a group of paths or subgroups, plus transformation information. The transformations are defined in the same coordinates as the viewport. The transformations are applied in the order of scale, rotate then translate.

Public methods

get

operator fun get(index: Int): VectorNode

iterator

fun iterator(): Iterator<VectorNode>

Properties

clipPathData

val clipPathData: List<PathNode>

Path information used to clip the content within the group

name

val name: String

Name of the corresponding group

pivotX

val pivotX: Float

X coordinate of the pivot point to rotate or scale the group

pivotY

val pivotY: Float

Y coordinate of the pivot point to rotate or scale the group

rotation

val rotation: Float

Rotation of the group in degrees

scaleX

val scaleX: Float

Scale factor in the X-axis to apply to the group

scaleY

val scaleY: Float

Scale factor in the Y-axis to apply to the group

size

val size: Int

translationX

val translationX: Float

Translation in virtual pixels to apply along the x-axis

translationY

val translationY: Float

Translation in virtual pixels to apply along the y-axis