- java.lang.Object
-
- com.github.weisj.jsvg.animation.value.AnimatedPercentage
-
- All Implemented Interfaces:
PercentageValue
public final class AnimatedPercentage extends java.lang.Object implements PercentageValue
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull PercentageValueinitialprivate PercentageValuemultiplierprivate @NotNull Tracktrackprivate float @NotNull []values
-
Constructor Summary
Constructors Constructor Description AnimatedPercentage(@NotNull Track track, @NotNull PercentageValue initial, float @NotNull [] values, PercentageValue multiplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AnimatedPercentagederive(@NotNull PercentageValue initial)floatget(@NotNull MeasureContext context)private floatgetBase(@NotNull MeasureContext context)@NotNull PercentageValueinitial()@NotNull PercentageValuemultiply(@NotNull PercentageValue other)
-
-
-
Field Detail
-
track
@NotNull private final @NotNull Track track
-
initial
@NotNull private final @NotNull PercentageValue initial
-
values
private final float @NotNull [] values
-
multiplier
private final PercentageValue multiplier
-
-
Constructor Detail
-
AnimatedPercentage
public AnimatedPercentage(@NotNull @NotNull Track track, @NotNull @NotNull PercentageValue initial, float @NotNull [] values, PercentageValue multiplier)
-
-
Method Detail
-
derive
@NotNull public @NotNull AnimatedPercentage derive(@NotNull @NotNull PercentageValue initial)
-
multiply
@NotNull public @NotNull PercentageValue multiply(@NotNull @NotNull PercentageValue other)
- Specified by:
multiplyin interfacePercentageValue
-
initial
@NotNull public @NotNull PercentageValue initial()
-
getBase
private float getBase(@NotNull @NotNull MeasureContext context)
-
get
public float get(@NotNull @NotNull MeasureContext context)- Specified by:
getin interfacePercentageValue
-
-