ModifiersBuilders.Transformation
@RequiresSchemaVersion(major = 1, minor = 400)
public final class ModifiersBuilders.Transformation
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
Nested types |
|---|
public final class ModifiersBuilders.Transformation.BuilderBuilder for |
Public methods |
|
|---|---|
@NonNull DimensionBuilders.PivotDimension |
Gets the horizontal location of the point around which the element is rotated and scaled. |
@NonNull DimensionBuilders.PivotDimension |
Gets the vertical location of the point around which the element is rotated and scaled. |
@NonNull DimensionBuilders.DegreesProp |
Gets the clockwise Degrees that the element is rotated around the pivot point. |
@NonNull TypeBuilders.FloatProp |
Gets the scale of this element in the x direction around the pivot point, as a proportion of the element's unscaled width. |
@NonNull TypeBuilders.FloatProp |
Gets the scale of this element in the y direction around the pivot point, as a proportion of the element's unscaled height. |
@NonNull DimensionBuilders.DpProp |
Gets the horizontal offset of this element relative to the location where the element's layout placed it. |
@NonNull DimensionBuilders.DpProp |
Gets the vertical offset of this element in addition to the location where the element's layout placed it. |
@NonNull String |
toString() |
Public methods
getPivotX
public @NonNull DimensionBuilders.PivotDimension getPivotX()
Gets the horizontal location of the point around which the element is rotated and scaled. With type DpProp, it is the offset from the element center; otherwise with type BoundingBoxRatio, it is the location proportional to the bounding box width.
getPivotY
public @NonNull DimensionBuilders.PivotDimension getPivotY()
Gets the vertical location of the point around which the element is rotated and scaled. With type DpProp, it is the offset from the element center; otherwise with type BoundingBoxRatio, it is the location proportional to the bounding box height.
getRotation
public @NonNull DimensionBuilders.DegreesProp getRotation()
Gets the clockwise Degrees that the element is rotated around the pivot point.
getScaleX
public @NonNull 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.
getScaleY
public @NonNull 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.
getTranslationX
public @NonNull DimensionBuilders.DpProp getTranslationX()
Gets the horizontal offset of this element relative to the location where the element's layout placed it.
getTranslationY
public @NonNull DimensionBuilders.DpProp getTranslationY()
Gets the vertical offset of this element in addition to the location where the element's layout placed it.