Class AnimatedColor

    • Field Detail

      • track

        @NotNull
        private final @NotNull Track track
      • initial

        @NotNull
        private final @NotNull ColorValue initial
      • values

        @NotNull
        private final @NotNull RGBColor @NotNull [] values
      • current

        private java.awt.Color current
      • currentTimestamp

        private long currentTimestamp
    • Constructor Detail

      • AnimatedColor

        public AnimatedColor​(@NotNull
                             @NotNull Track track,
                             @NotNull
                             @NotNull ColorValue initial,
                             @NotNull
                             @NotNull RGBColor @NotNull [] values)
    • Method Detail

      • get

        @NotNull
        public @NotNull java.awt.Color get​(@NotNull
                                           @NotNull MeasureContext context)
        Specified by:
        get in interface ColorValue
      • current

        @NotNull
        private @NotNull java.awt.Color current​(@NotNull
                                                @NotNull MeasureContext context)
      • computeCurrent

        @NotNull
        private @NotNull java.awt.Color computeCurrent​(@NotNull
                                                       @NotNull MeasureContext context,
                                                       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