Class AWTSVGShape<T extends java.awt.Shape>

    • Field Detail

      • EMPTY_SHAPE

        public static final java.awt.geom.Rectangle2D EMPTY_SHAPE
      • shapeValue

        @NotNull
        protected final @NotNull Value<@NotNull T extends java.awt.Shape> shapeValue
      • boundsCache

        private java.awt.geom.Rectangle2D boundsCache
      • shapeCache

        private T extends java.awt.Shape shapeCache
      • pathLength

        private double pathLength
    • Constructor Detail

      • AWTSVGShape

        public AWTSVGShape​(@NotNull
                           T shape)
      • AWTSVGShape

        public AWTSVGShape​(@NotNull
                           @NotNull Value<@NotNull T> shapeValue)
      • AWTSVGShape

        private AWTSVGShape​(@NotNull
                            @NotNull Value<@NotNull T> shapeValue,
                            double pathLength)
    • Method Detail

      • shape

        @NotNull
        public T shape​(@NotNull
                       @NotNull RenderContext context,
                       boolean validate)
        Specified by:
        shape in interface SVGShape
      • bounds

        @NotNull
        public @NotNull java.awt.geom.Rectangle2D bounds​(@NotNull
                                                         @NotNull RenderContext context,
                                                         boolean validate)
        Specified by:
        bounds in interface SVGShape
      • computePathLength

        private double computePathLength​(@NotNull
                                         @NotNull RenderContext context)