public static abstract class

ScalingUtils.AbstractScaleType

extends Object
implements ScalingUtils.ScaleType
java.lang.Object
   ↳ com.facebook.drawee.drawable.ScalingUtils.AbstractScaleType

Class Overview

A convenience base class that has some common logic.

Summary

[Expand]
Inherited Fields
From interface com.facebook.drawee.drawable.ScalingUtils.ScaleType
Public Constructors
AbstractScaleType()
Public Methods
Matrix getTransform(Matrix outTransform, Rect parentRect, int childWidth, int childHeight, float focusX, float focusY)
Gets transformation matrix based on the scale type.
abstract void getTransformImpl(Matrix outTransform, Rect parentRect, int childWidth, int childHeight, float focusX, float focusY, float scaleX, float scaleY)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.drawee.drawable.ScalingUtils.ScaleType

Public Constructors

public AbstractScaleType ()

Public Methods

public Matrix getTransform (Matrix outTransform, Rect parentRect, int childWidth, int childHeight, float focusX, float focusY)

Gets transformation matrix based on the scale type.

Parameters
outTransform out matrix to store result
parentRect parent bounds
childWidth child width
childHeight child height
focusX focus point x coordinate, relative [0...1]
focusY focus point y coordinate, relative [0...1]
Returns
  • same reference to the out matrix for convenience

public abstract void getTransformImpl (Matrix outTransform, Rect parentRect, int childWidth, int childHeight, float focusX, float focusY, float scaleX, float scaleY)