- java.lang.Object
-
- com.github.weisj.jsvg.animation.value.AnimatedLength
-
- All Implemented Interfaces:
LengthValue
public final class AnimatedLength extends java.lang.Object implements LengthValue
-
-
Constructor Summary
Constructors Constructor Description AnimatedLength(@NotNull Track track, @NotNull LengthValue initial, @NotNull Length @NotNull [] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AnimatedLength
derive(@NotNull LengthValue initialValue)
@NotNull LengthValue
initial()
boolean
isConstantlyNonNegative()
boolean
isConstantlyZero()
float
resolve(@NotNull MeasureContext context)
Resolve the length to its effective value.
-
-
-
Field Detail
-
track
@NotNull private final @NotNull Track track
-
initial
@NotNull private final @NotNull LengthValue initial
-
values
@NotNull private final @NotNull Length @NotNull [] values
-
-
Constructor Detail
-
AnimatedLength
public AnimatedLength(@NotNull @NotNull Track track, @NotNull @NotNull LengthValue initial, @NotNull @NotNull Length @NotNull [] values)
-
-
Method Detail
-
derive
@NotNull public @NotNull AnimatedLength derive(@NotNull @NotNull LengthValue initialValue)
-
initial
@NotNull public @NotNull LengthValue initial()
-
resolve
public float resolve(@NotNull @NotNull MeasureContext context)
Description copied from interface:LengthValue
Resolve the length to its effective value.- Specified by:
resolve
in interfaceLengthValue
- Parameters:
context
- the measuring context.- Returns:
- the resolved size.
-
isConstantlyZero
public boolean isConstantlyZero()
- Specified by:
isConstantlyZero
in interfaceLengthValue
-
isConstantlyNonNegative
public boolean isConstantlyNonNegative()
- Specified by:
isConstantlyNonNegative
in interfaceLengthValue
-
-