java.lang.Object |
↳ |
com.facebook.drawee.drawable.ScalingUtils.AbstractScaleType |
Class Overview
A convenience base class that has some common logic.
Summary
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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.facebook.drawee.drawable.ScalingUtils.ScaleType
abstract
Matrix
|
getTransform(Matrix outTransform, Rect parentBounds, int childWidth, int childHeight, float focusX, float focusY)
Gets transformation matrix based on the scale type.
|
|
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)