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 Details

    • TimePoint

      public TimePoint​(double time, T dataValue)
  • 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

      public void setTime​(long time, TimeUnit timeUnit)
      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

      public T getDataValue()
      Returns:
      The value of the data point.
    • setDataValue

      public void setDataValue​(T dataValue)
      Parameters:
      dataValue - Sets the data value of the data point.
    • toString

      public String toString()
      Overrides:
      toString in class Object