public class

ScalingUtils

extends Object
java.lang.Object
   ↳ com.facebook.drawee.drawable.ScalingUtils

Class Overview

Performs scale type calculations.

Summary

Nested Classes
class ScalingUtils.AbstractScaleType A convenience base class that has some common logic. 
class ScalingUtils.InterpolatingScaleType Scale type that interpolates transform of the two underlying scale types. 
interface ScalingUtils.ScaleType Options for scaling the child bounds to the parent bounds. 
interface ScalingUtils.StatefulScaleType Scaletypes that have some internal state and are not static. 
Public Constructors
ScalingUtils()
Public Methods
static Matrix getTransform(Matrix transform, Rect parentBounds, int childWidth, int childHeight, float focusX, float focusY, ScalingUtils.ScaleType scaleType)
This method is deprecated. use ScaleType.getTransform
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ScalingUtils ()

Public Methods

public static Matrix getTransform (Matrix transform, Rect parentBounds, int childWidth, int childHeight, float focusX, float focusY, ScalingUtils.ScaleType scaleType)

This method is deprecated.
use ScaleType.getTransform

Gets transformation based on the scale type.

Parameters
transform out matrix to store result
parentBounds parent bounds
childWidth child width
childHeight child height
focusX focus point x coordinate, relative [0...1]
focusY focus point y coordinate, relative [0...1]
scaleType scale type to be used
Returns
  • reference to the out matrix