Class AnimatedColor
java.lang.Object
com.github.weisj.jsvg.animation.value.AnimatedColor
- All Implemented Interfaces:
ColorValue, SVGPaint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Colorprivate longprivate final @NotNull ColorValueprivate final @NotNull Trackprivate final @NotNull RGBColor @NotNull [] -
Constructor Summary
ConstructorsConstructorDescriptionAnimatedColor(@NotNull Track track, @NotNull ColorValue initial, @NotNull RGBColor @NotNull [] values) -
Method Summary
Modifier and TypeMethodDescriptionprivate @NotNull ColorcomputeCurrent(@NotNull MeasureContext context, long timestamp) private @NotNull Colorcurrent(@NotNull MeasureContext context) @NotNull AnimatedColorvoiddrawShape(@NotNull Output output, @NotNull RenderContext context, @NotNull Shape shape, @Nullable Rectangle2D bounds) voidfillShape(@NotNull Output output, @NotNull RenderContext context, @NotNull Shape shape, @Nullable Rectangle2D bounds) @NotNull Colorget(@NotNull MeasureContext context) booleanisVisible(@NotNull RenderContext context)
-
Field Details
-
track
-
initial
-
values
-
current
-
currentTimestamp
private long currentTimestamp
-
-
Constructor Details
-
AnimatedColor
public AnimatedColor(@NotNull @NotNull Track track, @NotNull @NotNull ColorValue initial, @NotNull @NotNull RGBColor @NotNull [] values)
-
-
Method Details
-
derive
-
get
- Specified by:
getin interfaceColorValue
-
current
-
computeCurrent
@NotNull private @NotNull Color computeCurrent(@NotNull @NotNull MeasureContext context, long timestamp) -
fillShape
public void fillShape(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Shape shape, @Nullable @Nullable Rectangle2D bounds) -
drawShape
public void drawShape(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Shape shape, @Nullable @Nullable Rectangle2D bounds) -
isVisible
-