Class AnimatedLength
java.lang.Object
com.github.weisj.jsvg.animation.value.AnimatedLength
- All Implemented Interfaces:
LengthValue
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnimatedLength(@NotNull Track track, @NotNull LengthValue initial, @NotNull Length @NotNull [] values) -
Method Summary
Modifier and TypeMethodDescription@NotNull AnimatedLengthderive(@NotNull LengthValue initialValue) @NotNull LengthValueinitial()booleanbooleanfloatresolve(@NotNull MeasureContext context) Resolve the length to its effective value.
-
Field Details
-
track
-
initial
-
values
-
-
Constructor Details
-
AnimatedLength
public AnimatedLength(@NotNull @NotNull Track track, @NotNull @NotNull LengthValue initial, @NotNull @NotNull Length @NotNull [] values)
-
-
Method Details
-
derive
-
initial
-
resolve
Description copied from interface:LengthValueResolve the length to its effective value.- Specified by:
resolvein interfaceLengthValue- Parameters:
context- the measuring context.- Returns:
- the resolved size.
-
isConstantlyZero
public boolean isConstantlyZero()- Specified by:
isConstantlyZeroin interfaceLengthValue
-
isConstantlyNonNegative
public boolean isConstantlyNonNegative()- Specified by:
isConstantlyNonNegativein interfaceLengthValue
-