Class AbstractGradient<Self extends AbstractGradient<Self>>

    • Field Detail

      • gradientTransform

        protected java.awt.geom.AffineTransform gradientTransform
      • gradientUnits

        protected UnitType gradientUnits
      • colors

        @NotNull
        private @NotNull java.awt.Color[] colors
      • offsets

        private float[] offsets
    • Constructor Detail

      • AbstractGradient

        AbstractGradient()
    • Method Detail

      • offsets

        public final float[] offsets()
      • colors

        @NotNull
        public final @NotNull java.awt.Color[] colors()
      • parseStops

        private void parseStops​(@NotNull
                                @NotNull java.util.List<Stop> stops)
      • buildGradient

        protected abstract void buildGradient​(@NotNull
                                              @NotNull AttributeNode attributeNode,
                                              @Nullable
                                              Self template)
      • 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
      • paintForBounds

        @NotNull
        private @NotNull java.awt.Paint paintForBounds​(@NotNull
                                                       @NotNull MeasureContext context,
                                                       @NotNull
                                                       @NotNull java.awt.geom.Rectangle2D bounds)
      • gradientForBounds

        @NotNull
        protected abstract @NotNull java.awt.Paint gradientForBounds​(@NotNull
                                                                     @NotNull MeasureContext measure,
                                                                     @NotNull
                                                                     @NotNull java.awt.geom.Rectangle2D bounds,
                                                                     float[] gradOffsets,
                                                                     @NotNull
                                                                     @NotNull java.awt.Color[] gradColors)
      • computeViewTransform

        @NotNull
        protected final @NotNull java.awt.geom.AffineTransform computeViewTransform​(@NotNull
                                                                                    @NotNull java.awt.geom.Rectangle2D bounds)