Package org.vanted.animation.data
Class ColorTimePoint
public class ColorTimePoint extends InterpolatableTimePoint<Color>
- Author:
- - Patrick Shaw
-
Constructor Summary
Constructors Constructor Description ColorTimePoint(double time, Color color)
-
Method Summary
Modifier and Type Method Description Color
getColor()
double[]
getDoubleValues()
Unpacks the data value and turns it into an array of double values.void
setColor(Color color)
Color
toDataValue(double[] doubleValues)
ReversesInterpolatableTimePoint.getDoubleValues()
method.int
validateRGB(double colorValue)
Methods inherited from class org.vanted.animation.data.TimePoint
getDataValue, getTime, setDataValue, setTime, setTime, toString
-
Constructor Details
-
ColorTimePoint
-
-
Method Details
-
getColor
-
setColor
-
validateRGB
public int validateRGB(double colorValue) -
getDoubleValues
public double[] getDoubleValues()Description copied from class:InterpolatableTimePoint
Unpacks the data value and turns it into an array of double values.
Any data values that are put in the returned array will be interpolated by an interpolator. This is how you specify which fields in the data value are manipulated.- Specified by:
getDoubleValues
in classInterpolatableTimePoint<Color>
-
toDataValue
Description copied from class:InterpolatableTimePoint
ReversesInterpolatableTimePoint.getDoubleValues()
method. Converts an array of interpolated double values back into the data value type.- Specified by:
toDataValue
in classInterpolatableTimePoint<Color>
-