public final class

ModifiersBuilders.Transformation

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.Transformation

Overview

A modifier to apply transformations to the element. All of these transformations can be animated by setting dynamic values. This modifier is not layout affecting.

Summary

Methods
public static ModifiersBuilders.TransformationfromProto(ModifiersProto.Transformation proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public FingerprintgetFingerprint()

Get the fingerprint for this object, or null if unknown.

public DimensionBuilders.PivotDimensiongetPivotX()

Gets the horizontal location of the point around which the element is rotated and scaled.

public DimensionBuilders.PivotDimensiongetPivotY()

Gets the vertical location of the point around which the element is rotated and scaled.

public DimensionBuilders.DegreesPropgetRotation()

Gets the clockwise Degrees that the element is rotated around the pivot point.

public TypeBuilders.FloatPropgetScaleX()

Gets the scale of this element in the x direction around the pivot point, as a proportion of the element's unscaled width.

public TypeBuilders.FloatPropgetScaleY()

Gets the scale of this element in the y direction around the pivot point, as a proportion of the element's unscaled height.

public DimensionBuilders.DpPropgetTranslationX()

Gets the horizontal offset of this element relative to the location where the element's layout placed it.

public DimensionBuilders.DpPropgetTranslationY()

Gets the vertical offset of this element in addition to the location where the element's layout placed it.

public ModifiersProto.TransformationtoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods

public DimensionBuilders.DpProp getTranslationX()

Gets the horizontal offset of this element relative to the location where the element's layout placed it.

public DimensionBuilders.DpProp getTranslationY()

Gets the vertical offset of this element in addition to the location where the element's layout placed it.

public TypeBuilders.FloatProp getScaleX()

Gets the scale of this element in the x direction around the pivot point, as a proportion of the element's unscaled width.

public TypeBuilders.FloatProp getScaleY()

Gets the scale of this element in the y direction around the pivot point, as a proportion of the element's unscaled height.

public DimensionBuilders.DegreesProp getRotation()

Gets the clockwise Degrees that the element is rotated around the pivot point.

Gets the horizontal location of the point around which the element is rotated and scaled. With type DimensionBuilders.DpProp, it is the offset from the element center; otherwise with type , it is the location proportional to the bounding box width.

Gets the vertical location of the point around which the element is rotated and scaled. With type DimensionBuilders.DpProp, it is the offset from the element center; otherwise with type , it is the location proportional to the bounding box height.

public Fingerprint getFingerprint()

Get the fingerprint for this object, or null if unknown.

Creates a new wrapper instance from the proto.

Returns the internal proto instance.

public java.lang.String toString()