TypeEstimator<Rect>public class RectEstimator extends Object implements TypeEstimator<Rect>
This class can be used to perform type interpolation between Rect values.
| 构造器 | 说明 |
|---|---|
RectEstimator() |
Construct a Rectestimator that returns a new Rect on every estimate call.
|
RectEstimator(Rect tempRect) |
Constructs a Rectestimator that modifies and returns
localRect
The value returned from RECT should not be cached because it will
change over time as the object is reused on each call. |
public RectEstimator()
public RectEstimator(Rect tempRect)
localRect
The value returned from RECT should not be cached because it will
change over time as the object is reused on each call.tempRect - A Rect to be modified and returned by estimate.public Rect estimate(float prgress, Rect startKeyValue, Rect endKeyValue)
prgress representing the proportion
between the start and end values.estimate 在接口中 TypeEstimator<Rect>prgress - The prgress from the starting to the ending valuesstartKeyValue - The start RectendKeyValue - The end Rectprgress parameter.