public final class

ModifiersBuilders.Transformation.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.Transformation.Builder

Overview

Builder for ModifiersBuilders.Transformation

Summary

Constructors
publicBuilder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods
public ModifiersBuilders.Transformationbuild()

Builds an instance from accumulated values.

public ModifiersBuilders.Transformation.BuildersetPivotX(DimensionBuilders.PivotDimension pivotX)

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

public ModifiersBuilders.Transformation.BuildersetPivotY(DimensionBuilders.PivotDimension pivotY)

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

public ModifiersBuilders.Transformation.BuildersetRotation(DimensionBuilders.DegreesProp rotation)

Sets the clockwise degrees that the element is rotated around the pivot point.

public ModifiersBuilders.Transformation.BuildersetScaleX(TypeBuilders.FloatProp scaleX)

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

public ModifiersBuilders.Transformation.BuildersetScaleY(TypeBuilders.FloatProp scaleY)

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

public ModifiersBuilders.Transformation.BuildersetTranslationX(DimensionBuilders.DpProp translationX)

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

public ModifiersBuilders.Transformation.BuildersetTranslationY(DimensionBuilders.DpProp translationY)

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

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

Constructors

public Builder()

Creates an instance of ModifiersBuilders.Clickable.Builder.

Methods

Sets the horizontal offset of this element relative to the location where the element's layout placed it. If not set, defaults to zero.

Sets the vertical offset of this element in addition to the location where the element's layout placed it. If not set, defaults to zero.

Sets the scale of this element in the x direction around the pivot point, as a proportion of the element's unscaled width. If not set, defaults to one.

Sets the scale of this element in the y direction around the pivot point, as a proportion of the element's unscaled height. If not set, defaults to one.

Sets the clockwise degrees that the element is rotated around the pivot point. If not set, defaults to zero.

Sets 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. Dynamic value is supported. If not set, defaults to the element center.

Sets 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. Dynamic value is supported. If not set, defaults to the element center.

Builds an instance from accumulated values.