- 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 PercentageValue
initial
private PercentageValue
multiplier
private @NotNull Track
track
private 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 AnimatedPercentage
derive(@NotNull PercentageValue initial)
float
get(@NotNull MeasureContext context)
private float
getBase(@NotNull MeasureContext context)
@NotNull PercentageValue
initial()
@NotNull PercentageValue
multiply(@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:
multiply
in 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:
get
in interfacePercentageValue
-
-