|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.graphics.Interpolator
public class Interpolator
| Nested Class Summary | |
|---|---|
static class |
Interpolator.Result
|
| Constructor Summary | |
|---|---|
Interpolator(int valueCount)
|
|
Interpolator(int valueCount,
int frameCount)
|
|
| Method Summary | |
|---|---|
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. |
int |
getKeyFrameCount()
|
int |
getValueCount()
|
void |
reset(int valueCount)
Reset the Interpolator to have the specified number of values and an implicit keyFrame count of 2 (just a start and end). |
void |
reset(int valueCount,
int frameCount)
Reset the Interpolator to have the specified number of values and keyFrames. |
void |
setKeyFrame(int index,
int msec,
float[] values)
Assign the keyFrame (specified by index) a time value and an array of key values (with an implicity blend array of [0, 0, 1, 1] giving linear transition to the next set of key values). |
void |
setKeyFrame(int index,
int msec,
float[] values,
float[] blend)
Assign the keyFrame (specified by index) a time value and an array of key values and blend array. |
void |
setRepeatMirror(float repeatCount,
boolean mirror)
Set a repeat count (which may be fractional) for the interpolator, and whether the interpolator should mirror its repeats. |
Interpolator.Result |
timeToValues(float[] values)
Calls timeToValues(msec, values) with the msec set to now (by calling (int)SystemClock.uptimeMillis().) |
Interpolator.Result |
timeToValues(int msec,
float[] values)
Given a millisecond time value (msec), return the interpolated values and return whether the specified time was within the range of key times (NORMAL), was before the first key time (FREEZE_START) or after the last key time (FREEZE_END). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Interpolator(int valueCount)
public Interpolator(int valueCount,
int frameCount)
| Method Detail |
|---|
public void reset(int valueCount)
public void reset(int valueCount,
int frameCount)
public final int getKeyFrameCount()
public final int getValueCount()
public void setKeyFrame(int index,
int msec,
float[] values)
index - The index of the key frame to assignmsec - The time (in mililiseconds) for this key frame. Based on the
SystemClock.uptimeMillis() clockvalues - Array of values associated with theis key frame
public void setKeyFrame(int index,
int msec,
float[] values,
float[] blend)
index - The index of the key frame to assignmsec - The time (in mililiseconds) for this key frame. Based on the
SystemClock.uptimeMillis() clockvalues - Array of values associated with theis key frameblend - (may be null) Optional array of 4 blend values
public void setRepeatMirror(float repeatCount,
boolean mirror)
public Interpolator.Result timeToValues(float[] values)
public Interpolator.Result timeToValues(int msec,
float[] values)
msec - The time (in milliseconds) used to sample into the
Interpolator. Based on the SystemClock.uptimeMillis() clockvalues - Where to write the computed values (may be NULL).
protected void finalize()
throws Throwable
ObjectNote: The virtual machine assumes that the implementation in class Object is empty.
finalize in class ObjectThrowable - The virtual machine ignores any exceptions which are
thrown during finalization.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||