Package org.vanted.animation.data
Class TimePoint<T>
java.lang.Object
org.vanted.animation.data.TimePoint<T>
- Direct Known Subclasses:
BooleanTimePoint
,InterpolatableTimePoint
,StringTimePoint
public abstract class TimePoint<T> extends Object
- Author:
- - Patrick Shaw
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description T
getDataValue()
double
getTime()
void
setDataValue(T dataValue)
void
setTime(double time)
void
setTime(long time, TimeUnit timeUnit)
Sets the time at which the data point's data value should be expressed.String
toString()
-
Constructor Details
-
TimePoint
-
-
Method Details
-
getTime
public double getTime()- Returns:
-
setTime
public void setTime(double time)- Parameters:
time
- Number of milliseconds at which the data point's data value should be expressed.
-
setTime
Sets the time at which the data point's data value should be expressed.- Parameters:
time
- The magnitude of the time value.The
- unit of time.
-
getDataValue
- Returns:
- The value of the data point.
-
setDataValue
- Parameters:
dataValue
- Sets the data value of the data point.
-
toString
-