Class AWTSVGShape<T extends java.awt.Shape>

    • Field Detail

      • EMPTY_SHAPE

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

        @NotNull
        protected final T extends java.awt.Shape shape
      • bounds

        private java.awt.geom.Rectangle2D bounds
      • pathLength

        private double pathLength
    • Constructor Detail

      • AWTSVGShape

        public AWTSVGShape​(@NotNull
                           T shape)
      • AWTSVGShape

        private AWTSVGShape​(@NotNull
                            T shape,
                            double pathLength)
    • Method Detail

      • shape

        @NotNull
        public @NotNull java.awt.Shape 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()
      • computeGenericPathLength

        private double computeGenericPathLength()