{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

VectorGroup

public final class VectorGroup extends VectorNode implements Iterable

java.lang.Object
   ↳ androidx.compose.ui.graphics.vector.VectorNode
     ↳ androidx.compose.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.

This is constructed as part of the result of ImageVector.Builder construction

Summary

Public methods

boolean
equals(Object other)
final @NonNull VectorNode
get(int index)
final @NonNull List<@NonNull PathNode>

Path information used to clip the content within the group

final @NonNull String

Name of the corresponding group

final float

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

final float

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

final float

Rotation of the group in degrees

final float

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

final float

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

final int
final float

Translation in virtual pixels to apply along the x-axis

final float

Translation in virtual pixels to apply along the y-axis

int
@NonNull Iterator<@NonNull VectorNode>

Public methods

equals

public boolean equals(Object other)

get

public final @NonNull VectorNode get(int index)

getClipPathData

public final @NonNull List<@NonNull PathNodegetClipPathData()

Path information used to clip the content within the group

getName

public final @NonNull String getName()

Name of the corresponding group

getPivotX

public final float getPivotX()

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

getPivotY

public final float getPivotY()

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

getRotation

public final float getRotation()

Rotation of the group in degrees

getScaleX

public final float getScaleX()

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

getScaleY

public final float getScaleY()

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

getSize

public final int getSize()

getTranslationX

public final float getTranslationX()

Translation in virtual pixels to apply along the x-axis

getTranslationY

public final float getTranslationY()

Translation in virtual pixels to apply along the y-axis

hashCode

public int hashCode()

iterator

public @NonNull Iterator<@NonNull VectorNodeiterator()