- java.lang.Object
-
- com.github.weisj.jsvg.animation.Track
-
public final class Track extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Track.InterpolationProgress
-
Field Summary
Fields Modifier and Type Field Description private Fill
fill
private DefaultInterpolator
interpolator
private @NotNull java.util.List<@NotNull Interval>
intervals
private float
repeatCount
-
Constructor Summary
Constructors Modifier Constructor Description private
Track(@NotNull java.util.List<@NotNull Interval> intervals, float repeatCount, Fill fill, AnimationValuesType valuesType, Additive additive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private @Nullable Interval
currentInterval(long timestamp)
@NotNull Fill
fill()
@NotNull FloatInterpolator
floatInterpolator()
@NotNull FloatListInterpolator
floatListInterpolator()
@NotNull Track.InterpolationProgress
interpolationProgress(long timestamp, int valueCount)
@NotNull java.util.List<@NotNull Interval>
intervals()
private int
iterationCount(@NotNull Duration duration, long timestampMillis)
private float
iterationProgress(@NotNull Duration duration, long timestampMillis)
@NotNull PaintInterpolator
paintInterpolator()
static @Nullable Track
parse(@NotNull AttributeNode attributeNode, @NotNull AnimationValuesType valuesType, @NotNull Additive additive)
private static @NotNull java.util.List<Duration>
parseBegin(@NotNull AttributeNode attributeNode)
float
repeatCount()
@NotNull TransformInterpolator
transformInterpolator()
-
-
-
Field Detail
-
intervals
@NotNull private final @NotNull java.util.List<@NotNull Interval> intervals
-
repeatCount
private final float repeatCount
-
fill
private final Fill fill
-
interpolator
private final DefaultInterpolator interpolator
-
-
Constructor Detail
-
Track
private Track(@NotNull @NotNull java.util.List<@NotNull Interval> intervals, float repeatCount, Fill fill, AnimationValuesType valuesType, Additive additive)
-
-
Method Detail
-
parse
@Nullable public static @Nullable Track parse(@NotNull @NotNull AttributeNode attributeNode, @NotNull @NotNull AnimationValuesType valuesType, @NotNull @NotNull Additive additive)
-
parseBegin
@NotNull private static @NotNull java.util.List<Duration> parseBegin(@NotNull @NotNull AttributeNode attributeNode)
-
intervals
@NotNull public @NotNull java.util.List<@NotNull Interval> intervals()
-
repeatCount
public float repeatCount()
-
fill
@NotNull public @NotNull Fill fill()
-
iterationCount
private int iterationCount(@NotNull @NotNull Duration duration, long timestampMillis)
-
iterationProgress
private float iterationProgress(@NotNull @NotNull Duration duration, long timestampMillis)
-
currentInterval
@Nullable private @Nullable Interval currentInterval(long timestamp)
-
interpolationProgress
@NotNull public @NotNull Track.InterpolationProgress interpolationProgress(long timestamp, int valueCount)
-
floatInterpolator
@NotNull public @NotNull FloatInterpolator floatInterpolator()
-
floatListInterpolator
@NotNull public @NotNull FloatListInterpolator floatListInterpolator()
-
paintInterpolator
@NotNull public @NotNull PaintInterpolator paintInterpolator()
-
transformInterpolator
@NotNull public @NotNull TransformInterpolator transformInterpolator()
-
-