Class AnimatedPaint

  • All Implemented Interfaces:
    SVGPaint

    public class AnimatedPaint
    extends java.lang.Object
    implements SVGPaint
    • Field Detail

      • track

        @NotNull
        private final @NotNull Track track
      • initial

        @NotNull
        private final @NotNull SVGPaint initial
      • values

        @NotNull
        private final @NotNull SVGPaint @NotNull [] values
      • currentTimestamp

        private long currentTimestamp
    • Constructor Detail

      • AnimatedPaint

        public AnimatedPaint​(@NotNull
                             @NotNull Track track,
                             @NotNull
                             @NotNull SVGPaint initial,
                             @NotNull
                             @NotNull SVGPaint @NotNull [] values)
    • Method Detail

      • computeCurrent

        @NotNull
        private @NotNull SVGPaint computeCurrent​(long timestamp)
      • fillShape

        public void fillShape​(@NotNull
                              @NotNull Output output,
                              @NotNull
                              @NotNull RenderContext context,
                              @NotNull
                              @NotNull java.awt.Shape shape,
                              @Nullable
                              @Nullable java.awt.geom.Rectangle2D bounds)
        Specified by:
        fillShape in interface SVGPaint
      • drawShape

        public void drawShape​(@NotNull
                              @NotNull Output output,
                              @NotNull
                              @NotNull RenderContext context,
                              @NotNull
                              @NotNull java.awt.Shape shape,
                              @Nullable
                              @Nullable java.awt.geom.Rectangle2D bounds)
        Specified by:
        drawShape in interface SVGPaint