Class KeyframeInterpolator<IN extends AbstractKeyframe<OUT>,OUT>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<Float,IN>
com.ticxo.modelengine.api.animation.interpolator.KeyframeInterpolator<IN,OUT>
- All Implemented Interfaces:
Serializable,Cloneable,Map<Float,,IN> NavigableMap<Float,,IN> SortedMap<Float,IN>
- Direct Known Subclasses:
PrePostInterpolator,ScriptInterpolator
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classKeyframeInterpolator.Context<IN extends AbstractKeyframe<OUT>,OUT> static interfaceNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetHigherKey(float time) floatgetLowerKey(float time) interpolate(IAnimationProperty property) setDefaultValue(Supplier<OUT> value) setInterpolateFunc(KeyframeInterpolator.Interpolation<IN, OUT> interpolateFunc) Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
-
Field Details
-
interpolateFunc
-
defaultValue
-
-
Constructor Details
-
KeyframeInterpolator
public KeyframeInterpolator()
-
-
Method Details
-
setInterpolateFunc
public KeyframeInterpolator<IN,OUT> setInterpolateFunc(KeyframeInterpolator.Interpolation<IN, OUT> interpolateFunc) -
setDefaultValue
-
interpolate
-
getHigherKey
public float getHigherKey(float time) -
getLowerKey
public float getLowerKey(float time)
-